From 60ecf4f21bb60a1c83a194b6799f56dcaf094f1b Mon Sep 17 00:00:00 2001 From: Liu Ting-B28495 Date: Wed, 13 May 2015 18:15:51 +0800 Subject: [PATCH] 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 --- meta-fsl-ppc/recipes-kernel/auto-resp/ar_git.bb | 4 ++++ 1 file changed, 4 insertions(+) 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} -- 2.40.1