update tests
[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 else
21 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
22 PWD := $(shell pwd)
23 KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p')
24 ifneq ($(INSTALL_MOD_PATH),)
25 DEPMOD_OPT := -b $(INSTALL_MOD_PATH)
26 endif
27
28 default:
29 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
30
31 modules_install:
32 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
33 if [ -f $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map ] ; then /sbin/depmod -ae -F $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map $(DEPMOD_OPT) $(KERNELRELEASE) ; fi
34
35
36 clean:
37 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
38 endif
This page took 0.029718 seconds and 5 git commands to generate.