diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 6cc8eba900..11ffbe5be0 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -72,6 +72,16 @@ toolchain_shared_env_script () { | |||
72 | echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script | 72 | echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script |
73 | echo 'export ARCH=${ARCH}' >> $script | 73 | echo 'export ARCH=${ARCH}' >> $script |
74 | echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script | 74 | echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script |
75 | |||
76 | cat >> $script <<EOF | ||
77 | |||
78 | # Append environment subscripts | ||
79 | if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then | ||
80 | for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do | ||
81 | source \$envfile | ||
82 | done | ||
83 | fi | ||
84 | EOF | ||
75 | } | 85 | } |
76 | 86 | ||
77 | #we get the cached site config in the runtime | 87 | #we get the cached site config in the runtime |