]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-bootlets: Pass sysroot for compiler and linker
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 21 Sep 2013 21:22:20 +0000 (18:22 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 23 Sep 2013 19:47:57 +0000 (16:47 -0300)
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@free-electrons.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb

index 1ddfb6feff3244a553c8a0e888aa177964b96307..dd34ba84e5f750fe6bd128a0611d89e728d81cb6 100644 (file)
@@ -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 () {