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)
committerHans van Kranenburg <hans@knorrie.org>
Wed, 13 Jul 2022 14:28:39 +0000 (15:28 +0100)
commit4fc5de4723d386ac6888c9b7c500affb743cafd6
tree496b16a7e7d1e3f354c716fde2d321d932ac294d
parentdc4a8aa82d509fcf8c4d76dccc16605110ed86fa
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>
(cherry picked from commit ee41b5c450032ae7f2531e18cd0a73bf5fb48803)

Gbp-Pq: Name 0038-x86-EFI-don-t-insert-timestamp-when-SOURCE_DATE_EPOC.patch
xen/arch/x86/Makefile