From: Richard Purdie Date: Fri, 27 May 2011 14:03:43 +0000 (+0100) Subject: bitbake/runqueue.py: Move BB_WORKERCONTEXT to a place where anonymous python can... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24f8f691cfc77c5172814f180185891c1ea580e1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake/runqueue.py: Move BB_WORKERCONTEXT to a place where anonymous python can see it Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 028d8b58e36..afa1f8d736a 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1107,6 +1107,8 @@ class RunQueueExecute: os.dup2(newsi, sys.stdin.fileno()) + bb.data.setVar("BB_WORKERCONTEXT", "1", self.cooker.configuration.data) + the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) env2 = bb.data.export_vars(the_data) @@ -1124,7 +1126,6 @@ class RunQueueExecute: bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) - bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) for h in self.rqdata.hashes: