summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGauthier HADERER <ghaderer@wyplay.com>2024-06-27 10:42:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-02 22:29:13 +0100
commit662cda7e94df152aec4ba90f3773fc5da9054c6b (patch)
treee3a95f705ce3c38e13de17b7050fa306aa6c4045
parent840f9cbe7a423a8bf3c938f7d00f597dacadce34 (diff)
downloadpoky-662cda7e94df152aec4ba90f3773fc5da9054c6b.tar.gz
populate_sdk_ext.bclass: make sure OECORE_NATIVE_SYSROOT is exported.
Fixes bug 15464. OECORE_NATIVE_SYSROOT is correctly set up and exported in the SDK's environment file. But it's then unset in buildtools/environment-setup-*. The value is restored in the SDK's environment file but is not exported again. (From OE-Core rev: 825c996b7995d3ad510933b1a88229831ca5ea29) Signed-off-by: Gauthier HADERER <ghaderer@wyplay.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/populate_sdk_ext.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass
index 019330e3ef..b02295384b 100644
--- a/meta/classes-recipe/populate_sdk_ext.bbclass
+++ b/meta/classes-recipe/populate_sdk_ext.bbclass
@@ -724,7 +724,7 @@ sdk_ext_postinst() {
724 echo "# Save and reset OECORE_NATIVE_SYSROOT as buildtools may change it" >> $env_setup_script 724 echo "# Save and reset OECORE_NATIVE_SYSROOT as buildtools may change it" >> $env_setup_script
725 echo "SAVED=\"\$OECORE_NATIVE_SYSROOT\"" >> $env_setup_script 725 echo "SAVED=\"\$OECORE_NATIVE_SYSROOT\"" >> $env_setup_script
726 echo ". $target_sdk_dir/buildtools/environment-setup*" >> $env_setup_script 726 echo ". $target_sdk_dir/buildtools/environment-setup*" >> $env_setup_script
727 echo "OECORE_NATIVE_SYSROOT=\"\$SAVED\"" >> $env_setup_script 727 echo "export OECORE_NATIVE_SYSROOT=\"\$SAVED\"" >> $env_setup_script
728 fi 728 fi
729 729
730 # Allow bitbake environment setup to be ran as part of this sdk. 730 # Allow bitbake environment setup to be ran as part of this sdk.