From: Otavio Salvador Date: Fri, 17 Jan 2014 14:19:28 +0000 (-0200) Subject: imx-test: Fix build failure due lacking of module build system X-Git-Tag: 2.1~1100 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0902139c45841b8a15e538d412b1b74ddbe39fdb;p=meta-freescale.git imx-test: Fix build failure due lacking of module build system The 'module-base' class provides the infrastructure to ensure modules are buildable. This fixes the build failures caused by lacking of 'scripts/basic/fixdep' application. Change-Id: I996d169acdbec900042a21c0153799bbc57d09ee Signed-off-by: Otavio Salvador --- diff --git a/meta-fsl-arm/recipes-bsp/imx-test/imx-test.inc b/meta-fsl-arm/recipes-bsp/imx-test/imx-test.inc index c7f916c2..8634cb97 100644 --- a/meta-fsl-arm/recipes-bsp/imx-test/imx-test.inc +++ b/meta-fsl-arm/recipes-bsp/imx-test/imx-test.inc @@ -20,6 +20,8 @@ PLATFORM_mx51 = "IMX51" SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz \ file://clocks.sh" +inherit module-base + INHIBIT_PACKAGE_DEBUG_SPLIT = "1" INCLUDE_DIR="-I${STAGING_INCDIR} \ @@ -30,6 +32,11 @@ INCLUDE_DIR="-I${STAGING_INCDIR} \ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include" +# Required so the fixdep binary is generated +addtask make_scripts after do_patch before do_compile +do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" +do_make_scripts[deptask] = "do_populate_sysroot" + do_compile() { LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \ KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1 \