diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-05 10:34:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-11 17:30:18 +0100 |
commit | cf2d642052979d236185c5b8ca2c5478c06e62ae (patch) | |
tree | 7204e20516d29e268ea64e38d0ab9c35cffc6fbc /lib/bb/siggen.py | |
parent | a9439b136f55f3f0e80ff053cd3b159da69ba362 (diff) | |
download | openembedded-core-contrib-cf2d642052979d236185c5b8ca2c5478c06e62ae.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/siggen.py')
-rw-r--r-- | lib/bb/siggen.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index 548f50dfcf..86d9ca0593 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -197,10 +197,11 @@ class SignatureGeneratorBasic(SignatureGenerator): #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) return h - def set_taskdata(self, hashes, deps, checksums): - self.runtaskdeps = deps - self.taskhash = hashes - self.file_checksum_values = checksums + def get_taskdata(self): + return (self.runtaskdeps, self.taskhash, self.file_checksum_values) + + def set_taskdata(self, data): + self.runtaskdeps, self.taskhash, self.file_checksum_values = data def dump_sigtask(self, fn, task, stampbase, runtime): k = fn + "." + task |