diff --git a/INSTALL b/INSTALL index 1ed44bb8a3..bf412ef35e 100644 --- a/INSTALL +++ b/INSTALL @@ -216,6 +216,7 @@ into the binaries. To allow reproducible builds the following variables can be used to provide fixed timestamps in the expected format. XEN_BUILD_DATE= XEN_BUILD_TIME=hh:mm:ss +SMBIOS_REL_DATE=mm/dd/yyyy The following variables can be used to tweak some aspects of the hypervisor build. diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile index cf967fdac4..34008d2a13 100644 --- a/tools/firmware/hvmloader/Makefile +++ b/tools/firmware/hvmloader/Makefile @@ -26,6 +26,9 @@ SUBDIRS := acpi # The HVM loader is started in 32-bit mode at the address below: LOADADDR = 0x100000 +# SMBIOS spec requires format mm/dd/yyyy +SMBIOS_REL_DATE ?= $(shell date +%m/%d/%Y) + CFLAGS += $(CFLAGS_xeninclude) OBJS = hvmloader.o mp_tables.o util.o smbios.o @@ -88,7 +91,7 @@ all: subdirs-all $(MAKE) hvmloader ovmf.o rombios.o seabios.o hvmloader.o: roms.inc -smbios.o: CFLAGS += -D__SMBIOS_DATE__="\"$(shell date +%m/%d/%Y)\"" +smbios.o: CFLAGS += -D__SMBIOS_DATE__="$(SMBIOS_REL_DATE)" hvmloader: $(OBJS) acpi/acpi.a $(LD) $(LDFLAGS_DIRECT) -N -Ttext $(LOADADDR) -o hvmloader.tmp $^