23b718bd0ca473171e914769025a39a4e86f1f28
[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-debugfs.o
12 obj-m += test-hotplug.o
13 obj-m += rdtsc-smp.o
14 obj-m += test-local.o
15 # obj-m += test-cmpxchg.o
16 # obj-m += test-cmpxchg-nolock.o
17 # obj-m += test-spinlock.o
18 # obj-m += test-inc.o
19 # obj-m += test-inc-nolock.o
20 # obj-m += test-kmalloc.o
21 # obj-m += test-irqdis.o
22 # obj-m += test-int3.o
23 #obj-m += test-kprobes.o
24 #obj-m += test-printk.o
25 #obj-m += test-debugfs.o
26 # obj-m += test-mark.o
27 # obj-m += probe.o
28 # obj-m += test-irqloop.o
29 #obj-m += marker-loader.o
30 #obj-m += test-linuxtrace.o
31
32 CFLAGS_test-mark-instrumented.o += -DFORCE_MARK_JUMP_INLINE
33 CFLAGS_test-mark.o += -funroll-all-loops
34 else
35 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
36 PWD := $(shell pwd)
37 KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p')
38 ifneq ($(INSTALL_MOD_PATH),)
39 DEPMOD_OPT := -b $(INSTALL_MOD_PATH)
40 endif
41
42 default:
43 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
44
45 modules_install:
46 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
47 if [ -f $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map ] ; then /sbin/depmod -ae -F $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map $(DEPMOD_OPT) $(KERNELRELEASE) ; fi
48
49
50 clean:
51 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
52 endif
This page took 0.032895 seconds and 3 git commands to generate.