0003-Makefile-use-FIXED_TIMESTAMP-for-mkstandalone-if-set.patch 2.0 KB

12345678910111213141516171819202122232425262728293031
  1. From 57174ed960905be4f9c229bbf3913b25745dbfd9 Mon Sep 17 00:00:00 2001
  2. From: Alexander Couzens <lynxis@fe80.eu>
  3. Date: Fri, 4 Dec 2015 17:10:44 +0100
  4. Subject: [PATCH 10/10] Makefile: use FIXED_TIMESTAMP for mkstandalone if set
  5. mkstandalone sets timestamps for files which can be overriden by a fixed_timestamp.
  6. This makes it possible to build reproducible builds for coreboot.
  7. To build a reproducible build of grub for coreboot do:
  8. make default_payload.elf FIXED_TIMESTAMP=1134242
  9. ---
  10. Makefile.am | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/Makefile.am b/Makefile.am
  13. index 00a9663..ed7f148 100644
  14. --- a/Makefile.am
  15. +++ b/Makefile.am
  16. @@ -411,7 +411,7 @@ bootcheck: $(BOOTCHECKS)
  17. if COND_i386_coreboot
  18. default_payload.elf: grub-mkstandalone grub-mkimage FORCE
  19. test -f $@ && rm $@ || true
  20. - pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg
  21. + pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg $(if $(FIXED_TIMESTAMP),-t $(FIXED_TIMESTAMP))
  22. endif
  23. endif
  24. --
  25. 1.9.1