summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc b/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc
index ac147c0..4b3e957 100644
--- a/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc
+++ b/recipes-bsp/at91bootstrap/at91bootstrap_3.5.inc
@@ -11,13 +11,19 @@ do_compile () {
unset CFLAGS
unset CPPFLAGS
+ # For Newer Yocto/Bitbake, CC does not
+ # include the staging directory
+ # by default
+ CC="${CC} --sysroot=${STAGING_DIR_HOST}"
+ LD="${LD} --sysroot=${STAGING_DIR_HOST}"
+
rm -Rf ${S}/binaries
for board in ${AT91BOOTSTRAP_BOARD} ; do
- oe_runmake mrproper
+ oe_runmake mrproper CC="${CC}" LD="${LD}"
filename=`find board -name ${board}_defconfig`
if ! [ "x$filename" == "x" ] ; then
cp $filename .config
- oe_runmake
+ oe_runmake CC="${CC}" LD="${LD}"
oe_runmake install
else
echo "${board} could not be built"