[meta-freescale] [meta-fsl-arm PATCH 2/2] imx-bootlets: Pass sysroot for compiler and linker
Otavio Salvador
otavio at ossystems.com.br
Sun Sep 22 13:31:22 PDT 2013
The build need to have the sysroot information explicit; the build
system of the imx-bootlets is horrible and does not reuse the values
provided by the environment so we need to force them.
This fixes a build failure in Crystal boards.
Change-Id: Ie5f0bd7271c90f219fdded320da579fa95ace159
Reported-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
index 1ddfb6f..dd34ba8 100644
--- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
+++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
@@ -39,7 +39,9 @@ do_configure () {
do_compile () {
oe_runmake BOARD=${IMXBOOTLETS_MACHINE} linux_prep \
boot_prep \
- power_prep
+ power_prep \
+ 'CC=${TARGET_PREFIX}gcc --sysroot="${STAGING_DIR_TARGET}"' \
+ 'LD=${TARGET_PREFIX}ld --sysroot="${STAGING_DIR_TARGET}"'
}
do_install () {
--
1.8.4.rc3
More information about the meta-freescale
mailing list