summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/siggen.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-05 10:34:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-11 17:31:17 +0100
commitbb54fd05708b86f4c78fe57852554a5b738858ea (patch)
tree1e121021cbaa8ee6ee721bb527dcc4d6e244e8b9 /bitbake/lib/bb/siggen.py
parent9ebf982d4a4959e3ab4b4f949c24a74738bcc637 (diff)
downloadpoky-bb54fd05708b86f4c78fe57852554a5b738858ea.tar.gz
bitbake: siggen/runqueue/bitbake-worker: Improve siggen data transfer interface
We need to transfer some of the siggen data from the core/cooker into the worker instances. There was a partial API created for this but its ugly and its not possible to extend it from the siggen class. This patch completes the interface/abstraction for the data and means the class can extend/customise it in any siggen class. (Bitbake rev: cf2d642052979d236185c5b8ca2c5478c06e62ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r--bitbake/lib/bb/siggen.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 548f50dfcf..86d9ca0593 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -197,10 +197,11 @@ class SignatureGeneratorBasic(SignatureGenerator):
197 #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) 197 #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task])
198 return h 198 return h
199 199
200 def set_taskdata(self, hashes, deps, checksums): 200 def get_taskdata(self):
201 self.runtaskdeps = deps 201 return (self.runtaskdeps, self.taskhash, self.file_checksum_values)
202 self.taskhash = hashes 202
203 self.file_checksum_values = checksums 203 def set_taskdata(self, data):
204 self.runtaskdeps, self.taskhash, self.file_checksum_values = data
204 205
205 def dump_sigtask(self, fn, task, stampbase, runtime): 206 def dump_sigtask(self, fn, task, stampbase, runtime):
206 k = fn + "." + task 207 k = fn + "." + task