[bitbake-devel] [PATCH 2/6] SignatureGenerator: add method for saving the file checksum cache

Markus Lehtonen markus.lehtonen at linux.intel.com
Tue Jan 26 13:34:28 UTC 2016


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 at linux.intel.com>
---
 lib/bb/siggen.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index c104c19..a7916b2 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":
-- 
2.1.4




More information about the bitbake-devel mailing list