Skip to contentSkip to conversation

toolchain-scripts: replace source built-in call

PATCH New Stephano Cetola 1 participant 1 message Apr 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toolchain-scripts: replace source built-in call

Some shells (e.g. dash) do not support the source built-in. This replaces it with the dot operator.

[ YOCTO #9535 ]

---
 meta/classes/toolchain-scripts.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/toolchain-scripts.bbclass +2 -2
index 2e2c93a..02e69c8 100644
@@ -89,12 +89,12 @@ toolchain_shared_env_script () {
 # Append environment subscripts
 if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then
     for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do
-	    source \$envfile
+	    . \$envfile
     done
 fi
 if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
     for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do
-	    source \$envfile
+	    . \$envfile
     done
 fi
 EOF
Signature · 1 line
2.8.0