summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-04-07 16:57:19 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-11 18:10:17 +0100
commit6774995322cd6b092ca7f0e476077ca7aee0408e (patch)
tree99f80fe0d6363af78a55092fb9b238b55847fd18 /meta/lib
parent313e551b55d3fc6135b6c40d492d03463e7dfe18 (diff)
downloadpoky-6774995322cd6b092ca7f0e476077ca7aee0408e.tar.gz
classes/buildhistory: write out task signatures on every build
If we want to determine what changed since the last build, one angle from which to look at it is to check the signatures. However, if we don't actually have the signatures from the last build we don't have anywhere to start. Save the signatures on each build in order to give us the starting point. NOTE: you need to set your BUILDHISTORY_FEATURES value to include "task" to enable collection of these signatures as it is is disabled by default. (From OE-Core rev: 11f68f65c46c5bc26ddeeade3021e83b3a7f895a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/sstatesig.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 8d930134c9..3239bc63ae 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -211,6 +211,16 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
211 f.write(' "\n') 211 f.write(' "\n')
212 f.write('SIGGEN_LOCKEDSIGS_TYPES_%s = "%s"' % (self.machine, " ".join(l))) 212 f.write('SIGGEN_LOCKEDSIGS_TYPES_%s = "%s"' % (self.machine, " ".join(l)))
213 213
214 def dump_siglist(self, sigfile):
215 with open(sigfile, "w") as f:
216 tasks = []
217 for taskitem in self.taskhash:
218 (fn, task) = taskitem.rsplit(".", 1)
219 pn = self.lockedpnmap[fn]
220 tasks.append((pn, task, self.taskhash[taskitem]))
221 for (pn, task, taskhash) in sorted(tasks):
222 f.write('%s.%s %s\n' % (pn, task, taskhash))
223
214 def checkhashes(self, missed, ret, sq_fn, sq_task, sq_hash, sq_hashfn, d): 224 def checkhashes(self, missed, ret, sq_fn, sq_task, sq_hash, sq_hashfn, d):
215 warn_msgs = [] 225 warn_msgs = []
216 error_msgs = [] 226 error_msgs = []