diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-27 15:57:13 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-28 15:34:27 +0100 |
| commit | ec4d6b989aad5f4564e367c99c62c59f962b57ea (patch) | |
| tree | bd1a4783352a90629a4c07950391cafb986f5373 /bitbake/lib/bb/siggen.py | |
| parent | 15ceaaaaf777175df8fa49f08e37b23052ca2290 (diff) | |
| download | poky-ec4d6b989aad5f4564e367c99c62c59f962b57ea.tar.gz | |
bitbake: Pass task hash information to subprocesses
Pass task has informaiton to work processes, allowing full manipulation of
the hash data in the task context allowing checksums to be usable.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
| -rw-r--r-- | bitbake/lib/bb/siggen.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index ef14471b66..eb624311a0 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
| @@ -107,6 +107,10 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
| 107 | #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) | 107 | #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) |
| 108 | return h | 108 | return h |
| 109 | 109 | ||
| 110 | def set_taskdata(self, hashes, deps): | ||
| 111 | self.runtaskdeps = deps | ||
| 112 | self.taskhash = hashes | ||
| 113 | |||
| 110 | def dump_sigtask(self, fn, task, stampbase, runtime): | 114 | def dump_sigtask(self, fn, task, stampbase, runtime): |
| 111 | k = fn + "." + task | 115 | k = fn + "." + task |
| 112 | if runtime == "customfile": | 116 | if runtime == "customfile": |
| @@ -128,7 +132,7 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
| 128 | data['gendeps'][dep] = self.gendeps[fn][dep] | 132 | data['gendeps'][dep] = self.gendeps[fn][dep] |
| 129 | data['varvals'][dep] = self.lookupcache[fn][dep] | 133 | data['varvals'][dep] = self.lookupcache[fn][dep] |
| 130 | 134 | ||
| 131 | if runtime and runtime != "customfile": | 135 | if runtime: |
| 132 | data['runtaskdeps'] = self.runtaskdeps[k] | 136 | data['runtaskdeps'] = self.runtaskdeps[k] |
| 133 | data['runtaskhashes'] = {} | 137 | data['runtaskhashes'] = {} |
| 134 | for dep in data['runtaskdeps']: | 138 | for dep in data['runtaskdeps']: |
