summaryrefslogtreecommitdiffstats
path: root/lib/bb/siggen.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-01-18 16:18:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-21 13:23:23 +0000
commit1a32c01490abf1e90e6733901cb08a1829e0ec59 (patch)
treed599d87efc55f256ddefa8495d8396491298517a /lib/bb/siggen.py
parent3c6caab8bc1b104e7db680e2d8bfab51642cad32 (diff)
downloadbitbake-contrib-1a32c01490abf1e90e6733901cb08a1829e0ec59.tar.gz
Introduce stamp-extra-info task flag into stamp filenames
For certain tasks, we need additional information in build stamp file other than the task name and file name. stamp-extra-info is introduced as a task flag which is appended to the stamp file name. [Code simplifcations/tweaks from Richard] (From Poky rev: 80cf3e405c923ed95dd09936739e816dbdd92299) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/siggen.py')
-rw-r--r--lib/bb/siggen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 3bd3becc6..15b5228cd 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -43,8 +43,8 @@ class SignatureGenerator(object):
def set_taskdata(self, hashes, deps):
return
- def stampfile(self, stampbase, file_name, taskname):
- return "%s.%s" % (stampbase, taskname)
+ def stampfile(self, stampbase, file_name, taskname, extrainfo):
+ return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.')
class SignatureGeneratorBasic(SignatureGenerator):
"""
@@ -197,13 +197,13 @@ class SignatureGeneratorBasic(SignatureGenerator):
class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
name = "basichash"
- def stampfile(self, stampbase, fn, taskname):
+ def stampfile(self, stampbase, fn, taskname, extrainfo):
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)
+ return ("%s.%s.%s.%s" % (stampbase, taskname, h, extrainfo)).rstrip('.')
def dump_this_task(outfile, d):
import bb.parse