diff options
author | Nico Huber <nico.h@gmx.de> | 2023-07-16 00:59:55 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-07-18 14:57:11 +0000 |
commit | f9aec6e2984878d779369fa5bb64c0404e81d4de (patch) | |
tree | eb34dbfe5fe8775682a8af3317406ca4ba79e0f1 /Makefile.inc | |
parent | ac02857b975fdccc84709231088a098baf716c84 (diff) |
Makefile,genbuild: Provide length for abbreviated commit hashes
The original default, minimum abbreviated hash length was 7. It dif-
fers on newer systems, however. This breaks reproducibility, so set
an explicit length. 12 hex digits should be good enough.
Note: This sets only a minimum. With a high enough number of commit
objects in the repository, Git could still decide to use a longer
hash, again breaking reproducibility. 12 digits will hopefully pro-
vide enough margin.
Change-Id: Ia86e9cc41e27a0a57d498dcb13aec954c4ea0f04
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76560
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 2 |
1 files changed, 1 insertions, 1 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)))) |