diff options
-rw-r--r-- | Makefile.inc | 2 | ||||
-rwxr-xr-x | util/genbuild_h/genbuild_h.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.inc b/Makefile.inc index 0d38ea37d6..094387faf4 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -23,7 +23,7 @@ ifeq ($(BUILD_TIMELESS),1) KERNELVERSION := -TIMELESS--LESSTIME- else KERNELVERSION := $(strip $(if $(GIT),\ - $(shell git describe --dirty --always || git describe),\ + $(shell git describe --abbrev=12 --dirty --always || git describe),\ $(if $(wildcard $(top)/.coreboot-version),\ $(shell cat $(top)/.coreboot-version),\ coreboot-unknown$(KERNELREVISION)))) diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index b4878c6407..5e2fe7df8f 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -23,8 +23,8 @@ fi # $1: format string get_git_head_data() { - LANG="" git log --no-show-signature -1 --format="format:$1" 2>/dev/null || \ - LANG="" git log -1 --format="format:$1" + LANG="" git log --no-show-signature --abbrev=12 -1 --format="format:$1" 2>/dev/null || \ + LANG="" git log --abbrev=12 -1 --format="format:$1" } if [ "${BUILD_TIMELESS}" = "1" ]; then |