summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-20 23:01:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-22 12:10:14 +0100
commitba707d0ffaf8f0709166514667b65c356fe1d48c (patch)
tree5c7970217e7f080c6fa734d2942c04b5d7654c53 /bitbake/lib/bb/cookerdata.py
parent26d19996a3d45e2f4b8f10516e45e10778929f6d (diff)
downloadpoky-ba707d0ffaf8f0709166514667b65c356fe1d48c.tar.gz
bitbake: bitbake/cookerdata: Explicitly specify cooker configuration options
As the code stands today its hard to know which configuration variables are used by which parts of the system. Some are used by the UIs, some by bin/bitbake itself, some by cooker. This patch changes the configuration to just contain the variables cooker uses, and changes bin/bitbake to access the variables it needs directly which hopefully lets us start to untangle this mess. (Bitbake rev: e57497a24b6157c92519a34accd66035a39ad1f8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 0b436b37e6..70e22b4a56 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -117,11 +117,20 @@ class CookerConfiguration(object):
117 self.postfile = [] 117 self.postfile = []
118 self.debug = 0 118 self.debug = 0
119 self.cmd = None 119 self.cmd = None
120 self.abort = True
121 self.force = False
122 self.ui = None
123 self.profile = False
124 self.nosetscene = False
125 self.invalidate_stamp = False
126 self.dump_signatures = False
127 self.dry_run = False
120 128
121 def setConfigParameters(self, parameters): 129 def setConfigParameters(self, parameters):
122 self.params = parameters 130 self.params = parameters
123 for key, val in parameters.options.__dict__.items(): 131 for key in self.__dict__.keys():
124 setattr(self, key, val) 132 if key in parameters.options.__dict__:
133 setattr(self, key, parameters.options.__dict__[key])
125 134
126 def setServerRegIdleCallback(self, srcb): 135 def setServerRegIdleCallback(self, srcb):
127 self.server_register_idlecallback = srcb 136 self.server_register_idlecallback = srcb