diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 17:23:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 20:38:27 +0100 |
commit | 355338c40c6fc65d10980cfd75e9ab5ff96ed43a (patch) | |
tree | 1f9564de6685fd2237e14809e353249017531416 /bitbake/lib/bb/runqueue.py | |
parent | 9f33dde6e71b7b66db357b1bf289ae63e0db77d2 (diff) | |
download | poky-355338c40c6fc65d10980cfd75e9ab5ff96ed43a.tar.gz |
bitbake/cooker.py: Misc sync with upstream
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index afa1f8d736..52360accdb 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -753,7 +753,6 @@ class RunQueueData: | |||
753 | self.rqdata.runq_depends[task], | 753 | self.rqdata.runq_depends[task], |
754 | self.rqdata.runq_revdeps[task]) | 754 | self.rqdata.runq_revdeps[task]) |
755 | 755 | ||
756 | |||
757 | class RunQueue: | 756 | class RunQueue: |
758 | def __init__(self, cooker, cfgData, dataCache, taskData, targets): | 757 | def __init__(self, cooker, cfgData, dataCache, taskData, targets): |
759 | 758 | ||
@@ -1106,8 +1105,10 @@ class RunQueueExecute: | |||
1106 | newsi = os.open(os.devnull, os.O_RDWR) | 1105 | newsi = os.open(os.devnull, os.O_RDWR) |
1107 | os.dup2(newsi, sys.stdin.fileno()) | 1106 | os.dup2(newsi, sys.stdin.fileno()) |
1108 | 1107 | ||
1109 | |||
1110 | bb.data.setVar("BB_WORKERCONTEXT", "1", self.cooker.configuration.data) | 1108 | bb.data.setVar("BB_WORKERCONTEXT", "1", self.cooker.configuration.data) |
1109 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) | ||
1110 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) | ||
1111 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) | ||
1111 | 1112 | ||
1112 | the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) | 1113 | the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) |
1113 | 1114 | ||
@@ -1124,9 +1125,6 @@ class RunQueueExecute: | |||
1124 | if quieterrors: | 1125 | if quieterrors: |
1125 | the_data.setVarFlag(taskname, "quieterrors", "1") | 1126 | the_data.setVarFlag(taskname, "quieterrors", "1") |
1126 | 1127 | ||
1127 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) | ||
1128 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) | ||
1129 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) | ||
1130 | 1128 | ||
1131 | for h in self.rqdata.hashes: | 1129 | for h in self.rqdata.hashes: |
1132 | bb.data.setVar("BBHASH_%s" % h, self.rqdata.hashes[h], the_data) | 1130 | bb.data.setVar("BBHASH_%s" % h, self.rqdata.hashes[h], the_data) |