]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toolchain-scripts: Add handling for CANADIANEXTRAOS
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Jul 2014 17:00:36 +0000 (18:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 16:38:46 +0000 (17:38 +0100)
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>
meta/classes/toolchain-scripts.bbclass

index b9f2aea930da8f81570f842c909169a544bbac31..413effecfa570df0d4df0bae05bf0243aa61ec58 100644 (file)
@@ -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