summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2022-06-02 19:56:23 -0600
committerMartin L Roth <gaumless@tutanota.com>2022-06-03 03:10:05 +0000
commit8da4bfe5b573f395057fbfb5a9d99b376e25c2a4 (patch)
tree3689e9fadda91b0da8b902a45fba3ee56ed20ce8
parent5f9e2ded9f5d31a720b800978630fbb301e3e8a1 (diff)
downloadcoreboot-8da4bfe5b573f395057fbfb5a9d99b376e25c2a4.tar.gz
coreboot-8da4bfe5b573f395057fbfb5a9d99b376e25c2a4.tar.bz2
coreboot-8da4bfe5b573f395057fbfb5a9d99b376e25c2a4.zip
util/release/build-release: Use short git hash for .coreboot-version4.17
Builds were suddenly failing when the release was done, because the coreboot version was overflowing a 64 character limit. We don't need or use the full hash in other places, so limit the hash to just what's needed to identify the commit. Change-Id: I57c535ca251792cae2c9a9c951e6b44bb61e4e78 Signed-off-by: Martin Roth <martin@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64923 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rwxr-xr-xutil/release/build-release3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/release/build-release b/util/release/build-release
index 95eead6c1dc8..d4a9a1f5b8d5 100755
--- a/util/release/build-release
+++ b/util/release/build-release
@@ -66,7 +66,7 @@ else
git tag -a --force "$VERSION_NAME" -m "coreboot version $VERSION_NAME"
fi
-printf "%s-%s\n" "$VERSION_NAME" "$(git log --pretty=%H|head -1)" > .coreboot-version
+printf "%s-%s\n" "$VERSION_NAME" "$(git log --pretty=%h|head -1)" > .coreboot-version
tstamp=$(git log --pretty=format:%ci -1)
cd ..
@@ -75,6 +75,7 @@ exclude_paths+="3rdparty/fsp "
exclude_paths+="3rdparty/intel-microcode "
exclude_paths+="3rdparty/amd_blobs "
exclude_paths+="3rdparty/qc_blobs "
+
for i in ${exclude_paths}; do
blobs_paths+="coreboot-${VERSION_NAME}/${i} "
exclude_opts+="--exclude=coreboot-${VERSION_NAME}/${i} "