diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-04-17 19:01:51 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-23 23:30:45 +0100 |
commit | 7f7a7cba4dcd99d7b36a0d747bfd1bba3f9c2288 (patch) | |
tree | 19f74d43be07b83c72e8d7d5fe76702bfa8d42e6 /bitbake | |
parent | 3c06699da34904eae33b8c3f81e161313a234cc4 (diff) | |
download | poky-7f7a7cba4dcd99d7b36a0d747bfd1bba3f9c2288.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 6 |
1 files changed, 6 insertions, 0 deletions
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): | |||
119 | k = fn + "." + task | 119 | k = fn + "." + task |
120 | if not ignore_mismatch and k in self.basehash and self.basehash[k] != basehash[k]: | 120 | if not ignore_mismatch and k in self.basehash and self.basehash[k] != basehash[k]: |
121 | 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])) | 121 | 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])) |
122 | bb.error("The following commands may help:") | ||
123 | cmd = "$ bitbake %s -c%s" % (d.getVar('PN'), task) | ||
124 | # Make sure sigdata is dumped before run printdiff | ||
125 | bb.error("%s -Snone" % cmd) | ||
126 | bb.error("Then:") | ||
127 | bb.error("%s -Sprintdiff\n" % cmd) | ||
122 | self.basehash[k] = basehash[k] | 128 | self.basehash[k] = basehash[k] |
123 | 129 | ||
124 | self.taskdeps[fn] = taskdeps | 130 | self.taskdeps[fn] = taskdeps |