diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-07 11:04:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-07 11:04:38 +0000 |
commit | 97789a160ad21ccc614f976fa5e2b306d816aabf (patch) | |
tree | 39bc5955daf514edc140297dc23cc30007992884 /bitbake/lib/bb | |
parent | 3f78c071b7a04bfc486dadc387863cc0fbb53fc8 (diff) | |
download | openembedded-core-97789a160ad21ccc614f976fa5e2b306d816aabf.tar.gz openembedded-core-97789a160ad21ccc614f976fa5e2b306d816aabf.tar.bz2 openembedded-core-97789a160ad21ccc614f976fa5e2b306d816aabf.zip |
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.py | 11 |
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): bb.error("The mismatched hashes were %s and %s" % (dataCache.basetaskhash[k], self.basehash[k])) 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): fn = d.getVar("BB_FILENAME", True) task = "do_" + d.getVar("BB_CURRENTTASK", True) |