Alexander Couzens has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35393 )
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
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 --- M payloads/external/LinuxBoot/targets/linux.mk 1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/35393/1
diff --git a/payloads/external/LinuxBoot/targets/linux.mk b/payloads/external/LinuxBoot/targets/linux.mk index 8be0926..c676f68 100644 --- a/payloads/external/LinuxBoot/targets/linux.mk +++ b/payloads/external/LinuxBoot/targets/linux.mk @@ -30,7 +30,11 @@
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)
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35393
to look at the new patch set (#2).
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
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 --- M payloads/external/LinuxBoot/targets/linux.mk 1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/35393/2
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35393
to look at the new patch set (#3).
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
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 --- M payloads/external/LinuxBoot/targets/linux.mk 1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/35393/3
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35393
to look at the new patch set (#4).
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
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 --- M payloads/external/LinuxBoot/targets/linux.mk 1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/35393/4
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35393 )
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35393/4/payloads/external/LinuxBoot... File payloads/external/LinuxBoot/targets/linux.mk:
https://review.coreboot.org/c/coreboot/+/35393/4/payloads/external/LinuxBoot... PS4, Line 36: SOURCE_DATE_EPOCH who sets this?
Attention is currently required from: Stefan Reinauer, Christian Walter. Alexander Couzens has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35393 )
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
Patch Set 5:
(1 comment)
File payloads/external/LinuxBoot/targets/linux.mk:
https://review.coreboot.org/c/coreboot/+/35393/comment/25b357e9_907ceb2b PS4, Line 36: SOURCE_DATE_EPOCH
who sets this?
I'm setting it now in a previous commit in the change.
Attention is currently required from: Stefan Reinauer, Christian Walter, Alexander Couzens. Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35393 )
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
Patch Set 8: Code-Review+2
(1 comment)
Patchset:
PS8: needs the SOURCE_DATE_EPOCH thing solved, but otherwise LGTM
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/35393 )
Change subject: payloads/LinuxBoot: make linux kernel build reproducible ......................................................................
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 --- M payloads/external/LinuxBoot/targets/linux.mk 1 file changed, 5 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Patrick Georgi: Looks good to me, approved
diff --git a/payloads/external/LinuxBoot/targets/linux.mk b/payloads/external/LinuxBoot/targets/linux.mk index 9906729..c6f4395 100644 --- a/payloads/external/LinuxBoot/targets/linux.mk +++ b/payloads/external/LinuxBoot/targets/linux.mk @@ -18,7 +18,11 @@
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)