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>
This commit is contained in:
parent
5f9e2ded9f
commit
8da4bfe5b5
|
@ -66,7 +66,7 @@ else
|
||||||
git tag -a --force "$VERSION_NAME" -m "coreboot version $VERSION_NAME"
|
git tag -a --force "$VERSION_NAME" -m "coreboot version $VERSION_NAME"
|
||||||
fi
|
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)
|
tstamp=$(git log --pretty=format:%ci -1)
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ exclude_paths+="3rdparty/fsp "
|
||||||
exclude_paths+="3rdparty/intel-microcode "
|
exclude_paths+="3rdparty/intel-microcode "
|
||||||
exclude_paths+="3rdparty/amd_blobs "
|
exclude_paths+="3rdparty/amd_blobs "
|
||||||
exclude_paths+="3rdparty/qc_blobs "
|
exclude_paths+="3rdparty/qc_blobs "
|
||||||
|
|
||||||
for i in ${exclude_paths}; do
|
for i in ${exclude_paths}; do
|
||||||
blobs_paths+="coreboot-${VERSION_NAME}/${i} "
|
blobs_paths+="coreboot-${VERSION_NAME}/${i} "
|
||||||
exclude_opts+="--exclude=coreboot-${VERSION_NAME}/${i} "
|
exclude_opts+="--exclude=coreboot-${VERSION_NAME}/${i} "
|
||||||
|
|
Loading…
Reference in New Issue