summaryrefslogtreecommitdiffstats
path: root/bitbake/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-01-18 12:50:04 +0000
commit80cf3e405c923ed95dd09936739e816dbdd92299 (patch)
tree62082943bf06a2df18722b911bf93dea05e43bfe /bitbake/lib/bb/siggen.py
parent740ea68258282c459b66bbed550e6347fb8e83a3 (diff)
downloadpoky-80cf3e405c923ed95dd09936739e816dbdd92299.tar.gz
bitbake: 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] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r--bitbake/lib/bb/siggen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 010c2cab26..2d28ecfc2d 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -42,8 +42,8 @@ class SignatureGenerator(object):
42 def set_taskdata(self, hashes, deps): 42 def set_taskdata(self, hashes, deps):
43 return 43 return
44 44
45 def stampfile(self, stampbase, file_name, taskname): 45 def stampfile(self, stampbase, file_name, taskname, extrainfo):
46 return "%s.%s" % (stampbase, taskname) 46 return ("%s.%s.%s" % (stampbase, taskname, extrainfo)).rstrip('.')
47 47
48class SignatureGeneratorBasic(SignatureGenerator): 48class SignatureGeneratorBasic(SignatureGenerator):
49 """ 49 """
@@ -196,13 +196,13 @@ class SignatureGeneratorBasic(SignatureGenerator):
196class SignatureGeneratorBasicHash(SignatureGeneratorBasic): 196class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
197 name = "basichash" 197 name = "basichash"
198 198
199 def stampfile(self, stampbase, fn, taskname): 199 def stampfile(self, stampbase, fn, taskname, extrainfo):
200 if taskname != "do_setscene" and taskname.endswith("_setscene"): 200 if taskname != "do_setscene" and taskname.endswith("_setscene"):
201 k = fn + "." + taskname[:-9] 201 k = fn + "." + taskname[:-9]
202 else: 202 else:
203 k = fn + "." + taskname 203 k = fn + "." + taskname
204 h = self.taskhash[k] 204 h = self.taskhash[k]
205 return "%s.%s.%s" % (stampbase, taskname, h) 205 return ("%s.%s.%s.%s" % (stampbase, taskname, h, extrainfo)).rstrip('.')
206 206
207def dump_this_task(outfile, d): 207def dump_this_task(outfile, d):
208 fn = d.getVar("BB_FILENAME", True) 208 fn = d.getVar("BB_FILENAME", True)