x86/EFI: don't insert timestamp when SOURCE_DATE_EPOCH is defined
authorMaximilian Engelhardt <maxi@daemonizer.de>
Tue, 22 Dec 2020 07:59:14 +0000 (08:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Dec 2020 07:59:14 +0000 (08:59 +0100)
commitee41b5c450032ae7f2531e18cd0a73bf5fb48803
tree586821f67ceb576d410a8f9ec25e3f482045374c
parent1a050d69faffe42fd22dbe9c9c49e2228919148f
x86/EFI: don't insert timestamp when SOURCE_DATE_EPOCH is defined

By default a timestamp gets added to the xen efi binary. Unfortunately
ld doesn't seem to provide a way to set a custom date, like from
SOURCE_DATE_EPOCH, so set a zero value for the timestamp (option
--no-insert-timestamp) if SOURCE_DATE_EPOCH is defined. This makes
reproducible builds possible.

This is an alternative to the patch suggested in [1]. This patch only
omits the timestamp when SOURCE_DATE_EPOCH is defined.

[1] https://lists.xenproject.org/archives/html/xen-devel/2020-10/msg02161.html

Signed-off-by: Maximilian Engelhardt <maxi@daemonizer.de>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Makefile