diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-26 14:11:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-27 13:29:18 +0100 |
commit | feb01ee54d3706fe93768f332054c7532f7209e4 (patch) | |
tree | 35adced7e6f9887ac07b893a83b392eeffa43346 | |
parent | 419a7840b8627278db694029c25df00214d01d96 (diff) | |
download | bitbake-feb01ee54d3706fe93768f332054c7532f7209e4.tar.gz |
siggen: Avoid writing misleading sigdata files
Use the unihash in the output filename of sigdata files else the contents
of stamp directories is misleading. Write the unihash into the singature to
make it clear what happened.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/siggen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index 6207cbca3..90f0926f2 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -268,7 +268,7 @@ class SignatureGeneratorBasic(SignatureGenerator): sigfile = stampbase referencestamp = runtime[11:] elif runtime and tid in self.taskhash: - sigfile = stampbase + "." + task + ".sigdata" + "." + self.taskhash[tid] + sigfile = stampbase + "." + task + ".sigdata" + "." + self.get_unihash(tid) else: sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid] @@ -296,6 +296,7 @@ class SignatureGeneratorBasic(SignatureGenerator): for dep in data['runtaskdeps']: data['runtaskhashes'][dep] = self.get_unihash(dep) data['taskhash'] = self.taskhash[tid] + data['unihash'] = self.get_unihash(tid) taint = self.read_taint(fn, task, referencestamp) if taint: |