]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/buildhistory: save output file signatures for sstate tasks paule/buildhistory-sigs
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 15 Mar 2017 02:52:59 +0000 (15:52 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 6 Apr 2017 22:03:53 +0000 (10:03 +1200)
commit584e81b4bfec3d3694d52b6bba7ad9f6e2aa7e8e
treec48cdd3b2c050b5c67788b776969b418adacd635
parentcbe34fca7f175f800c50298defaaf0ea88473c15
classes/buildhistory: save output file signatures for sstate tasks

Save a file per task listing sha256sums for each file staged, i.e.
the output of the task. Some caveats:

1) This only covers sstate tasks since it uses SSTATEPOSTUNPACKFUNCS,
   however those are generally the most interesting in terms of output
   anyway.
2) The signature is taken before applying any relocations, so any
   relocated files will actually have different signatures, but that's
   churn that you probably won't want to see here.
3) At the moment if you run the same build twice without sstate you will
   very likely see changes in the output for certain tasks due to things
   like timestamps being present in the binary output. Fixing that is
   a general Linux ecosystem problem - see this page for our efforts to
   resolve it on our side:
     https://wiki.yoctoproject.org/wiki/Reproducible_Builds

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>
meta/classes/buildhistory.bbclass