diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-01-26 15:34:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-18 07:41:15 +0000 |
commit | 5177b1e4ac8a2b0567c1990623cfa014d7ec3ae8 (patch) | |
tree | 7fdafb57580c02ffcd1e7a098cf7f4b053e40d22 | |
parent | 97617fd6755ffa25c058215ffb060cbb86240b44 (diff) | |
download | poky-5177b1e4ac8a2b0567c1990623cfa014d7ec3ae8.tar.gz |
bitbake: SignatureGenerator: add method for saving the file checksum cache
Extend the API in order to be able to write out the file checksum cache
onto disk. SignatureGeneratorBasic class now implements a method that
update the fetcher local files checksum cache with the task file
dependency checksums.
(Bitbake rev: ecdabd321d48fa367b89ebffc00aa525b6eaa95c)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/siggen.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index c104c19f17..a7916b29bd 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -44,6 +44,10 @@ class SignatureGenerator(object): | |||
44 | def get_taskhash(self, fn, task, deps, dataCache): | 44 | def get_taskhash(self, fn, task, deps, dataCache): |
45 | return "0" | 45 | return "0" |
46 | 46 | ||
47 | def writeout_file_checksum_cache(self): | ||
48 | """Write/update the file checksum cache onto disk""" | ||
49 | return | ||
50 | |||
47 | def set_taskdata(self, hashes, deps, checksum): | 51 | def set_taskdata(self, hashes, deps, checksum): |
48 | return | 52 | return |
49 | 53 | ||
@@ -215,6 +219,11 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
215 | #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) | 219 | #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) |
216 | return h | 220 | return h |
217 | 221 | ||
222 | def writeout_file_checksum_cache(self): | ||
223 | """Write/update the file checksum cache onto disk""" | ||
224 | bb.fetch2.fetcher_parse_save() | ||
225 | bb.fetch2.fetcher_parse_done() | ||
226 | |||
218 | def dump_sigtask(self, fn, task, stampbase, runtime): | 227 | def dump_sigtask(self, fn, task, stampbase, runtime): |
219 | k = fn + "." + task | 228 | k = fn + "." + task |
220 | if runtime == "customfile": | 229 | if runtime == "customfile": |