From 5ce73e9836761cb9c674fca07fe45fcfb7e20b64 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 10 Jan 2019 14:07:56 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/30804 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes Reviewed-by: Stefan Reinauer --- util/crossgcc/buildgcc | 4 ++-- 1 file 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 -- cgit v1.2.3