Wonkyu Kim has uploaded this change for review.

View Change

util/crossgcc: use fixed length version string

After merging util/crossgcc: derive date and version from latest commit
(https://review.coreboot.org/c/coreboot/+/30804),
crossgcc build is broken in internal repository due to long version
name;coreboot.org repository is ok because it use short tag name.
The patch use "git discribe" which is dependent on git tag name.
If tag name is little bit long, it can cause crossgcc build failed.

To avoid this issue, use only short version of hash string.
It has fixed lenght and it's enough as version as we use date together.

Change-Id: I405b2e4e5c05831c25aebf1c73a281adab8ef452
Signed-off-by: Wonkyu Kim <wonkyu.kim@intel.com>
---
M util/crossgcc/buildgcc
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/31001/1
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 211494d..4b5a718 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -31,7 +31,7 @@
cd "$(dirname "$0")" || exit 1

CROSSGCC_DATE="$(git log -n 1 --pretty=%ad --date=short .)"
-CROSSGCC_VERSION="$(git describe $(git log -n 1 --pretty=%h .))"
+CROSSGCC_VERSION="$(git log -n 1 --pretty=%h .)"
CROSSGCC_COMMIT=$( git describe )

# default settings

To view, visit change 31001. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I405b2e4e5c05831c25aebf1c73a281adab8ef452
Gerrit-Change-Number: 31001
Gerrit-PatchSet: 1
Gerrit-Owner: Wonkyu Kim <wonkyu.kim@intel.com>
Gerrit-MessageType: newchange