summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-07 17:46:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-08 11:14:31 +0000
commit2db07ca8a33e776f19f928a5e2d2700a8c2b3714 (patch)
treef56b47b8b98c241b3e7a5886d027753a47d9bee9 /bitbake/lib/bb
parent636dcb84fe541cf146aa0f9f2ca0abfe8ddfab2e (diff)
downloadpoky-2db07ca8a33e776f19f928a5e2d2700a8c2b3714.tar.gz
bitbake: siggen: Add computed hash code to verify hash computation to dumpsig
This is useful code to double check the computed checksum value if nothing else. Might as well have it in tree. (Bitbake rev: 54ecf96c6f031927ee2410f6efde4e16f19bbf66) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/siggen.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 1033785e05..e92a9c48a7 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -499,4 +499,17 @@ def dump_sigfile(a):
499 if 'taint' in a_data: 499 if 'taint' in a_data:
500 output.append("Tainted (by forced/invalidated task): %s" % a_data['taint']) 500 output.append("Tainted (by forced/invalidated task): %s" % a_data['taint'])
501 501
502 data = a_data['basehash']
503 for dep in a_data['runtaskdeps']:
504 data = data + a_data['runtaskhashes'][dep]
505
506 for c in a_data['file_checksum_values']:
507 data = data + c[1]
508
509 if 'taint' in a_data:
510 data = data + a_data['taint']
511
512 h = hashlib.md5(data).hexdigest()
513 output.append("Computed Hash is %s" % h)
514
502 return output 515 return output