Skip to contentSkip to conversation

toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)

PATCH In review Richard Purdie 2 participants 4 messages Jul 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)

This is needed when we add nativesdk-gcc/binutil to an SDK. Being present doesn't hurt in other cases.

meta/classes/toolchain-scripts.bbclass +2 -2
index b838015..d0b2b91 100644
@@ -23,8 +23,8 @@ toolchain_create_sdk_env_script () {
 	for i in ${CANADIANEXTRAOS}; do
 		EXTRAPATH="$EXTRAPATH:$sdkpathnative$bindir/${TARGET_ARCH}${TARGET_VENDOR}-$i"
 	done
-	echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script
-	echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script
+	echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script
+	echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_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
#1 lore raw
Quoted 4 lines · Richard Purdie

This is needed when we add nativesdk-gcc/binutil to an SDK. Being present doesn't hurt in other cases.

Maybe it could use the environment-setup subscript to extend this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
Quoted 8 lines · Otavio Salvador
Quoted 4 lines · Richard Purdie

This is needed when we add nativesdk-gcc/binutil to an SDK. Being present doesn't hurt in other cases.

Maybe it could use the environment-setup subscript to extend this?

Not sure its worth the complexity of that to be honest...

Cheers,

Richard

#3 lore raw
Quoted 11 lines · Richard Purdie
Quoted 8 lines · Otavio Salvador
Quoted 4 lines · Richard Purdie

This is needed when we add nativesdk-gcc/binutil to an SDK. Being present doesn't hurt in other cases.

Maybe it could use the environment-setup subscript to extend this?

Not sure its worth the complexity of that to be honest...

The point, of doing it this way, is to have the environment script in its canonical form and without unused code.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750