summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-07-09 00:46:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-10 09:56:22 +0100
commit628c03af41c7d24d6149da522ceb52ff70513884 (patch)
treed9293ff2a266eea433e42111c8d00fca5d6e518e /meta/classes/buildhistory.bbclass
parentf74e8081ad229b07b19b205d73748e56b5b73d5e (diff)
downloadpoky-628c03af41c7d24d6149da522ceb52ff70513884.tar.gz
buildhistory: filter out the unexpected prefix for native/cross sysroots
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. (From OE-Core rev: 8bf53fbb62749b5d77c246fab6e1246b93f8c50f) 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.bbclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 5bf2726810..f986f7c794 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -65,9 +65,20 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"
65PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" 65PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
66PATCH_GIT_USER_NAME ?= "OpenEmbedded" 66PATCH_GIT_USER_NAME ?= "OpenEmbedded"
67 67
68#
69# Write out the contents of the sysroot
70#
68buildhistory_emit_sysroot() { 71buildhistory_emit_sysroot() {
69 mkdir --parents ${BUILDHISTORY_DIR_PACKAGE} 72 mkdir --parents ${BUILDHISTORY_DIR_PACKAGE}
70 buildhistory_list_files_no_owners ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot 73 case ${CLASSOVERRIDE} in
74 class-native|class-cross|class-crosssdk)
75 BASE=${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}
76 ;;
77 *)
78 BASE=${SYSROOT_DESTDIR}
79 ;;
80 esac
81 buildhistory_list_files_no_owners $BASE ${BUILDHISTORY_DIR_PACKAGE}/sysroot
71} 82}
72 83
73# 84#