summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2021-05-27 13:18:35 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-03 23:09:41 +0100
commitba491952ee8b6183251f37e62485fc49b6e87ea5 (patch)
treeb651b6cb0d2e0e1804b8d09aea0a8d4f39b627ea /meta/classes/buildhistory.bbclass
parentc26ea554a7613d4561712fdd3060c7de7c0584d4 (diff)
downloadpoky-ba491952ee8b6183251f37e62485fc49b6e87ea5.tar.gz
classes/buildhistory: Add option to strip path prefix
Adds an option to strip a prefix from the paths reported in buildhistory. This makes it easier to compare task signatures in the build history when the builds were done from different directories. (From OE-Core rev: 194e7a29212c4a29222730f47d3133dfe92447c1) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 059de36a5d..55b12d7893 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -43,6 +43,7 @@ BUILDHISTORY_COMMIT ?= "1"
43BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>" 43BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
44BUILDHISTORY_PUSH_REPO ?= "" 44BUILDHISTORY_PUSH_REPO ?= ""
45BUILDHISTORY_TAG ?= "build" 45BUILDHISTORY_TAG ?= "build"
46BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
46 47
47SSTATEPOSTINSTFUNCS_append = " buildhistory_emit_pkghistory" 48SSTATEPOSTINSTFUNCS_append = " buildhistory_emit_pkghistory"
48# We want to avoid influencing the signatures of sstate tasks - first the function itself: 49# We want to avoid influencing the signatures of sstate tasks - first the function itself:
@@ -697,7 +698,7 @@ python buildhistory_write_sigs() {
697 if hasattr(bb.parse.siggen, 'dump_siglist'): 698 if hasattr(bb.parse.siggen, 'dump_siglist'):
698 taskoutdir = os.path.join(d.getVar('BUILDHISTORY_DIR'), 'task') 699 taskoutdir = os.path.join(d.getVar('BUILDHISTORY_DIR'), 'task')
699 bb.utils.mkdirhier(taskoutdir) 700 bb.utils.mkdirhier(taskoutdir)
700 bb.parse.siggen.dump_siglist(os.path.join(taskoutdir, 'tasksigs.txt')) 701 bb.parse.siggen.dump_siglist(os.path.join(taskoutdir, 'tasksigs.txt'), d.getVar("BUILDHISTORY_PATH_PREFIX_STRIP"))
701} 702}
702 703
703def buildhistory_get_build_id(d): 704def buildhistory_get_build_id(d):