summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-04-26 00:35:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-28 13:28:37 +0100
commitd533ffb82c9585037a6bae6fd862d53222fecb0e (patch)
tree10a3f565b1afad137b2992d636a8fd705d819c51 /meta/classes/buildhistory.bbclass
parentb96d6e2f9b46a6dcdde8e6c4661862feb44bef59 (diff)
downloadpoky-d533ffb82c9585037a6bae6fd862d53222fecb0e.tar.gz
buildhistory: write the contents of the sysroot
Changes to the sysroot are just as interesting during development, so write the file listing for the sysroot to buildhistory too. (From OE-Core rev: b3ac82a27ab70ed6996fe3087a578ac637820329) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 2e501df24b..baa7c8e279 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -60,15 +60,23 @@ SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs"
60# When extending build history, derive your class from buildhistory.bbclass 60# When extending build history, derive your class from buildhistory.bbclass
61# and extend this list here with the additional files created by the derived 61# and extend this list here with the additional files created by the derived
62# class. 62# class.
63BUILDHISTORY_PRESERVE = "latest latest_srcrev" 63BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"
64 64
65PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" 65PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
66PATCH_GIT_USER_NAME ?= "OpenEmbedded" 66PATCH_GIT_USER_NAME ?= "OpenEmbedded"
67 67
68buildhistory_emit_sysroot() {
69 mkdir --parents ${BUILDHISTORY_DIR_PACKAGE}
70 buildhistory_list_files ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot
71}
72
68# 73#
69# Write out metadata about this package for comparison when writing future packages 74# Write out metadata about this package for comparison when writing future packages
70# 75#
71python buildhistory_emit_pkghistory() { 76python buildhistory_emit_pkghistory() {
77 if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']:
78 bb.build.exec_func("buildhistory_emit_sysroot", d)
79
72 if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']: 80 if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']:
73 return 0 81 return 0
74 82