diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-24 09:27:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-24 10:34:53 +0100 |
commit | fa4b1fa2577fb1a8128154c2f1417df575dbb022 (patch) | |
tree | c41f59641a8e3f2239f5f449a8fd8696da1b7578 /bitbake/lib/bb/tinfoil.py | |
parent | 7cf87fc083386dc162f3573c782d77447e608a16 (diff) | |
download | poky-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/tinfoil.py')
-rw-r--r-- | bitbake/lib/bb/tinfoil.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index c05e1465f1..45bac5edcb 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
@@ -90,11 +90,6 @@ class TinfoilConfigParameters(ConfigParameters): | |||
90 | def parseCommandLine(self): | 90 | def parseCommandLine(self): |
91 | class DummyOptions: | 91 | class DummyOptions: |
92 | def __init__(self, initial_options): | 92 | def __init__(self, initial_options): |
93 | self.show_environment = False | ||
94 | self.pkgs_to_build = [] | ||
95 | self.prefile = [] | ||
96 | self.postfile = [] | ||
97 | self.tracking = False | ||
98 | for key, val in initial_options.items(): | 93 | for key, val in initial_options.items(): |
99 | setattr(self, key, val) | 94 | setattr(self, key, val) |
100 | 95 | ||