[bitbake-devel] [1.44 7/7] siggen: Avoid cache mismatch issues with locked sigs
Armin Kuster
akuster808 at gmail.com
Sun Feb 9 16:03:15 UTC 2020
From: Richard Purdie <richard.purdie at linuxfoundation.org>
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>
(cherry picked from commit 27ad9c1d468fba858a4adeb56b605227b415ae0f)
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
lib/bb/siggen.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 96807c46..ffd8fcaf 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.17.1
More information about the bitbake-devel
mailing list