From 8da4bfe5b573f395057fbfb5a9d99b376e25c2a4 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 2 Jun 2022 19:56:23 -0600 Subject: util/release/build-release: Use short git hash for .coreboot-version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64923 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Felix Singer Reviewed-by: Kyösti Mälkki --- util/release/build-release | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/release/build-release b/util/release/build-release index 95eead6c1d..d4a9a1f5b8 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} " -- cgit v1.2.3