summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-15 18:01:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-18 10:06:26 +0100
commite79550ea8708f82aa720a47c5ed9a8aab1182458 (patch)
treeec719d8eb3c9828f14146ea6512b3e478d1dfffa /bitbake/lib/bb/cooker.py
parent97ce9126a6de2faf78441f686a1b52b5f68f9a62 (diff)
downloadpoky-e79550ea8708f82aa720a47c5ed9a8aab1182458.tar.gz
bitbake: cache/cooker: Pass databuilder into bb.cache.Cache()
Rather that the current mix of static and class methods, refactor so that the cache has the databuilder object internally. This becomes useful for the following patches for multi config support. It effectively completes some of the object oriented work we've been working towards in the bitbake core for a while. (Bitbake rev: 7da062956bf40c1b9ac1aaee222a13f40bba9b19) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 11c611de72..43c4f78dbc 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1974,6 +1974,7 @@ class CookerParser(object):
1974 self.cooker = cooker 1974 self.cooker = cooker
1975 self.cfgdata = cooker.data 1975 self.cfgdata = cooker.data
1976 self.cfghash = cooker.data_hash 1976 self.cfghash = cooker.data_hash
1977 self.cfgbuilder = cooker.databuilder
1977 1978
1978 # Accounting statistics 1979 # Accounting statistics
1979 self.parsed = 0 1980 self.parsed = 0
@@ -1988,7 +1989,7 @@ class CookerParser(object):
1988 self.current = 0 1989 self.current = 0
1989 self.process_names = [] 1990 self.process_names = []
1990 1991
1991 self.bb_cache = bb.cache.Cache(self.cfgdata, self.cfghash, cooker.caches_array) 1992 self.bb_cache = bb.cache.Cache(self.cfgbuilder, self.cfghash, cooker.caches_array)
1992 self.fromcache = [] 1993 self.fromcache = []
1993 self.willparse = [] 1994 self.willparse = []
1994 for filename in self.filelist: 1995 for filename in self.filelist: