summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index c09f9296bd..658f30ff59 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -401,14 +401,18 @@ class Cache(object):
401 infos = [] 401 infos = []
402 datastores = cls.load_bbfile(filename, appends, configdata) 402 datastores = cls.load_bbfile(filename, appends, configdata)
403 depends = [] 403 depends = []
404 variants = []
405 # Process the "real" fn last so we can store variants list
404 for variant, data in sorted(datastores.items(), 406 for variant, data in sorted(datastores.items(),
405 key=lambda i: i[0], 407 key=lambda i: i[0],
406 reverse=True): 408 reverse=True):
407 virtualfn = cls.realfn2virtual(filename, variant) 409 virtualfn = cls.realfn2virtual(filename, variant)
410 variants.append(variant)
408 depends = depends + (data.getVar("__depends", False) or []) 411 depends = depends + (data.getVar("__depends", False) or [])
409 if depends and not variant: 412 if depends and not variant:
410 data.setVar("__depends", depends) 413 data.setVar("__depends", depends)
411 414 if virtualfn == filename:
415 data.setVar("__VARIANTS", " ".join(variants))
412 info_array = [] 416 info_array = []
413 for cache_class in caches_array: 417 for cache_class in caches_array:
414 info = cache_class(filename, data) 418 info = cache_class(filename, data)