From 7f7a7cba4dcd99d7b36a0d747bfd1bba3f9c2288 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 17 Apr 2019 19:01:51 +0800 Subject: bitbake: bb: siggen: Print more info when basehash are mis-matched This is useful for debugging. (Bitbake rev: 07b6054b32b37375e2de4b1276bf6fe3f9ad0b04) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- bitbake/lib/bb/siggen.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitbake/lib/bb/siggen.py') diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 89bf5339dc..7b9f3debc2 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py @@ -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 -- cgit v1.2.3-54-g00ecf