summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 10:49:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 10:34:52 +0100
commitea346917910734b6a9e537f83bd26b18cd3bf4f0 (patch)
tree9dd88d3a824e3480fc754da00e46a36a76cb340d /bitbake/lib/bb/cookerdata.py
parentb9bd05b6724bb1cfe1a2ebd0610e6e084525eb63 (diff)
downloadpoky-ea346917910734b6a9e537f83bd26b18cd3bf4f0.tar.gz
bitbake: cooker/cookerdata/utils: Improve context management
The current execution context management for bitbake is ugly and the use of a global variable is nasty. Fixing that is hard, however we can improve things to start to establish an API for accessing and changing that context. This patch also adds in an explicit reset of the context when we reparse the configuration data which starts to improve the lifecycle of the data in setups like hob. (Bitbake rev: 6c3281a140125337fc75783973485e16785d05a1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index c4a28c86c5..de4331050d 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -173,6 +173,7 @@ class CookerDataBuilder(object):
173 self.postfiles = params.postfile 173 self.postfiles = params.postfile
174 self.tracking = params.tracking 174 self.tracking = params.tracking
175 175
176 bb.utils.set_context(bb.utils.clean_context())
176 self.data = bb.data.init() 177 self.data = bb.data.init()
177 if self.tracking: 178 if self.tracking:
178 self.data.enableTracking() 179 self.data.enableTracking()