summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-01-06 16:56:58 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2015-01-14 12:01:10 -0200
commit107c788dc61c3fa9ac0dc8c9c17fc1a70aa989b9 (patch)
treea19fd67cfc8c5ba32ea3570ecada36e398872c4b /recipes-bsp
parentd2253ba13601678ba6f63d61c927ee21797a1c6b (diff)
downloadmeta-fsl-arm-107c788dc61c3fa9ac0dc8c9c17fc1a70aa989b9.tar.gz
imx-test: Ensures kernel is installed before building scripts
The imx-test builds a kernel module, as one of the utilities used for testing. The module relies on the kernel to be installed before it is able to build the scripts necessary for the build to succeed. Due the new kernel build infrastructure and the lack of the sstate management over the kernel source, a explicit dependency on do_install of kernel needs to be done. This fixes following failure: ,---- | .../.../module_test/mxc_sdma_mem_test.c:21:27: fatal error: linux/version.h: No such file or directory | #include <linux/version.h> | ^ | compilation terminated. | make[4]: *** [.../.../module_test/mxc_sdma_mem_test.o] Error 1 | make[3]: *** [_module_.../.../module_test] Error 2 | make[2]: *** [sub-make] Error 2 | make[2]: Leaving directory `.../build-framebuffer/tmp/sysroots/imx53qsb/usr/src/kernel' | make[1]: *** [all] Error 2 | make[1]: Leaving directory `.../.../module_test' | make: *** [module_test] Error 2 `---- Change-Id: I0ebdfce4483d64fed4afe52c09d8e1d31d9374bb Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/imx-test/imx-test.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
index c96fbef..ab567a7 100644
--- a/recipes-bsp/imx-test/imx-test.inc
+++ b/recipes-bsp/imx-test/imx-test.inc
@@ -38,6 +38,7 @@ INCLUDE_DIR="-I${STAGING_INCDIR} \
38addtask make_scripts after do_patch before do_compile 38addtask make_scripts after do_patch before do_compile
39do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" 39do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
40do_make_scripts[deptask] = "do_populate_sysroot" 40do_make_scripts[deptask] = "do_populate_sysroot"
41do_make_scripts[depends] += "virtual/kernel:do_install"
41 42
42do_compile() { 43do_compile() {
43 LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \ 44 LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \