diff options
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 5508523f2d..66aea79355 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -216,7 +216,7 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
216 | self.taints[k] = taint | 216 | self.taints[k] = taint |
217 | logger.warning("%s is tainted from a forced run" % k) | 217 | logger.warning("%s is tainted from a forced run" % k) |
218 | 218 | ||
219 | h = hashlib.md5(data.encode("utf-8")).hexdigest() | 219 | h = hashlib.sha256(data.encode("utf-8")).hexdigest() |
220 | self.taskhash[k] = h | 220 | self.taskhash[k] = h |
221 | #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) | 221 | #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) |
222 | return h | 222 | return h |
@@ -650,7 +650,7 @@ def calc_basehash(sigdata): | |||
650 | if val is not None: | 650 | if val is not None: |
651 | basedata = basedata + str(val) | 651 | basedata = basedata + str(val) |
652 | 652 | ||
653 | return hashlib.md5(basedata.encode("utf-8")).hexdigest() | 653 | return hashlib.sha256(basedata.encode("utf-8")).hexdigest() |
654 | 654 | ||
655 | def calc_taskhash(sigdata): | 655 | def calc_taskhash(sigdata): |
656 | data = sigdata['basehash'] | 656 | data = sigdata['basehash'] |
@@ -668,7 +668,7 @@ def calc_taskhash(sigdata): | |||
668 | else: | 668 | else: |
669 | data = data + sigdata['taint'] | 669 | data = data + sigdata['taint'] |
670 | 670 | ||
671 | return hashlib.md5(data.encode("utf-8")).hexdigest() | 671 | return hashlib.sha256(data.encode("utf-8")).hexdigest() |
672 | 672 | ||
673 | 673 | ||
674 | def dump_sigfile(a): | 674 | def dump_sigfile(a): |