From ea346917910734b6a9e537f83bd26b18cd3bf4f0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 23 May 2013 10:49:57 +0100 Subject: 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 --- bitbake/lib/bb/cookerdata.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/cookerdata.py') 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): self.postfiles = params.postfile self.tracking = params.tracking + bb.utils.set_context(bb.utils.clean_context()) self.data = bb.data.init() if self.tracking: self.data.enableTracking() -- cgit v1.2.3-54-g00ecf