Patchwork [meta-fsl-arm,01/12] imx-test: Fix build failure due lacking of module build system

login
register
mail settings
Submitter Otavio Salvador
Date Jan. 18, 2014, 2:41 a.m.
Message ID <1390012875-16143-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/65133/
State Superseded
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Jan. 18, 2014, 2:41 a.m.
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>
---
 recipes-bsp/imx-test/imx-test.inc | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
index c7f916c..8634cb9 100644
--- a/recipes-bsp/imx-test/imx-test.inc
+++ b/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 \