mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
populate_sdk_ext: Ensure buildtools doesn't corrupt OECORE_NATIVE_SYSROOT
buildtools is built as a nativesdk which needs to use OECORE_NATIVE_SYSROOT for its own purposes and can reset it. Save and restore the value within the eSDK so the two don't clash. (From OE-Core rev: 513f4006bf563620ee063ba6d0e9b3f27334642e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -653,7 +653,10 @@ sdk_ext_postinst() {
|
||||
|
||||
# Make sure when the user sets up the environment, they also get
|
||||
# the buildtools-tarball tools in their path.
|
||||
echo "# Save and reset OECORE_NATIVE_SYSROOT as buildtools may change it" >> $env_setup_script
|
||||
echo "SAVED=\"\$OECORE_NATIVE_SYSROOT\"" >> $env_setup_script
|
||||
echo ". $target_sdk_dir/buildtools/environment-setup*" >> $env_setup_script
|
||||
echo "OECORE_NATIVE_SYSROOT=\"\$SAVED\"" >> $env_setup_script
|
||||
fi
|
||||
|
||||
# Allow bitbake environment setup to be ran as part of this sdk.
|
||||
|
||||
Reference in New Issue
Block a user