]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: write the contents of the sysroot
authorRoss Burton <ross.burton@intel.com>
Thu, 25 Apr 2019 23:35:59 +0000 (00:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Jun 2019 12:28:32 +0000 (13:28 +0100)
Changes to the sysroot are just as interesting during development, so write the
file listing for the sysroot to buildhistory too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index 2e501df24b4f3311ef04f31c4811ec93ba0952f6..baa7c8e2799229cfad2c565a542ecad4ffd35d64 100644 (file)
@@ -60,15 +60,23 @@ SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs"
 # When extending build history, derive your class from buildhistory.bbclass
 # and extend this list here with the additional files created by the derived
 # class.
-BUILDHISTORY_PRESERVE = "latest latest_srcrev"
+BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"
 
 PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
 PATCH_GIT_USER_NAME ?= "OpenEmbedded"
 
+buildhistory_emit_sysroot() {
+       mkdir --parents ${BUILDHISTORY_DIR_PACKAGE}
+       buildhistory_list_files ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot
+}
+
 #
 # Write out metadata about this package for comparison when writing future packages
 #
 python buildhistory_emit_pkghistory() {
+    if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']:
+        bb.build.exec_func("buildhistory_emit_sysroot", d)
+
     if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']:
         return 0