]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: Fix build with the work-shared kernel source
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 19 Jan 2015 19:30:56 +0000 (17:30 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 22 Jan 2015 16:03:14 +0000 (14:03 -0200)
The Kernel sources has now been moved out of sstate control and to
make this easier to spot this has been moved to tmp/work-shared/
directory.

One good consequence of this change is that the built artifacts are
controlled by the Linux build system itself and its path is now
exported in STAGING_KERNEL_BUILDDIR variable.

This path adapts the build params to this new layout.

Change-Id: Ie27ef289aa3ae4c2593303ccbc450e0fd53b49cd
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/imx-test/imx-test.inc

index 6e41f61900bfb73f2bf2afbd54d6104a6bdc680a..cba72f585a20a75019f56125ed52b8d356d9e427 100644 (file)
@@ -41,13 +41,15 @@ do_compile() {
                CROSS_COMPILE=${TARGET_PREFIX} \
                INC="-I${STAGING_INCDIR} \
                     -I${S}/include \
+                    -I${STAGING_KERNEL_BUILDDIR}/include/uapi \
+                    -I${STAGING_KERNEL_BUILDDIR}/include \
                     -I${STAGING_KERNEL_DIR}/include/uapi \
                     -I${STAGING_KERNEL_DIR}/include \
                     -I${STAGING_KERNEL_DIR}/arch/arm/include \
                     -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
                     -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include" \
                LINUXPATH=${STAGING_KERNEL_DIR} \
-               KBUILD_OUTPUT=${STAGING_KERNEL_DIR} \
+               KBUILD_OUTPUT=${STAGING_KERNEL_BUILDDIR} \
                PLATFORM=${PLATFORM}
 }