]> 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>
Wed, 29 Jun 2016 18:33:23 +0000 (19:33 +0100)
Some shells (e.g. dash) do not support the source built-in. This
replaces it with the dot operator.

[ YOCTO #9535 ]

(From OE-Core rev: eef010bd91933d0c4b917d12e5716aa7e16b7307)

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
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