From ac1f548d16c01807a8e69e0f0e40fea5cccdd1cc Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Mon, 25 Feb 2008 22:56:08 +0000 Subject: [PATCH] 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 Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://coreboot.org/repository/coreboot-v3@621 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- Kconfig | 8 ++++++++ arch/x86/Makefile | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/Kconfig b/Kconfig index 295c30a0c0..c889de8670 100644 --- a/Kconfig +++ b/Kconfig @@ -148,5 +148,13 @@ config PAYLOAD_PREPARSE_ELF 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 diff --git a/arch/x86/Makefile b/arch/x86/Makefile index f95d465674..31a6222b93 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -86,6 +86,10 @@ else $(Q)cd $(obj)/lar.tmp && \ ../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".