summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-31 15:35:59 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-08-15 16:08:07 +0100
commit5482120b63499b8e950567a75d3208a5440a8abb (patch)
tree686c85c9a2bc8ad27d1e52370d4d59e4b5ee9743
parentc7eacb4ae99244a763571780d529600937e5f917 (diff)
downloadopenembedded-core-contrib-5482120b63499b8e950567a75d3208a5440a8abb.tar.gz
openembedded-core-contrib-5482120b63499b8e950567a75d3208a5440a8abb.tar.bz2
openembedded-core-contrib-5482120b63499b8e950567a75d3208a5440a8abb.zip
sstatesig: Only call dump_sigtask for unlocked tasks
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/sstatesig.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 61e93ae8d2..273b79beb3 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -83,6 +83,7 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
self.abisaferecipes = (data.getVar("SIGGEN_EXCLUDERECIPES_ABISAFE", True) or "").split()
self.saferecipedeps = (data.getVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS", True) or "").split()
self.lockedsigs = sstate_lockedsigs(data)
+ self.lockedhashes = {}
pass
def rundep_check(self, fn, recipename, task, dep, depname, dataCache = None):
return sstate_rundepfilter(self, fn, recipename, task, dep, depname, dataCache)
@@ -103,12 +104,18 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
if task in self.lockedsigs[recipename]:
k = fn + "." + task
h = self.lockedsigs[recipename][task]
+ self.lockedhashes[k] = h
self.taskhash[k] = h
#bb.warn("Using %s %s %s" % (recipename, task, h))
return h
h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(fn, task, deps, dataCache)
#bb.warn("%s %s %s" % (recipename, task, h))
return h
+ def dump_sigtask(self, fn, task, stampbase, runtime):
+ k = fn + "." + task
+ if k in self.lockedhashes:
+ return
+ super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)
# Insert these classes into siggen's namespace so it can see and select them
bb.siggen.SignatureGeneratorOEBasic = SignatureGeneratorOEBasic