mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
a2526b575a
commit
36a26402fe
@@ -89,12 +89,12 @@ toolchain_shared_env_script () {
|
|||||||
# Append environment subscripts
|
# Append environment subscripts
|
||||||
if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then
|
if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then
|
||||||
for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do
|
for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do
|
||||||
source \$envfile
|
. \$envfile
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
|
if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
|
||||||
for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do
|
for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do
|
||||||
source \$envfile
|
. \$envfile
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user