]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
populate_sdk_ext.bclass: make sure OECORE_NATIVE_SYSROOT is exported.
authorGauthier HADERER <ghaderer@wyplay.com>
Thu, 27 Jun 2024 08:42:42 +0000 (10:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jul 2024 21:29:10 +0000 (22:29 +0100)
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.

Signed-off-by: Gauthier HADERER <ghaderer@wyplay.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/populate_sdk_ext.bbclass

index 019330e3ef72821d83a1411b297ca986a235ba5b..b02295384bb9c39159597d5dfd52ed29692306cb 100644 (file)
@@ -724,7 +724,7 @@ sdk_ext_postinst() {
                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
+               echo "export OECORE_NATIVE_SYSROOT=\"\$SAVED\"" >> $env_setup_script
        fi
 
        # Allow bitbake environment setup to be ran as part of this sdk.