diff options
author | Martin Roth <martin@coreboot.org> | 2022-06-02 19:56:23 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@tutanota.com> | 2022-06-03 03:10:05 +0000 |
commit | 8da4bfe5b573f395057fbfb5a9d99b376e25c2a4 (patch) | |
tree | 3689e9fadda91b0da8b902a45fba3ee56ed20ce8 /util | |
parent | 5f9e2ded9f5d31a720b800978630fbb301e3e8a1 (diff) |
util/release/build-release: Use short git hash for .coreboot-version
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>
Diffstat (limited to 'util')
-rwxr-xr-x | util/release/build-release | 3 |
1 files changed, 2 insertions, 1 deletions
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} " |