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:40:58 +0000 |
commit | ecdabd321d48fa367b89ebffc00aa525b6eaa95c (patch) | |
tree | babd5157db5d4a0b19225a3e08a491d92c708967 /lib/bb/siggen.py | |
parent | 81bc1f20662c39ee8db1da45b1e8c7eb64abacf3 (diff) | |
download | bitbake-contrib-ecdabd321d48fa367b89ebffc00aa525b6eaa95c.tar.gz |
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.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
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, 9 insertions, 0 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index c104c19f1..a7916b29b 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -44,6 +44,10 @@ class SignatureGenerator(object): def get_taskhash(self, fn, task, deps, dataCache): return "0" + def writeout_file_checksum_cache(self): + """Write/update the file checksum cache onto disk""" + return + def set_taskdata(self, hashes, deps, checksum): return @@ -215,6 +219,11 @@ class SignatureGeneratorBasic(SignatureGenerator): #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) return h + def writeout_file_checksum_cache(self): + """Write/update the file checksum cache onto disk""" + bb.fetch2.fetcher_parse_save() + bb.fetch2.fetcher_parse_done() + def dump_sigtask(self, fn, task, stampbase, runtime): k = fn + "." + task if runtime == "customfile": |