summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/data_smart.py3
-rw-r--r--bitbake/lib/bblayers/common.py2
-rw-r--r--bitbake/lib/layerindexlib/cooker.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 63a32bc6a7..b2dc9d9fd5 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -338,11 +338,12 @@ class VariableHistory(object):
338 lines.append(line) 338 lines.append(line)
339 return lines 339 return lines
340 340
341 def get_variable_items_files(self, var, d): 341 def get_variable_items_files(self, var):
342 """ 342 """
343 Use variable history to map items added to a list variable and 343 Use variable history to map items added to a list variable and
344 the files in which they were added. 344 the files in which they were added.
345 """ 345 """
346 d = self.dataroot
346 history = self.variable(var) 347 history = self.variable(var)
347 finalitems = (d.getVar(var) or '').split() 348 finalitems = (d.getVar(var) or '').split()
348 filemap = {} 349 filemap = {}
diff --git a/bitbake/lib/bblayers/common.py b/bitbake/lib/bblayers/common.py
index c5657d3819..6c76ef3505 100644
--- a/bitbake/lib/bblayers/common.py
+++ b/bitbake/lib/bblayers/common.py
@@ -17,7 +17,7 @@ class LayerPlugin():
17 def tinfoil_init(self, tinfoil): 17 def tinfoil_init(self, tinfoil):
18 self.tinfoil = tinfoil 18 self.tinfoil = tinfoil
19 self.bblayers = (self.tinfoil.config_data.getVar('BBLAYERS') or "").split() 19 self.bblayers = (self.tinfoil.config_data.getVar('BBLAYERS') or "").split()
20 layerconfs = self.tinfoil.config_data.varhistory.get_variable_items_files('BBFILE_COLLECTIONS', self.tinfoil.config_data) 20 layerconfs = self.tinfoil.config_data.varhistory.get_variable_items_files('BBFILE_COLLECTIONS')
21 self.bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()} 21 self.bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()}
22 22
23 @staticmethod 23 @staticmethod
diff --git a/bitbake/lib/layerindexlib/cooker.py b/bitbake/lib/layerindexlib/cooker.py
index 4ce397d884..65b23d087f 100644
--- a/bitbake/lib/layerindexlib/cooker.py
+++ b/bitbake/lib/layerindexlib/cooker.py
@@ -93,7 +93,7 @@ class CookerPlugin(layerindexlib.plugin.IndexPlugin):
93 return index 93 return index
94 94
95 collections = d.getVar('BBFILE_COLLECTIONS') 95 collections = d.getVar('BBFILE_COLLECTIONS')
96 layerconfs = d.varhistory.get_variable_items_files('BBFILE_COLLECTIONS', d) 96 layerconfs = d.varhistory.get_variable_items_files('BBFILE_COLLECTIONS')
97 bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()} 97 bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()}
98 98
99 (_, bb_branch, _, _) = self._get_bitbake_info() 99 (_, bb_branch, _, _) = self._get_bitbake_info()