summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 22:32:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 22:32:46 +0000
commit0b3d443fc1fcfdeea818abea10e8e52a9a937bfd (patch)
tree3690ff3b68ed92b81069e03bc4d1349a18754f29 /bitbake
parent4428aabc92c3f70b7bf79aae5f2c2165f5b43119 (diff)
downloadpoky-0b3d443fc1fcfdeea818abea10e8e52a9a937bfd.tar.gz
bitbake/runqueue.py: Simplify hashdata storage since we're not using an external script for tasks anymore, in line with bitbake-upstream
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py31
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