]> code.ossystems Code Review - openembedded-core.git/commitdiff
mulitlib: Ensure SDKTARGETSYSROOT is set correctly
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2015 16:44:59 +0000 (17:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2015 16:57:44 +0000 (17:57 +0100)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/multilib.bbclass

index c0cb6d7294f236e5cdb702505d8f1bd3d2d7f452..052f911ac28f66645d8543efb6a594beb68f335a 100644 (file)
@@ -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)