diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-27 15:03:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-31 09:01:59 +0100 |
commit | 24f8f691cfc77c5172814f180185891c1ea580e1 (patch) | |
tree | c0fb2120260c7d366a82da6431576dad5ab16d95 | |
parent | 949c3521abb7fe9fc8f367ec4ce6b8a4ed8a1267 (diff) | |
download | poky-24f8f691cfc77c5172814f180185891c1ea580e1.tar.gz |
bitbake/runqueue.py: Move BB_WORKERCONTEXT to a place where anonymous python can see it
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 028d8b58e3..afa1f8d736 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1107,6 +1107,8 @@ class RunQueueExecute: | |||
1107 | os.dup2(newsi, sys.stdin.fileno()) | 1107 | os.dup2(newsi, sys.stdin.fileno()) |
1108 | 1108 | ||
1109 | 1109 | ||
1110 | bb.data.setVar("BB_WORKERCONTEXT", "1", self.cooker.configuration.data) | ||
1111 | |||
1110 | the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) | 1112 | the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) |
1111 | 1113 | ||
1112 | env2 = bb.data.export_vars(the_data) | 1114 | env2 = bb.data.export_vars(the_data) |
@@ -1124,7 +1126,6 @@ class RunQueueExecute: | |||
1124 | 1126 | ||
1125 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) | 1127 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) |
1126 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) | 1128 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) |
1127 | bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) | ||
1128 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) | 1129 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) |
1129 | 1130 | ||
1130 | for h in self.rqdata.hashes: | 1131 | for h in self.rqdata.hashes: |