]> code.ossystems Code Review - meta-freescale.git/commitdiff
auto-resp: fix the include path to private headers
authorLiu Ting-B28495 <ting.liu@freescale.com>
Wed, 13 May 2015 10:15:51 +0000 (18:15 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 20 May 2015 04:06:17 +0000 (12:06 +0800)
When building external module, $(PWD) is the root of the kernel tree.

Signed-off-by: Liu Ting-B28495 <ting.liu@freescale.com>
meta-fsl-ppc/recipes-kernel/auto-resp/ar_git.bb

index 81a94a048af78fb26fe044a37179e989c73f4471..52d9f57d450b649d8aa0796a1abc2d2119496d1e 100644 (file)
@@ -14,6 +14,10 @@ export KERNEL_PATH
 
 INHIBIT_PACKAGE_STRIP = "1"
 
+do_compile_prepend() {
+    sed -i -e 's,EXTRA_CFLAGS += -I$(PWD),EXTRA_CFLAGS += -I${S},' ${S}/armodule/source/Makefile
+}
+
 do_install(){
        install -d ${D}/lib/modules/${KERNEL_VERSION}
        install -d ${D}${bindir}