2016-11-21 18:05:46 +01:00
|
|
|
From: Bruce Rogers <brogers@suse.com>
|
|
|
|
Date: Sat, 19 Nov 2016 08:06:30 -0700
|
2019-01-04 22:08:16 +01:00
|
|
|
Subject: roms/Makefile: pass a packaging timestamp to subpackages with date
|
|
|
|
info
|
2016-11-21 18:05:46 +01:00
|
|
|
|
|
|
|
Certain rom subpackages build from qemu git-submodules call the date
|
|
|
|
program to include date information in the packaged binaries. This
|
|
|
|
causes repeated builds of the package to be different, wkere the only
|
|
|
|
real difference is due to the fact that time build timestamp has
|
|
|
|
changed. To promote reproducible builds and avoid customers being
|
|
|
|
prompted to update packages needlessly, we'll use the timestamp of the
|
|
|
|
VERSION file as the packaging timestamp for all packages that build in a
|
|
|
|
timestamp for whatever reason.
|
|
|
|
|
|
|
|
[BR: BSC#1011213]
|
|
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
|
|
---
|
|
|
|
roms/Makefile | 14 ++++++++++++--
|
|
|
|
1 file changed, 12 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/roms/Makefile b/roms/Makefile
|
2019-05-02 00:51:10 +02:00
|
|
|
index 1ff78b63bb..b4a3adccb2 100644
|
2016-11-21 18:05:46 +01:00
|
|
|
--- a/roms/Makefile
|
|
|
|
+++ b/roms/Makefile
|
2019-05-02 00:51:10 +02:00
|
|
|
@@ -49,6 +49,12 @@ SEABIOS_EXTRAVERSION="-prebuilt.qemu.org"
|
2016-11-21 18:05:46 +01:00
|
|
|
#
|
2019-05-02 00:51:10 +02:00
|
|
|
EDK2_EFIROM = edk2/BaseTools/Source/C/bin/EfiRom
|
2016-11-21 18:05:46 +01:00
|
|
|
|
|
|
|
+# NB: Certain SUSE qemu subpackages use date information, but we want
|
|
|
|
+# reproducible builds, so we use a pre-determined timestamp, rather
|
|
|
|
+# than the current timestamp to acheive consistent results build to
|
|
|
|
+# build.
|
|
|
|
+PACKAGING_TIMESTAMP = $(shell date -r ../VERSION +%s)
|
|
|
|
+
|
|
|
|
default:
|
|
|
|
@echo "nothing is build by default"
|
|
|
|
@echo "available build targets:"
|
2019-05-02 00:51:10 +02:00
|
|
|
@@ -91,7 +97,7 @@ build-seabios-config-%: config.%
|
2016-11-21 18:05:46 +01:00
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
.PHONY: sgabios skiboot
|
2016-11-21 18:05:46 +01:00
|
|
|
sgabios:
|
|
|
|
- $(MAKE) -C sgabios
|
|
|
|
+ $(MAKE) -C sgabios PACKAGING_TIMESTAMP=$(PACKAGING_TIMESTAMP)
|
|
|
|
cp sgabios/sgabios.bin ../pc-bios
|
|
|
|
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
@@ -111,11 +117,13 @@ efi-rom-%: build-pxe-roms build-efi-roms $(EDK2_EFIROM)
|
2016-11-21 18:05:46 +01:00
|
|
|
|
|
|
|
build-pxe-roms:
|
|
|
|
$(MAKE) -C ipxe/src CONFIG=qemu \
|
|
|
|
+ PACKAGING_TIMESTAMP=$(PACKAGING_TIMESTAMP) \
|
|
|
|
CROSS_COMPILE=$(x86_64_cross_prefix) \
|
|
|
|
$(patsubst %,bin/%.rom,$(pxerom_targets))
|
|
|
|
|
|
|
|
build-efi-roms: build-pxe-roms
|
|
|
|
$(MAKE) -C ipxe/src CONFIG=qemu \
|
|
|
|
+ PACKAGING_TIMESTAMP=$(PACKAGING_TIMESTAMP) \
|
|
|
|
CROSS_COMPILE=$(x86_64_cross_prefix) \
|
|
|
|
$(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \
|
|
|
|
$(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets))
|
2019-05-02 00:51:10 +02:00
|
|
|
@@ -137,7 +145,9 @@ $(EDK2_EFIROM):
|
|
|
|
EXTRA_LDFLAGS='$(EDK2_BASETOOLS_LDFLAGS)'
|
2016-11-21 18:05:46 +01:00
|
|
|
|
|
|
|
slof:
|
|
|
|
- $(MAKE) -C SLOF CROSS=$(powerpc64_cross_prefix) qemu
|
|
|
|
+ $(MAKE) -C SLOF CROSS=$(powerpc64_cross_prefix) \
|
|
|
|
+ PACKAGING_TIMESTAMP=$(PACKAGING_TIMESTAMP) \
|
|
|
|
+ qemu
|
|
|
|
cp SLOF/boot_rom.bin ../pc-bios/slof.bin
|
|
|
|
|
|
|
|
u-boot.e500:
|