[coreboot] r621 - in coreboot-v3: . arch/x86
svn at coreboot.org
svn at coreboot.org
Mon Feb 25 23:56:08 CET 2008
Author: myles
Date: 2008-02-25 23:56:08 +0100 (Mon, 25 Feb 2008)
New Revision: 621
Modified:
coreboot-v3/Kconfig
coreboot-v3/arch/x86/Makefile
Log:
This patch adds a config option for zero-filling coreboot.rom after
adding a payload. It depends on having a payload so that you can't
end up with a file with no payload and no possiblility to add one.
The default is no zero-filling.
I also added a message "ZEROING lar -z ./coreboot.rom"
Myles
Signed-off-by: Myles Watson <mylesgw at gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Modified: coreboot-v3/Kconfig
===================================================================
--- coreboot-v3/Kconfig 2008-02-25 18:32:23 UTC (rev 620)
+++ coreboot-v3/Kconfig 2008-02-25 22:56:08 UTC (rev 621)
@@ -148,5 +148,13 @@
payload in, coreboot can not parse it. We hope to remove ELF
entirely in the future.
+config ZERO_AFTER_PAYLOAD
+ bool "Zero fill lar after adding the payload"
+ depends PAYLOAD_ELF
+ default n
+ help
+ This option speeds booting but makes it so that no further files may
+ be added to the lar.
+
endmenu
Modified: coreboot-v3/arch/x86/Makefile
===================================================================
--- coreboot-v3/arch/x86/Makefile 2008-02-25 18:32:23 UTC (rev 620)
+++ coreboot-v3/arch/x86/Makefile 2008-02-25 22:56:08 UTC (rev 621)
@@ -87,6 +87,10 @@
../util/lar/lar $(PARSEELF) $(COMPRESSFLAG) -a \
../coreboot.rom normal/payload;
endif
+ifeq ($(CONFIG_ZERO_AFTER_PAYLOAD),y)
+ $(Q)printf " ZEROING lar -z ./coreboot.rom\n"
+ $(Q)cd $(obj) && ./util/lar/lar -z ./coreboot.rom
+endif
$(Q)# QEMU wants bios.bin:
$(Q)# Run "qemu -L build/ -serial stdio -hda /dev/zero".
$(Q)printf " CP $(subst $(shell pwd)/,,$(obj)/bios.bin)\n"
More information about the coreboot
mailing list