From: Liu Ting-B28495 <[email protected]> When building external module, $(PWD) is the root of the kernel tree.
Signed-off-by: Liu Ting-B28495 <[email protected]> --- recipes-kernel/auto-resp/ar_git.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-kernel/auto-resp/ar_git.bb b/recipes-kernel/auto-resp/ar_git.bb index 81a94a0..52d9f57 100644 --- a/recipes-kernel/auto-resp/ar_git.bb +++ b/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} -- 1.9.1 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
