]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-scripts: replace source built-in call
authorStephano Cetola <stephano.cetola@linux.intel.com>
Thu, 28 Apr 2016 20:43:27 +0000 (13:43 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:30:55 +0000 (10:30 +0100)
Some shells (e.g. dash) do not support the source built-in. This
replaces it with the dot operator.

[ YOCTO #9535 ]

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain-scripts.bbclass

index 2e2c93af41d0114be19e0f5038e8505ed695fa73..02e69c8400c09ef1677818ac6835cc7c7243008a 100644 (file)
@@ -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