diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-03-06 09:06:41 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-04-07 10:03:49 +1200 |
commit | 226303de6e9a13c22e1e7f367474aa17df85d915 (patch) | |
tree | ba91f83b9b39a246a0a2b4f96d4e7b7a749507d8 /meta/lib/oe/sstatesig.py | |
parent | 17a069a55a17282fbbad85b8b2bf1f2027b126d4 (diff) | |
download | openembedded-core-contrib-226303de6e9a13c22e1e7f367474aa17df85d915.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.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-rw-r--r-- | meta/lib/oe/sstatesig.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index 13fd3bd633..56b33bac43 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py @@ -211,6 +211,16 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash): f.write(' "\n') f.write('SIGGEN_LOCKEDSIGS_TYPES_%s = "%s"' % (self.machine, " ".join(l))) + def dump_siglist(self, sigfile): + with open(sigfile, "w") as f: + tasks = [] + for taskitem in self.taskhash: + (fn, task) = taskitem.rsplit(".", 1) + pn = self.lockedpnmap[fn] + tasks.append((pn, task, self.taskhash[taskitem])) + for (pn, task, taskhash) in sorted(tasks): + f.write('%s.%s %s\n' % (pn, task, taskhash)) + def checkhashes(self, missed, ret, sq_fn, sq_task, sq_hash, sq_hashfn, d): warn_msgs = [] error_msgs = [] |