util/crossgcc/buildgcc: Remove CROSSGCC_COMMIT

For reproducibility, the buildgcc script is copied to the destination
folder of the toolchain. `CROSSGCC_COMMIT` is used as a file name
extension for the script and was introduced when `CROSSGCC_VERSION`
didn't contain the commit yet. Since this is not the case anymore,
remove it.

Change-Id: Id0a0b657eb828b2728ff787228eaa38be83d9517
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58450
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2021-10-19 13:25:18 +02:00
committed by Felix Held
parent d9ad49c250
commit 62fcffb247

View File

@@ -17,7 +17,6 @@
cd "$(dirname "$0")" || exit 1 cd "$(dirname "$0")" || exit 1
CROSSGCC_VERSION="$(git log -n 1 --pretty=%cd --date=short .)_$(git log -n 1 --pretty=%h .)" CROSSGCC_VERSION="$(git log -n 1 --pretty=%cd --date=short .)_$(git log -n 1 --pretty=%h .)"
CROSSGCC_COMMIT=$( git describe )
# default settings # default settings
PACKAGE=GCC PACKAGE=GCC
@@ -1252,7 +1251,7 @@ printf "Packages built ... ${green}ok${NC}\n"
# for reproducibility # for reproducibility
PROGNAME=$(basename "$0") PROGNAME=$(basename "$0")
rm -f "$DESTDIR$TARGETDIR/share/$PROGNAME-*" rm -f "$DESTDIR$TARGETDIR/share/$PROGNAME-*"
cp "$PROGNAME" "$DESTDIR$TARGETDIR/share/$PROGNAME-$CROSSGCC_VERSION-$CROSSGCC_COMMIT" cp "$PROGNAME" "$DESTDIR$TARGETDIR/share/$PROGNAME-$CROSSGCC_VERSION"
# Adding edk2 tools template # Adding edk2 tools template
mkdir -p "$DESTDIR$TARGETDIR/share/edk2config" mkdir -p "$DESTDIR$TARGETDIR/share/edk2config"