Commit 49230044 authored by Otavio Salvador's avatar Otavio Salvador

imx-bootlets: Pass sysroot for compiler and linker

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: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarOtavio Salvador <otavio@ossystems.com.br>
parent f6d28859
......@@ -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 () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment