test marker
[lttv.git] / tests / kernel / Makefile
1 ifneq ($(KERNELRELEASE),)
2 ifneq ($(CONFIG_LTT),)
3 # obj-m += ltt-facility-loader-tests.o
4 # obj-m += test-time-probe.o
5 # obj-m += test-time-probe2.o
6 # obj-m += test-instrument-size-small.o
7 # obj-m += test-instrument-size-med.o
8 # obj-m += test-instrument-size-big.o
9 # obj-m += test-printk-effect.o
10 endif
11 # obj-m += test-cmpxchg.o
12 # obj-m += test-cmpxchg-nolock.o
13 # obj-m += test-spinlock.o
14 # obj-m += test-inc.o
15 # obj-m += test-inc-nolock.o
16 # obj-m += test-kmalloc.o
17 # obj-m += test-irqdis.o
18 # obj-m += test-int3.o
19 #obj-m += test-kprobes.o
20 #obj-m += test-printk.o
21 #obj-m += test-debugfs.o
22 obj-m += test-mark.o
23 #obj-m += marker-loader.o
24 #obj-m += test-linuxtrace.o
25 else
26 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
27 PWD := $(shell pwd)
28 KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p')
29 ifneq ($(INSTALL_MOD_PATH),)
30 DEPMOD_OPT := -b $(INSTALL_MOD_PATH)
31 endif
32
33 default:
34 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
35
36 modules_install:
37 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
38 if [ -f $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map ] ; then /sbin/depmod -ae -F $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map $(DEPMOD_OPT) $(KERNELRELEASE) ; fi
39
40
41 clean:
42 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
43 endif
This page took 0.029838 seconds and 5 git commands to generate.