diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-09-13 04:19:13 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-09 06:09:59 +0000 |
commit | 605c6da4e469fd779144d9ba9d267a2a0d4a76f1 (patch) | |
tree | cc6a76f7dda8678ad2c0b4ee45e019a9816ecdf5 /payloads | |
parent | cbe2ed48e2d25878bcbd11d37af19fd7a0e6b982 (diff) |
payloads/LinuxBoot: make linux kernel build reproducible
Reproducible builds have to be independent from user, host,
domain, time.
Taken from OpenWrt (GPL2).
Change-Id: I420588acc66647051c08e4da6fbedc205cd62877
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35393
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/external/LinuxBoot/targets/linux.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/payloads/external/LinuxBoot/targets/linux.mk b/payloads/external/LinuxBoot/targets/linux.mk index 990672936d..c6f43950de 100644 --- a/payloads/external/LinuxBoot/targets/linux.mk +++ b/payloads/external/LinuxBoot/targets/linux.mk @@ -18,7 +18,11 @@ decompress_flag=.done OBJCOPY:=$(LINUXBOOT_CROSS_COMPILE)objcopy KERNEL_MAKE_FLAGS = \ - ARCH=$(ARCH-y) + ARCH=$(ARCH-y) \ + KBUILD_BUILD_USER="coreboot" \ + KBUILD_BUILD_HOST="reproducible" \ + KBUILD_BUILD_TIMESTAMP="$(shell perl -e 'print scalar gmtime($(SOURCE_DATE_EPOCH))')" \ + KBUILD_BUILD_VERSION="0" ifeq ($(CONFIG_LINUXBOOT_KERNEL_CUSTOM),y) kernel_version:=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION) |