Skip to contentSkip to conversation

mulitlib: Ensure SDKTARGETSYSROOT is set correctly

PATCH New Richard Purdie 1 participant 1 message Sep 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mulitlib: Ensure SDKTARGETSYSROOT is set correctly

When building something like lib32-core-image-minimal -c populate_sdk, we expect one sysroot with both multilibs installed. We therefore need a single SDKTARGETSYSROOT value which doesn't change when multilibs are enabled.

This makes the image generation code match what the meta-environment files set the SDK up to use.

meta/classes/multilib.bbclass +1 -0
index 8f61d8d..cbf1fb8 100644
@@ -26,6 +26,7 @@ python multilib_virtclass_handler () {
     if bb.data.inherits_class('image', e.data):
         e.data.setVar("MLPREFIX", variant + "-")
         e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
+        e.data.setVar('SDKTARGETSYSROOT', e.data.getVar('SDKTARGETSYSROOT', True))
         target_vendor = e.data.getVar("TARGET_VENDOR_" + "virtclass-multilib-" + variant, False)
         if target_vendor:
             e.data.setVar("TARGET_VENDOR", target_vendor)