summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/siggen.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 2f0fb71c78..1fa7b09272 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -38,6 +38,7 @@ class SignatureGenerator(object):
38 self.taskhash = {} 38 self.taskhash = {}
39 self.runtaskdeps = {} 39 self.runtaskdeps = {}
40 self.file_checksum_values = {} 40 self.file_checksum_values = {}
41 self.taints = {}
41 42
42 def finalise(self, fn, d, varient): 43 def finalise(self, fn, d, varient):
43 return 44 return
@@ -65,10 +66,10 @@ class SignatureGenerator(object):
65 return 66 return
66 67
67 def get_taskdata(self): 68 def get_taskdata(self):
68 return (self.runtaskdeps, self.taskhash, self.file_checksum_values) 69 return (self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints)
69 70
70 def set_taskdata(self, data): 71 def set_taskdata(self, data):
71 self.runtaskdeps, self.taskhash, self.file_checksum_values = data 72 self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints = data
72 73
73 74
74class SignatureGeneratorBasic(SignatureGenerator): 75class SignatureGeneratorBasic(SignatureGenerator):
@@ -543,7 +544,10 @@ def calc_taskhash(sigdata):
543 data = data + c[1] 544 data = data + c[1]
544 545
545 if 'taint' in sigdata: 546 if 'taint' in sigdata:
546 data = data + sigdata['taint'] 547 if 'nostamp:' in sigdata['taint']:
548 data = data + sigdata['taint'][8:]
549 else:
550 data = data + sigdata['taint']
547 551
548 return hashlib.md5(data).hexdigest() 552 return hashlib.md5(data).hexdigest()
549 553