Skip to contentSkip to conversation

populate_sdk_ext.bclass: make sure OECORE_NATIVE_SYSROOT is exported.

PATCH New Gauthier HADERER 1 participant 1 message Jun 27, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes-recipe/populate_sdk_ext.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/populate_sdk_ext.bbclass +1 -1
index 019330e3ef..b02295384b 100644
@@ -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.
Signature · 1 line
2.40.1