mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
toolchains-scripts: Add support for target environment scripts
In a similar way to the previous script which adds support for native environment scripts, this adds support for target environment scripts too. (From OE-Core rev: 2d9466734f0c0c90724820bc36992b2800ffa4d0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -76,6 +76,11 @@ toolchain_shared_env_script () {
|
||||
cat >> $script <<EOF
|
||||
|
||||
# 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
|
||||
done
|
||||
fi
|
||||
if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
|
||||
for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do
|
||||
source \$envfile
|
||||
|
||||
Reference in New Issue
Block a user