add tests
[lttv.git] / tests / kernel / Makefile
1 ifneq ($(KERNELRELEASE),)
2 ifneq ($(CONFIG_LTT),)
3 obj-m := test-time-probe.o test-l1-hit-probe.o test-int-response.o test-instrument-size-small.o test-instrument-size-med.o test-instrument-size-big.o test-time-precision.o
4 endif
5
6 else
7 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
8 PWD := $(shell pwd)
9 KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p')
10 ifneq ($(INSTALL_MOD_PATH),)
11 DEPMOD_OPT := -b $(INSTALL_MOD_PATH)
12 endif
13
14 default:
15 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
16
17 modules_install:
18 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
19 if [ -f $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map ] ; then /sbin/depmod -ae -F $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map $(DEPMOD_OPT) $(KERNELRELEASE) ; fi
20
21
22 clean:
23 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
24 endif
This page took 0.028975 seconds and 5 git commands to generate.