summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-05-24 14:28:05 -0500
committerJohn Klug <john.klug@multitech.com>2017-06-09 09:09:19 -0500
commitd60a6436e7640404391f31ca5b5a2843ca36f171 (patch)
tree3f355d9183d9a7914e452ff30ab32bb2acec99af /recipes-bsp
parent2cfd7c7a18d9138c7258b341181d0e00485037f4 (diff)
downloadmeta-multitech-d60a6436e7640404391f31ca5b5a2843ca36f171.tar.gz
meta-multitech-d60a6436e7640404391f31ca5b5a2843ca36f171.tar.bz2
meta-multitech-d60a6436e7640404391f31ca5b5a2843ca36f171.zip
Fix CC for at91bootstrap to find /usr/include
Diffstat (limited to 'recipes-bsp')
-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"