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