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 | openembedded-core-contrib-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): 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": |