summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/sstatesig.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index e86a09b332..47f3ca4efb 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -248,13 +248,24 @@ class SignatureGeneratorOEBasicHashMixIn(object):
248 f.write(' "\n') 248 f.write(' "\n')
249 f.write('SIGGEN_LOCKEDSIGS_TYPES_%s = "%s"' % (self.machine, " ".join(l))) 249 f.write('SIGGEN_LOCKEDSIGS_TYPES_%s = "%s"' % (self.machine, " ".join(l)))
250 250
251 def dump_siglist(self, sigfile): 251 def dump_siglist(self, sigfile, path_prefix_strip=None):
252 def strip_fn(fn):
253 nonlocal path_prefix_strip
254 if not path_prefix_strip:
255 return fn
256
257 fn_exp = fn.split(":")
258 if fn_exp[-1].startswith(path_prefix_strip):
259 fn_exp[-1] = fn_exp[-1][len(path_prefix_strip):]
260
261 return ":".join(fn_exp)
262
252 with open(sigfile, "w") as f: 263 with open(sigfile, "w") as f:
253 tasks = [] 264 tasks = []
254 for taskitem in self.taskhash: 265 for taskitem in self.taskhash:
255 (fn, task) = taskitem.rsplit(":", 1) 266 (fn, task) = taskitem.rsplit(":", 1)
256 pn = self.lockedpnmap[fn] 267 pn = self.lockedpnmap[fn]
257 tasks.append((pn, task, fn, self.taskhash[taskitem])) 268 tasks.append((pn, task, strip_fn(fn), self.taskhash[taskitem]))
258 for (pn, task, fn, taskhash) in sorted(tasks): 269 for (pn, task, fn, taskhash) in sorted(tasks):
259 f.write('%s:%s %s %s\n' % (pn, task, fn, taskhash)) 270 f.write('%s:%s %s %s\n' % (pn, task, fn, taskhash))
260 271