Skip to content
Snippets Groups Projects
Commit 0a99a2e2 authored by Daniel McGregor's avatar Daniel McGregor Committed by Richard Purdie
Browse files

buildhistory: Allow customising buildhistory tags


Allow setting custom buildhistory tag prefixes. This allows multiple
build directories to share one buildhistory git repository with multiple
worktrees.

(From OE-Core rev: 1bb2aa53a74e36dc3ba901b9d8ce780e7880cef8)

Signed-off-by: default avatarDaniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent a26efa28
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ BUILDHISTORY_SDK_FILES ?= "conf/local.conf conf/bblayers.conf conf/auto.conf con ...@@ -40,6 +40,7 @@ BUILDHISTORY_SDK_FILES ?= "conf/local.conf conf/bblayers.conf conf/auto.conf con
BUILDHISTORY_COMMIT ?= "1" BUILDHISTORY_COMMIT ?= "1"
BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>" BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
BUILDHISTORY_PUSH_REPO ?= "" BUILDHISTORY_PUSH_REPO ?= ""
BUILDHISTORY_TAG ?= "build"
SSTATEPOSTINSTFUNCS_append = " buildhistory_emit_pkghistory" SSTATEPOSTINSTFUNCS_append = " buildhistory_emit_pkghistory"
# We want to avoid influencing the signatures of sstate tasks - first the function itself: # We want to avoid influencing the signatures of sstate tasks - first the function itself:
...@@ -824,9 +825,9 @@ END ...@@ -824,9 +825,9 @@ END
if [ ! -e .git ] ; then if [ ! -e .git ] ; then
git init -q git init -q
else else
git tag -f build-minus-3 build-minus-2 > /dev/null 2>&1 || true git tag -f ${BUILDHISTORY_TAG}-minus-3 ${BUILDHISTORY_TAG}-minus-2 > /dev/null 2>&1 || true
git tag -f build-minus-2 build-minus-1 > /dev/null 2>&1 || true git tag -f ${BUILDHISTORY_TAG}-minus-2 ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true
git tag -f build-minus-1 > /dev/null 2>&1 || true git tag -f ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true
fi fi
check_git_config check_git_config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment