summaryrefslogtreecommitdiffstats
path: root/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-17 10:23:01 +0100
commit7da062956bf40c1b9ac1aaee222a13f40bba9b19 (patch)
tree09bb12e9484383c8fc4e4570f9e99086b4397b6c /lib/bb/cooker.py
parent6d06e93c6a2204af6d2cf747a4610bd0eeb9f202 (diff)
downloadbitbake-contrib-7da062956bf40c1b9ac1aaee222a13f40bba9b19.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 11c611de7..43c4f78db 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1974,6 +1974,7 @@ class CookerParser(object):
self.cooker = cooker
self.cfgdata = cooker.data
self.cfghash = cooker.data_hash
+ self.cfgbuilder = cooker.databuilder
# Accounting statistics
self.parsed = 0
@@ -1988,7 +1989,7 @@ class CookerParser(object):
self.current = 0
self.process_names = []
- self.bb_cache = bb.cache.Cache(self.cfgdata, self.cfghash, cooker.caches_array)
+ self.bb_cache = bb.cache.Cache(self.cfgbuilder, self.cfghash, cooker.caches_array)
self.fromcache = []
self.willparse = []
for filename in self.filelist: