mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
bitbake: bb: siggen: Print more info when basehash are mis-matched
This is useful for debugging. (Bitbake rev: 07b6054b32b37375e2de4b1276bf6fe3f9ad0b04) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3c06699da3
commit
7f7a7cba4d
@@ -119,6 +119,12 @@ class SignatureGeneratorBasic(SignatureGenerator):
|
||||
k = fn + "." + task
|
||||
if not ignore_mismatch and k in self.basehash and self.basehash[k] != basehash[k]:
|
||||
bb.error("When reparsing %s, the basehash value changed from %s to %s. The metadata is not deterministic and this needs to be fixed." % (k, self.basehash[k], basehash[k]))
|
||||
bb.error("The following commands may help:")
|
||||
cmd = "$ bitbake %s -c%s" % (d.getVar('PN'), task)
|
||||
# Make sure sigdata is dumped before run printdiff
|
||||
bb.error("%s -Snone" % cmd)
|
||||
bb.error("Then:")
|
||||
bb.error("%s -Sprintdiff\n" % cmd)
|
||||
self.basehash[k] = basehash[k]
|
||||
|
||||
self.taskdeps[fn] = taskdeps
|
||||
|
||||
Reference in New Issue
Block a user