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@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@621 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Myles Watson 2008-02-25 22:56:08 +00:00
parent e20ec3e33b
commit ac1f548d16
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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".