]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: Fix build failure due lacking of module build system
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 17 Jan 2014 14:19:28 +0000 (12:19 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 18 Jan 2014 02:59:52 +0000 (00:59 -0200)
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 <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/imx-test/imx-test.inc

index c7f916c28f4eb23a82a9adfce8f81d9af494cb64..8634cb97c45cc46f52beb4a29791992173d959ca 100644 (file)
@@ -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 \