[oe-commits] [openembedded-core] 03/04: lib/oe/sstatesig: Fix task mappings from multilib<->non-multilib contexts

git at git.openembedded.org git at git.openembedded.org
Mon Jul 2 13:00:04 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 87658309912a791439abfb2544afc184ae0a10ba
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Jul 2 09:05:17 2018 +0000

    lib/oe/sstatesig: Fix task mappings from multilib<->non-multilib contexts
    
    If we're in a multilib context already and want a non-multilib context
    this function returned incorrect values.
    
    Try and retain optimisations for the common case not needing to request
    a datastore but allow the different multilib/non-multilib combinations
    to work too.
    
    This fixes bugs where rootfs generation of a multilib image would
    write into incorrect locations, or be unable to find sstate manifest
    files due to incorrect data stores being used to expand data.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/sstatesig.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index b82e0f4..0aa577d 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -372,8 +372,14 @@ def sstate_get_manifest_filename(task, d):
 def find_sstate_manifest(taskdata, taskdata2, taskname, d, multilibcache):
     d2 = d
     variant = ''
+    curr_variant = ''
+    if d.getVar("BBEXTENDCURR") == "multilib":
+        curr_variant = d.getVar("BBEXTENDVARIANT")
+        if "virtclass-multilib" not in d.getVar("OVERRIDES"):
+            curr_variant = "invalid"
     if taskdata2.startswith("virtual:multilib"):
         variant = taskdata2.split(":")[2]
+    if curr_variant != variant:
         if variant not in multilibcache:
             multilibcache[variant] = oe.utils.get_multilib_datastore(variant, d)
         d2 = multilibcache[variant]

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list