[bitbake-devel] [PATCH 3/3] siggen: Avoid cache mismatch issues with locked sigs

Richard Purdie richard.purdie at linuxfoundation.org
Sat Feb 8 16:01:11 UTC 2020


If locked sigs are in use this function makes little sense, need to
avoid generating mismatch warnings.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/siggen.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 96807c46cd..ffd8fcaf36 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -515,6 +515,10 @@ class SignatureGeneratorUniHashMixIn(object):
         if self.setscenetasks and tid not in self.setscenetasks:
             return
 
+        # This can happen if locked sigs are in action. Detect and just abort
+        if taskhash != self.taskhash[tid]:
+            return
+
         # Sanity checks
         cache_unihash = self._get_unihash(tid, checkkey=taskhash)
         if cache_unihash is None:
-- 
2.20.1



More information about the bitbake-devel mailing list