summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-17 14:53:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 11:16:03 +0000
commitf008c24dab14fcea7d0ff1c650255c8ea7126d43 (patch)
tree2bcbc39c4008a2679aff630ec20c94873821d869 /bitbake/lib/bb/data.py
parent941c5ddd191993fe18aba5796e397f6244fa80eb (diff)
downloadpoky-f008c24dab14fcea7d0ff1c650255c8ea7126d43.tar.gz
bitbake: data/siggen: Switch md5 -> sha256
Similarly to the codeparser change, change to sha256 hashes due to worries over collisions. The main impact of this change is slightly slower parsing time as well as longer sstate file names. (Bitbake rev: 66f1b766997d53b4375fdd25719b1175f3828903) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 6bcfcf46cc..29c2388038 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -436,7 +436,7 @@ def generate_dependency_hash(tasklist, gendeps, lookupcache, whitelist, fn):
436 if var is not None: 436 if var is not None:
437 data = data + str(var) 437 data = data + str(var)
438 k = fn + "." + task 438 k = fn + "." + task
439 basehash[k] = hashlib.md5(data.encode("utf-8")).hexdigest() 439 basehash[k] = hashlib.sha256(data.encode("utf-8")).hexdigest()
440 taskdeps[task] = alldeps 440 taskdeps[task] = alldeps
441 441
442 return taskdeps, basehash 442 return taskdeps, basehash