]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory.bbclass: support extending the content of the build history
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 25 Nov 2015 09:30:30 +0000 (10:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:07:20 +0000 (21:07 +0000)
commit97f77ea3313b0d79ae4a6090672a2a9344282262
treeee055bcf8732ee4a3b5fbdab144a53acfeb74da6
parenta58e8e164b888a6e4747ef62a7a43825c4f47c32
buildhistory.bbclass: support extending the content of the build history

The idea behind the implementation of Yocto #8138 was that an
additional class can write additional files in the recipe directories,
for example by hooking into the functions of buildhistory.bbclass or
by implementing its own SSTATEPOSTINSTFUNCS function.

However, when these additional files get created before
buildhistory_emit_pkghistory(), they get removed again by that
function because it contains code which removes everything it does
not know about. The reason for that is that these unknown items
are probably obsolete.

This logic is the reason why the additional "kconfig" file from
buildhistory-extra.bbclass never showed up in the final build history.

To fix this, the hard-coded list of known files in
buildhistory_emit_pkghistory() must be turned into a variable which
derived classes can extend.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildhistory.bbclass