From 0abef79a29e59b0d328b0db9fb16531f7d6653f6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 21 Jan 2026 23:19:36 +0000 Subject: [PATCH] [build] Do not use "git log" to construct build timestamp Using "git log" to automatically construct the build timestamp is of minimal value. Reproducible builds should be using SOURCE_DATE_EPOCH anyway, and for ad hoc builds it is arguable that the time at which the build was performed is more relevant than the commit timestamp. (For example, the user may be trying to deliberately use an older version of iPXE in order to track down a regression via bisection.) Remove the use of "git log", and thereby remove any requirement for the git tools to be available at the point of building iPXE. Signed-off-by: Michael Brown --- src/Makefile.housekeeping | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 3b6eb03ba..6cc626b6d 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -1230,8 +1230,6 @@ BUILD_ID_CMD = cat $^ | cksum | awk '{print $$1}' # ifdef SOURCE_DATE_EPOCH BUILD_TIMESTAMP := $(SOURCE_DATE_EPOCH) -else ifdef GITVERSION -BUILD_TIMESTAMP := $(shell git log -1 --pretty=%ct) else BUILD_TIMESTAMP := $(shell date +%s) endif