From ba707d0ffaf8f0709166514667b65c356fe1d48c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 20 May 2013 23:01:48 +0100 Subject: 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 --- bitbake/lib/bb/cookerdata.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/cookerdata.py') 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): self.postfile = [] self.debug = 0 self.cmd = None + self.abort = True + self.force = False + self.ui = None + self.profile = False + self.nosetscene = False + self.invalidate_stamp = False + self.dump_signatures = False + self.dry_run = False def setConfigParameters(self, parameters): self.params = parameters - for key, val in parameters.options.__dict__.items(): - setattr(self, key, val) + for key in self.__dict__.keys(): + if key in parameters.options.__dict__: + setattr(self, key, parameters.options.__dict__[key]) def setServerRegIdleCallback(self, srcb): self.server_register_idlecallback = srcb -- cgit v1.2.3-54-g00ecf