mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
bitbake/siggen.py: Add a signature generator which adds the hash to the stamp files
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -178,6 +178,17 @@ class SignatureGeneratorBasic(SignatureGenerator):
|
|||||||
bb.error("The mismatched hashes were %s and %s" % (dataCache.basetaskhash[k], self.basehash[k]))
|
bb.error("The mismatched hashes were %s and %s" % (dataCache.basetaskhash[k], self.basehash[k]))
|
||||||
self.dump_sigtask(fn, task, dataCache.stamp[fn], True)
|
self.dump_sigtask(fn, task, dataCache.stamp[fn], True)
|
||||||
|
|
||||||
|
class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
|
||||||
|
name = "basichash"
|
||||||
|
|
||||||
|
def stampfile(self, stampbase, fn, taskname):
|
||||||
|
if taskname != "do_setscene" and taskname.endswith("_setscene"):
|
||||||
|
k = fn + "." + taskname[:-9]
|
||||||
|
else:
|
||||||
|
k = fn + "." + taskname
|
||||||
|
h = self.taskhash[k]
|
||||||
|
return "%s.%s.%s" % (stampbase, taskname, h)
|
||||||
|
|
||||||
def dump_this_task(outfile, d):
|
def dump_this_task(outfile, d):
|
||||||
fn = d.getVar("BB_FILENAME", True)
|
fn = d.getVar("BB_FILENAME", True)
|
||||||
task = "do_" + d.getVar("BB_CURRENTTASK", True)
|
task = "do_" + d.getVar("BB_CURRENTTASK", True)
|
||||||
|
|||||||
Reference in New Issue
Block a user