The condition of incremental locked signature dump is an existed locked sig file is required and it is also the dump sig file.
But if they are not the same file or simply no locked sig file required, it should be unincremental. In unincremental dump situation, we should write the locked sig file rather than append. Signed-off-by: Hongxu Jia <hongxu....@windriver.com> --- meta/lib/oe/sstatesig.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index b2ffc7e..ce7c960 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py @@ -93,6 +93,7 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash): self.lockedhashfn = {} self.machine = data.getVar("MACHINE", True) self.mismatch_msgs = [] + self.bbinclude = (data.getVar("BBINCLUDED", True) or "").split() pass def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None): return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache) @@ -166,6 +167,9 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash): bb.plain("Nothing added to %s" % sigfile) return + if os.path.abspath(sigfile) not in self.bbinclude: + open(sigfile, "w").close() + with open(sigfile, "a") as f: for t in types: f.write('SIGGEN_LOCKEDSIGS_%s += "\\\n' % t) -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core