summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 09:27:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 10:34:53 +0100
commitfa4b1fa2577fb1a8128154c2f1417df575dbb022 (patch)
treec41f59641a8e3f2239f5f449a8fd8696da1b7578 /bitbake/lib/bb/cooker.py
parent7cf87fc083386dc162f3573c782d77447e608a16 (diff)
downloadpoky-fa4b1fa2577fb1a8128154c2f1417df575dbb022.tar.gz
bitbake: cooker/cookerdata: Improve configuration object handling
Originally it seemed like a good idea to keep the parameters around. Having seen this in real life use, its incorrect, we should pull all the data we need into the cooker's configuguration and then use this to build the datastore. Being able to just build the datastore from the parameters seemed like a good idea but having a dummy cooker configuration object is now looking like the better option. This also fixes failures in hob since the parseFiles command can call into cooker directly now and reset the configuration prefiles and postfiles at will, rather than the indirect calls before which were breaking the datastore (e.g. BBPATH wasn't set). The cleanup this allows in tinfoil illustrates how this change makes more sense. (Bitbake rev: f50df5b891bf318f12fc61c74adfcc626cc6f836) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4c0b569439..cd9cccdfce 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -165,7 +165,7 @@ class BBCooker:
165 if not self.configuration.server_register_idlecallback: 165 if not self.configuration.server_register_idlecallback:
166 worker = True 166 worker = True
167 167
168 self.databuilder = bb.cookerdata.CookerDataBuilder(self.configuration.params, worker) 168 self.databuilder = bb.cookerdata.CookerDataBuilder(self.configuration, worker)
169 self.configuration.data = self.databuilder.data 169 self.configuration.data = self.databuilder.data
170 170
171 def enableDataTracking(self): 171 def enableDataTracking(self):