summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch')
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch31
1 files changed, 18 insertions, 13 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch b/meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch
index bbfa38a0b5..ccc6c54f81 100644
--- a/meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch
+++ b/meta/recipes-kernel/lttng/lttng-modules/lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch
@@ -7,41 +7,46 @@ build and install lttng-modules, we do this replacement for
7it as-is. 7it as-is.
8 8
9Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com> 9Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com>
10[sgw - rebased for 2.6.1]
11Signed-off-by: Saul wold <sgw@linux.intel.com>
10 12
11Index: git/Makefile 13Index: git/Makefile
12=================================================================== 14===================================================================
13--- git.orig/Makefile 15--- git.orig/Makefile
14+++ git/Makefile 16+++ git/Makefile
15@@ -62,19 +62,19 @@ obj-m += lib/ 17@@ -68,19 +68,19 @@ obj-m += lib/
16 endif # CONFIG_TRACEPOINTS 18 endif # CONFIG_TRACEPOINTS
17 19
18 else # KERNELRELEASE 20 else # KERNELRELEASE
19- KERNELDIR ?= /lib/modules/$(shell uname -r)/build 21- KERNELDIR ?= /lib/modules/$(shell uname -r)/build
22- PWD := $(shell pwd)
23- CFLAGS = $(EXTCFLAGS)
24-
20+ KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build 25+ KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
21 PWD := $(shell pwd) 26+ PWD := $(shell pwd)
22 CFLAGS = $(EXTCFLAGS) 27+ CFLAGS = $(EXTCFLAGS)
23 28+
24 default: 29 default:
25- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 30- LTTNG_KERNELDIR=$(KERNELDIR) $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
26+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules 31+ LTTNG_KERNELDIR=$(KERNEL_SRC) $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules
27 32
28 modules_install: 33 modules_install:
29- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install 34- LTTNG_KERNELDIR=$(KERNELDIR) $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
30+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install 35+ LTTNG_KERNELDIR=$(KERNEL_SRC) $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install
31 36
32 clean: 37 clean:
33- $(MAKE) -C $(KERNELDIR) M=$(PWD) clean 38- LTTNG_KERNELDIR=$(KERNELDIR) $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
34+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean 39+ LTTNG_KERNELDIR=$(KERNEL_SRC) $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
35 40
36 %.i: %.c 41 %.i: %.c
37- $(MAKE) -C $(KERNELDIR) M=$(PWD) $@ 42- LTTNG_KERNELDIR=$(KERNELDIR) $(MAKE) -C $(KERNELDIR) M=$(PWD) $@
38+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) $@ 43+ LTTNG_KERNELDIR=$(KERNEL_SRC) $(MAKE) -C $(KERNEL_SRC) M=$(PWD) $@
39 endif # KERNELRELEASE 44 endif # KERNELRELEASE
40Index: git/probes/Makefile 45Index: git/probes/Makefile
41=================================================================== 46===================================================================
42--- git.orig/probes/Makefile 47--- git.orig/probes/Makefile
43+++ git/probes/Makefile 48+++ git/probes/Makefile
44@@ -231,18 +231,18 @@ endif 49@@ -267,18 +267,18 @@ endif
45 endif 50 endif
46 51
47 else 52 else