[meta-freescale] [meta-fsl-arm][PATCH 01/12] imx-test: Fix build failure due lacking of module build system
Otavio Salvador
otavio at ossystems.com.br
Fri Jan 17 18:41:04 PST 2014
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 at ossystems.com.br>
---
recipes-bsp/imx-test/imx-test.inc | 7 +++++++
1 file changed, 7 insertions(+)
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 \
--
1.8.5.2
More information about the meta-freescale
mailing list