diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-01 18:00:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-03 17:38:46 +0100 |
commit | 5f8bbb15c2b79a94ad547347306b59bd67dba3e8 (patch) | |
tree | d50ddeceea01f71f85ce442482baecd8c04ff7a6 /meta | |
parent | b3090263ba31702631270643c7a7d7af8f4d9234 (diff) | |
download | openembedded-core-5f8bbb15c2b79a94ad547347306b59bd67dba3e8.tar.gz openembedded-core-5f8bbb15c2b79a94ad547347306b59bd67dba3e8.tar.bz2 openembedded-core-5f8bbb15c2b79a94ad547347306b59bd67dba3e8.zip |
toolchain-scripts: Add handling for CANADIANEXTRAOS
When we build a general toolchain script we should add all the OS
variants to PATH, not just the current one. This is because some can
cross reference each other and if the triplet prefixed ld can't be found
for example, you recieve strange errors.
Doing this resolves bugs exposed during SDK testing.
[YOCTO #6490]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index b9f2aea930..413effecfa 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass @@ -14,7 +14,11 @@ toolchain_create_sdk_env_script () { rm -f $script touch $script echo 'export SDKTARGETSYSROOT='"$sysroot" >> $script - echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS}:$PATH' >> $script + EXTRAPATH="" + for i in ${CANADIANEXTRAOS}; do + EXTRAPATH="$EXTRAPATH:"`echo ${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS} | sed -e 's,${TARGET_PREFIX},${TARGET_PREFIX}$i,g'` + done + echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS}'$EXTRAPATH':$PATH' >> $script echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script |