From: Liu Ting-B28495 Date: Wed, 13 May 2015 10:15:51 +0000 (+0800) Subject: auto-resp: fix the include path to private headers X-Git-Tag: 2.1~534^2 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=60ecf4f21bb60a1c83a194b6799f56dcaf094f1b;p=meta-freescale.git auto-resp: fix the include path to private headers When building external module, $(PWD) is the root of the kernel tree. Signed-off-by: Liu Ting-B28495 --- diff --git a/meta-fsl-ppc/recipes-kernel/auto-resp/ar_git.bb b/meta-fsl-ppc/recipes-kernel/auto-resp/ar_git.bb index 81a94a04..52d9f57d 100644 --- a/meta-fsl-ppc/recipes-kernel/auto-resp/ar_git.bb +++ b/meta-fsl-ppc/recipes-kernel/auto-resp/ar_git.bb @@ -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}