aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-30 23:10:23 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-08-15 16:08:07 +0100
commitc7eacb4ae99244a763571780d529600937e5f917 (patch)
treea0928a34de7b8d91bb9ce04d8d4d8d26754053f5
parent142aec63946a389f2ef9e2ef27141f90062bb606 (diff)
downloadopenembedded-core-contrib-c7eacb4ae99244a763571780d529600937e5f917.tar.gz
openembedded-core-contrib-c7eacb4ae99244a763571780d529600937e5f917.tar.bz2
openembedded-core-contrib-c7eacb4ae99244a763571780d529600937e5f917.zip
sstate: Add locked sstate missing warning
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sstate.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 0d3940e409..477bacb07b 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -704,6 +704,17 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d):
evdata['found'].append( (sq_fn[task], sq_task[task], sq_hash[task], sstatefile ) )
bb.event.fire(bb.event.MetadataEvent("MissedSstate", evdata), d)
+ if hasattr(bb.parse.siggen, "lockedsigs"):
+ msgs = []
+ lockedsigs = bb.parse.siggen.lockedsigs
+ for task in range(len(sq_fn)):
+ if task not in ret:
+ for pn in lockedsigs:
+ if sq_hash[task] in lockedsigs[pn].itervalues():
+ msgs.append("Locked sig is set for %s:%s (%s) yet not in sstate cache?" % (pn, sq_task[task], sq_hash[task]))
+ if msgs:
+ bb.fatal("\n".join(msgs))
+
return ret
BB_SETSCENE_DEPVALID = "setscene_depvalid"