]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
SignatureGenerator: add method for saving the file checksum cache
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 26 Jan 2016 13:34:28 +0000 (15:34 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Feb 2016 07:40:58 +0000 (07:40 +0000)
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>
lib/bb/siggen.py

index c104c19f17756e9ee36f9d6ff7c9ac0c1ad60d3f..a7916b29bdabd27bbd21721e580ffeb19f827b7f 100644 (file)
@@ -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":