diff options
author | Bill XIE <persmule@hardenedlinux.org> | 2022-01-01 11:56:00 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-05-24 12:58:52 +0000 |
commit | 3dda4dad1d3add373e2cc7d0c47badecf851eaa2 (patch) | |
tree | bda254df3eed484d088f2e9d3288add18b784ea1 /payloads/external/SeaBIOS | |
parent | 26e0b9461405a26eda786eeffd617253f76692a3 (diff) |
payloads/external: Add more option related to SeaBIOS and GRUB2
Also known as "SeaGRUB", running GRUB2 atop SeaBIOS proves to be a
useful configuration, since SeaBIOS has improved its hardware
compatibility. For example, some USB drive can work under SeaBIOS but
do not work under native GRUB2, and GRUB2 can use BIOS call (provided
by SeaBIOS) as a fallback method to access hardware if it is present.
But more option is added addition to "SeaGRUB": now GRUB2 and SeaBIOS
can be built as secondary payloads, and "SeaGRUB" is now implemented
as "Primary SeaBIOS + Secondary GRUB2 (selected) + config files".
Signed-off-by: Bill XIE <persmule@hardenedlinux.org>
Change-Id: Ie681fa231abfe4a8f1e4510b3c17957550a9d2f8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60640
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@tutanota.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'payloads/external/SeaBIOS')
-rw-r--r-- | payloads/external/SeaBIOS/Kconfig | 13 | ||||
-rw-r--r-- | payloads/external/SeaBIOS/Kconfig.name | 1 |
2 files changed, 11 insertions, 3 deletions
diff --git a/payloads/external/SeaBIOS/Kconfig b/payloads/external/SeaBIOS/Kconfig index d7dd165be8..405ff9db55 100644 --- a/payloads/external/SeaBIOS/Kconfig +++ b/payloads/external/SeaBIOS/Kconfig @@ -1,5 +1,15 @@ +config PAYLOAD_BUILD_SEABIOS + bool + if PAYLOAD_SEABIOS +config PAYLOAD_FILE + default "payloads/external/SeaBIOS/seabios/out/bios.bin.elf" + +endif + +if PAYLOAD_BUILD_SEABIOS + choice prompt "SeaBIOS version" default SEABIOS_STABLE @@ -114,9 +124,6 @@ config SEABIOS_SERCON_PORT_ADDR By default primary console UART defined by TTYS0_BASE is used. -config PAYLOAD_FILE - default "payloads/external/SeaBIOS/seabios/out/bios.bin.elf" - config PAYLOAD_VGABIOS_FILE string depends on SEABIOS_VGA_COREBOOT diff --git a/payloads/external/SeaBIOS/Kconfig.name b/payloads/external/SeaBIOS/Kconfig.name index bb1f30c9bf..623c298279 100644 --- a/payloads/external/SeaBIOS/Kconfig.name +++ b/payloads/external/SeaBIOS/Kconfig.name @@ -1,6 +1,7 @@ config PAYLOAD_SEABIOS bool "SeaBIOS" depends on ARCH_X86 + select PAYLOAD_BUILD_SEABIOS help Select this option if you want to build a coreboot image with a SeaBIOS payload. If you don't know what this is |