SeaBIOS: have coreboot pass the choice to run optionroms in parallel

Introduce the tunable CONFIG_SEABIOS_THREAD_OPTIONROMS.

Change-Id: Ifd4d9fca7316eb739ff184e54bdc1cdb0262f0c6
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-on: http://review.coreboot.org/5443
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Idwer Vollering 2014-04-01 22:47:33 +00:00
parent 011341d126
commit 7c1a49bcc0
3 changed files with 16 additions and 0 deletions

View File

@ -21,12 +21,16 @@ config: checkout
echo " CONFIG SeaBIOS $(TAG-y)" echo " CONFIG SeaBIOS $(TAG-y)"
$(MAKE) -C $(OUT)/seabios defconfig OUT=$(OUT)/seabios/out/ $(MAKE) -C $(OUT)/seabios defconfig OUT=$(OUT)/seabios/out/
echo "CONFIG_COREBOOT=y" >> $(OUT)/seabios/.config echo "CONFIG_COREBOOT=y" >> $(OUT)/seabios/.config
ifeq ($(CONFIG_SEABIOS_THREAD_OPTIONROMS),y)
echo "CONFIG_THREAD_OPTIONROMS=y" >> $(OUT)/seabios/.config
endif
echo "CONFIG_DEBUG_SERIAL=y" >> $(OUT)/seabios/.config echo "CONFIG_DEBUG_SERIAL=y" >> $(OUT)/seabios/.config
echo "CONFIG_DEBUG_SERIAL_PORT=0x3f8" >> $(OUT)/seabios/.config echo "CONFIG_DEBUG_SERIAL_PORT=0x3f8" >> $(OUT)/seabios/.config
echo "CONFIG_COREBOOT_FLASH=y" >> $(OUT)/seabios/.config echo "CONFIG_COREBOOT_FLASH=y" >> $(OUT)/seabios/.config
echo "CONFIG_LZMA=y" >> $(OUT)/seabios/.config echo "CONFIG_LZMA=y" >> $(OUT)/seabios/.config
echo "CONFIG_FLASH_FLOPPY=y" >> $(OUT)/seabios/.config echo "CONFIG_FLASH_FLOPPY=y" >> $(OUT)/seabios/.config
echo "CONFIG_VGAHOOKS=y" >> $(OUT)/seabios/.config echo "CONFIG_VGAHOOKS=y" >> $(OUT)/seabios/.config
echo "CONFIG_DEBUG_COREBOOT=y" >> $(OUT)/seabios/.config
# This shows how to force a previously set .config option *off* # This shows how to force a previously set .config option *off*
#echo "# CONFIG_SMBIOS is not set" >> $(OUT)/seabios/.config #echo "# CONFIG_SMBIOS is not set" >> $(OUT)/seabios/.config

View File

@ -624,6 +624,17 @@ config SEABIOS_PS2_TIMEOUT
after powering on. This specifies how long SeaBIOS will wait for the after powering on. This specifies how long SeaBIOS will wait for the
keyboard controller to become ready before giving up. keyboard controller to become ready before giving up.
config SEABIOS_THREAD_OPTIONROMS
prompt "Hardware init during option ROM execution" if PAYLOAD_SEABIOS
default n
bool
help
Allow hardware init to run in parallel with optionrom execution.
This can reduce boot time, but can cause some timing
variations during option ROM code execution. It is not
known if all option ROMs will behave properly with this option.
choice choice
prompt "GRUB2 version" prompt "GRUB2 version"
default GRUB2_MASTER default GRUB2_MASTER

View File

@ -468,6 +468,7 @@ seabios:
AS="$(AS)" CPP="$(CPP)" \ AS="$(AS)" CPP="$(CPP)" \
CONFIG_SEABIOS_MASTER=$(CONFIG_SEABIOS_MASTER) \ CONFIG_SEABIOS_MASTER=$(CONFIG_SEABIOS_MASTER) \
CONFIG_SEABIOS_STABLE=$(CONFIG_SEABIOS_STABLE) \ CONFIG_SEABIOS_STABLE=$(CONFIG_SEABIOS_STABLE) \
CONFIG_SEABIOS_THREAD_OPTIONROMS=$(CONFIG_SEABIOS_THREAD_OPTIONROMS) \
OUT=$(abspath $(obj)) IASL="$(IASL)" OUT=$(abspath $(obj)) IASL="$(IASL)"
filo: filo: