Kconfig: Make the SEPARATE_ROMSTAGE default configurable in other files

This also sets a good default in arch and vboot to have a separate
romstage when it makes sense.

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I09ab5f8c79917bf93c9d5c9dfd157c652478b186
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80580
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans
2024-02-18 14:02:35 +01:00
committed by Matt DeVillier
parent 9f0443c264
commit 9bbfafbef8
3 changed files with 6 additions and 3 deletions

View File

@@ -245,7 +245,6 @@ config COMPRESS_BOOTBLOCK
config SEPARATE_ROMSTAGE
bool "Build a separate romstage"
default y
help
Build a separate romstage that is loaded by bootblock. With this
option disabled the romstage sources are linked inside the bootblock
@@ -1538,3 +1537,6 @@ config HAVE_RAMSTAGE
bool
default n if RAMPAYLOAD
default y
config SEPARATE_ROMSTAGE
default y

View File

@@ -251,8 +251,9 @@ config BOOTBLOCK_SIMPLE
bool "Always load fallback"
config BOOTBLOCK_NORMAL
select CONFIGURABLE_CBFS_PREFIX
bool "Switch to normal if CMOS says so"
select CONFIGURABLE_CBFS_PREFIX
select SEPARATE_ROMSTAGE
endchoice

View File

@@ -90,7 +90,7 @@ config VBOOT_STARTS_BEFORE_BOOTBLOCK
config VBOOT_STARTS_IN_BOOTBLOCK
bool
default n
depends on SEPARATE_ROMSTAGE
select SEPARATE_ROMSTAGE
help
Firmware verification happens during the end of or right after the
bootblock. This implies that a static VBOOT2_WORK() buffer must be