mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c26ea554a7
commit
ba491952ee
@@ -43,6 +43,7 @@ BUILDHISTORY_COMMIT ?= "1"
|
||||
BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
|
||||
BUILDHISTORY_PUSH_REPO ?= ""
|
||||
BUILDHISTORY_TAG ?= "build"
|
||||
BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
|
||||
|
||||
SSTATEPOSTINSTFUNCS_append = " buildhistory_emit_pkghistory"
|
||||
# We want to avoid influencing the signatures of sstate tasks - first the function itself:
|
||||
@@ -697,7 +698,7 @@ python buildhistory_write_sigs() {
|
||||
if hasattr(bb.parse.siggen, 'dump_siglist'):
|
||||
taskoutdir = os.path.join(d.getVar('BUILDHISTORY_DIR'), 'task')
|
||||
bb.utils.mkdirhier(taskoutdir)
|
||||
bb.parse.siggen.dump_siglist(os.path.join(taskoutdir, 'tasksigs.txt'))
|
||||
bb.parse.siggen.dump_siglist(os.path.join(taskoutdir, 'tasksigs.txt'), d.getVar("BUILDHISTORY_PATH_PREFIX_STRIP"))
|
||||
}
|
||||
|
||||
def buildhistory_get_build_id(d):
|
||||
|
||||
Reference in New Issue
Block a user