]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: filter out the unexpected prefix for native/cross sysroots
authorRoss Burton <ross.burton@intel.com>
Mon, 8 Jul 2019 23:46:50 +0000 (00:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Jul 2019 08:55:45 +0000 (09:55 +0100)
For various technical reasons, native and cross builds have a prefix that
includes the full path to the sysroot.  As these are stripped away before the
files are used in the sysroot, we should also filter them out of the
buildhistory report.  This both removes noise when sharing a buildhistory
repository between different build directories, and improves the accuracy of the
reports.

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

index 5bf272681077e7f648c6c6d8103a98023357d034..f986f7c794506ed9876968e740fda83576e7bf15 100644 (file)
@@ -65,9 +65,20 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"
 PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
 PATCH_GIT_USER_NAME ?= "OpenEmbedded"
 
+#
+# Write out the contents of the sysroot
+#
 buildhistory_emit_sysroot() {
        mkdir --parents ${BUILDHISTORY_DIR_PACKAGE}
-       buildhistory_list_files_no_owners ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot
+       case ${CLASSOVERRIDE} in
+       class-native|class-cross|class-crosssdk)
+               BASE=${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}
+               ;;
+       *)
+               BASE=${SYSROOT_DESTDIR}
+               ;;
+       esac
+       buildhistory_list_files_no_owners $BASE ${BUILDHISTORY_DIR_PACKAGE}/sysroot
 }
 
 #