summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-01-10 14:07:56 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-01-11 14:55:39 +0000
commit5ce73e9836761cb9c674fca07fe45fcfb7e20b64 (patch)
tree00eeb427b9ac78b19014af4f62e7513f1bf493ca /util
parente0368b434e63fc687f0f6b6709e41159bbc2e877 (diff)
util/crossgcc: derive date and version from latest commit
This way date and version are automatically updated when util/crossgcc was changed, the version contains the commit ID and we have less churn on these variables. Change-Id: I475ba9578a8bb421d7c342d2569d7de7fcf4161d Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/30804 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/crossgcc/buildgcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 3828d12718..211494d419 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -30,8 +30,8 @@
cd "$(dirname "$0")" || exit 1
-CROSSGCC_DATE="January 9th, 2019"
-CROSSGCC_VERSION="1.56"
+CROSSGCC_DATE="$(git log -n 1 --pretty=%ad --date=short .)"
+CROSSGCC_VERSION="$(git describe $(git log -n 1 --pretty=%h .))"
CROSSGCC_COMMIT=$( git describe )
# default settings