summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephano Cetola <stephano.cetola@linux.intel.com>2016-04-28 13:43:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-06 10:31:12 +0100
commit36a26402feaed9f93eaaa9dc673067051527fe83 (patch)
treef42a15ede5331438dfa3aa6c591c3c764aff6adf
parenta2526b575a52c4dcfcddc4434d85d1ced0ab5b97 (diff)
downloadpoky-36a26402feaed9f93eaaa9dc673067051527fe83.tar.gz
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 ] (From OE-Core rev: eef010bd91933d0c4b917d12e5716aa7e16b7307) Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toolchain-scripts.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 2e2c93af41..02e69c8400 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -89,12 +89,12 @@ toolchain_shared_env_script () {
89# Append environment subscripts 89# Append environment subscripts
90if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then 90if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then
91 for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do 91 for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do
92 source \$envfile 92 . \$envfile
93 done 93 done
94fi 94fi
95if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then 95if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
96 for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do 96 for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do
97 source \$envfile 97 . \$envfile
98 done 98 done
99fi 99fi
100EOF 100EOF