diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 6ba82a338c..a508d137c8 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -703,21 +703,18 @@ class RunQueueData: | |||
703 | procdep.append(self.taskData.fn_index[self.runq_fnid[dep]] + "." + self.runq_task[dep]) | 703 | procdep.append(self.taskData.fn_index[self.runq_fnid[dep]] + "." + self.runq_task[dep]) |
704 | self.runq_hash[task] = bb.parse.siggen.get_taskhash(self.taskData.fn_index[self.runq_fnid[task]], self.runq_task[task], procdep, self.dataCache) | 704 | self.runq_hash[task] = bb.parse.siggen.get_taskhash(self.taskData.fn_index[self.runq_fnid[task]], self.runq_task[task], procdep, self.dataCache) |
705 | 705 | ||
706 | hashdata = {} | 706 | self.hashes = {} |
707 | hashdata["hashes"] = {} | 707 | self.hash_deps = {} |
708 | hashdata["deps"] = {} | ||
709 | for task in xrange(len(self.runq_fnid)): | 708 | for task in xrange(len(self.runq_fnid)): |
710 | hashdata["hashes"][self.taskData.fn_index[self.runq_fnid[task]] + "." + self.runq_task[task]] = self.runq_hash[task] | 709 | identifier = '%s.%s' % (self.taskData.fn_index[self.runq_fnid[task]], |
710 | self.runq_task[task]) | ||
711 | self.hashes[identifier] = self.runq_hash[task] | ||
711 | deps = [] | 712 | deps = [] |
712 | for dep in self.runq_depends[task]: | 713 | for dep in self.runq_depends[task]: |
713 | deps.append(self.taskData.fn_index[self.runq_fnid[dep]] + "." + self.runq_task[dep]) | 714 | depidentifier = '%s.%s' % (self.taskData.fn_index[self.runq_fnid[dep]], |
714 | hashdata["deps"][self.taskData.fn_index[self.runq_fnid[task]] + "." + self.runq_task[task]] = deps | 715 | self.runq_task[dep]) |
715 | 716 | deps.append(depidentifier) | |
716 | hashdata["msg-debug"] = self.cooker.configuration.debug | 717 | self.hash_deps[identifier] = deps |
717 | hashdata["msg-debug-domains"] = self.cooker.configuration.debug_domains | ||
718 | hashdata["verbose"] = self.cooker.configuration.verbose | ||
719 | |||
720 | self.hashdata = hashdata | ||
721 | 718 | ||
722 | # Remove stamps for targets if force mode active | 719 | # Remove stamps for targets if force mode active |
723 | if self.cooker.configuration.force: | 720 | if self.cooker.configuration.force: |
@@ -1119,12 +1116,12 @@ class RunQueueExecute: | |||
1119 | the_data.setVarFlag(taskname, "quieterrors", "1") | 1116 | the_data.setVarFlag(taskname, "quieterrors", "1") |
1120 | 1117 | ||
1121 | bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) | 1118 | bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) |
1122 | bb.parse.siggen.set_taskdata(self.rqdata.hashdata["hashes"], self.rqdata.hashdata["deps"]) | 1119 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) |
1123 | 1120 | ||
1124 | for h in self.rqdata.hashdata["hashes"]: | 1121 | for h in self.rqdata.hashes: |
1125 | bb.data.setVar("BBHASH_%s" % h, self.rqdata.hashdata["hashes"][h], the_data) | 1122 | bb.data.setVar("BBHASH_%s" % h, self.rqdata.hashes[h], the_data) |
1126 | for h in self.rqdata.hashdata["deps"]: | 1123 | for h in self.rqdata.hash_deps: |
1127 | bb.data.setVar("BBHASHDEPS_%s" % h, self.rqdata.hashdata["deps"][h], the_data) | 1124 | bb.data.setVar("BBHASHDEPS_%s" % h, self.rqdata.hash_deps[h], the_data) |
1128 | 1125 | ||
1129 | bb.data.setVar("BB_TASKHASH", self.rqdata.runq_hash[task], the_data) | 1126 | bb.data.setVar("BB_TASKHASH", self.rqdata.runq_hash[task], the_data) |
1130 | 1127 | ||