summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/staging.bbclass8
-rw-r--r--meta/conf/bitbake.conf2
-rw-r--r--meta/lib/oe/sstatesig.py9
3 files changed, 16 insertions, 3 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 41df883495..27b012ecbd 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -256,7 +256,7 @@ python extend_recipe_sysroot() {
256 workdir = d.getVar("WORKDIR") 256 workdir = d.getVar("WORKDIR")
257 #bb.warn(str(taskdepdata)) 257 #bb.warn(str(taskdepdata))
258 pn = d.getVar("PN") 258 pn = d.getVar("PN")
259 259 mc = d.getVar("BB_CURRENT_MC")
260 stagingdir = d.getVar("STAGING_DIR") 260 stagingdir = d.getVar("STAGING_DIR")
261 sharedmanifests = d.getVar("COMPONENTS_DIR") + "/manifests" 261 sharedmanifests = d.getVar("COMPONENTS_DIR") + "/manifests"
262 recipesysroot = d.getVar("RECIPE_SYSROOT") 262 recipesysroot = d.getVar("RECIPE_SYSROOT")
@@ -443,7 +443,13 @@ python extend_recipe_sysroot() {
443 443
444 msg_exists = [] 444 msg_exists = []
445 msg_adding = [] 445 msg_adding = []
446
446 for dep in configuredeps: 447 for dep in configuredeps:
448 if mc != 'default':
449 # We should not care about other multiconfigs
450 depmc = dep.split(':')[1]
451 if depmc != mc:
452 continue
447 c = setscenedeps[dep][0] 453 c = setscenedeps[dep][0]
448 if c not in installed: 454 if c not in installed:
449 continue 455 continue
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e28f3c7311..f68954c511 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -877,7 +877,7 @@ BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \
877 file-checksums python func task export unexport noexec nostamp dirs cleandirs \ 877 file-checksums python func task export unexport noexec nostamp dirs cleandirs \
878 sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \ 878 sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \
879 recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno \ 879 recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno \
880 progress" 880 progress mcdepends"
881 881
882MLPREFIX ??= "" 882MLPREFIX ??= ""
883MULTILIB_VARIANTS ??= "" 883MULTILIB_VARIANTS ??= ""
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 5dcc2f5cd6..18c5a353a2 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -150,16 +150,23 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
150 if recipename in self.unlockedrecipes: 150 if recipename in self.unlockedrecipes:
151 unlocked = True 151 unlocked = True
152 else: 152 else:
153 def get_mc(tid):
154 tid = tid.rsplit('.', 1)[0]
155 if tid.startswith('multiconfig:'):
156 elems = tid.split(':')
157 return elems[1]
153 def recipename_from_dep(dep): 158 def recipename_from_dep(dep):
154 # The dep entry will look something like 159 # The dep entry will look something like
155 # /path/path/recipename.bb.task, virtual:native:/p/foo.bb.task, 160 # /path/path/recipename.bb.task, virtual:native:/p/foo.bb.task,
156 # ... 161 # ...
162
157 fn = dep.rsplit('.', 1)[0] 163 fn = dep.rsplit('.', 1)[0]
158 return dataCache.pkg_fn[fn] 164 return dataCache.pkg_fn[fn]
159 165
166 mc = get_mc(fn)
160 # If any unlocked recipe is in the direct dependencies then the 167 # If any unlocked recipe is in the direct dependencies then the
161 # current recipe should be unlocked as well. 168 # current recipe should be unlocked as well.
162 depnames = [ recipename_from_dep(x) for x in deps ] 169 depnames = [ recipename_from_dep(x) for x in deps if mc == get_mc(x)]
163 if any(x in y for y in depnames for x in self.unlockedrecipes): 170 if any(x in y for y in depnames for x in self.unlockedrecipes):
164 self.unlockedrecipes[recipename] = '' 171 self.unlockedrecipes[recipename] = ''
165 unlocked = True 172 unlocked = True