summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-07 11:04:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-07 11:04:38 +0000
commit97789a160ad21ccc614f976fa5e2b306d816aabf (patch)
tree39bc5955daf514edc140297dc23cc30007992884 /bitbake/lib/bb
parent3f78c071b7a04bfc486dadc387863cc0fbb53fc8 (diff)
downloadpoky-97789a160ad21ccc614f976fa5e2b306d816aabf.tar.gz
bitbake/siggen.py: Add a signature generator which adds the hash to the stamp files
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/siggen.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 7d7a203b83..4dc09b3f9e 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -178,6 +178,17 @@ class SignatureGeneratorBasic(SignatureGenerator):
178 bb.error("The mismatched hashes were %s and %s" % (dataCache.basetaskhash[k], self.basehash[k])) 178 bb.error("The mismatched hashes were %s and %s" % (dataCache.basetaskhash[k], self.basehash[k]))
179 self.dump_sigtask(fn, task, dataCache.stamp[fn], True) 179 self.dump_sigtask(fn, task, dataCache.stamp[fn], True)
180 180
181class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
182 name = "basichash"
183
184 def stampfile(self, stampbase, fn, taskname):
185 if taskname != "do_setscene" and taskname.endswith("_setscene"):
186 k = fn + "." + taskname[:-9]
187 else:
188 k = fn + "." + taskname
189 h = self.taskhash[k]
190 return "%s.%s.%s" % (stampbase, taskname, h)
191
181def dump_this_task(outfile, d): 192def dump_this_task(outfile, d):
182 fn = d.getVar("BB_FILENAME", True) 193 fn = d.getVar("BB_FILENAME", True)
183 task = "do_" + d.getVar("BB_CURRENTTASK", True) 194 task = "do_" + d.getVar("BB_CURRENTTASK", True)