Naveen Iyer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/82006?usp=email )
Change subject: Makefile.mk: Associate reproducible build to commit ID ......................................................................
Makefile.mk: Associate reproducible build to commit ID
There is a need for reproducible builds that are tied to specific commit IDs. This helps in identifying the commit ID a specific binary was built from. Bring able to associate a binary to a specific commit ID is useful for debugging as well as to keep track of features that went into a given binary.
Change-Id: I97b0c4ea654df23844f31a3398b6f0d05dfec1ab Signed-off-by: Naveen R. Iyer iyernaveenr@gmail.com --- M Makefile.mk 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/82006/1
diff --git a/Makefile.mk b/Makefile.mk index e642ac7..d7a8f54 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -21,6 +21,8 @@ ifeq ($(KERNELVERSION),) ifeq ($(BUILD_TIMELESS),1) KERNELVERSION := -TIMELESS--LESSTIME- +else ifeq ($(BUILD_TIMELESS_WITH_GITREV),1) +KERNELVERSION := $(shell test -z "$(git status --porcelain)" && git log --no-abbrev-commit -1 --format="format:%H" || $(error "You cannot use BUILD_TIMELESS_WITH_GITREV with local changes!")) else KERNELVERSION := $(strip $(if $(GIT),\ $(shell git describe --abbrev=12 --dirty --always || git describe),\