2022-01-01 04:56:00 +01:00
|
|
|
|
config PAYLOAD_BUILD_GRUB2
|
|
|
|
|
bool
|
|
|
|
|
|
2015-07-01 00:58:56 +02:00
|
|
|
|
if PAYLOAD_GRUB2
|
|
|
|
|
|
2022-01-01 04:56:00 +01:00
|
|
|
|
config PAYLOAD_FILE
|
|
|
|
|
default "payloads/external/GRUB2/grub2/build/default_payload.elf"
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if PAYLOAD_BUILD_GRUB2
|
|
|
|
|
|
2015-07-01 00:58:56 +02:00
|
|
|
|
choice
|
|
|
|
|
prompt "GRUB2 version"
|
2017-11-20 05:03:34 +01:00
|
|
|
|
default GRUB2_STABLE
|
2015-07-01 00:58:56 +02:00
|
|
|
|
|
2017-11-20 01:56:41 +01:00
|
|
|
|
config GRUB2_STABLE
|
2019-07-06 09:53:01 +02:00
|
|
|
|
bool "2.04"
|
2017-11-20 01:56:41 +01:00
|
|
|
|
help
|
|
|
|
|
Stable GRUB2 version
|
|
|
|
|
|
2015-07-01 00:58:56 +02:00
|
|
|
|
config GRUB2_MASTER
|
|
|
|
|
bool "HEAD"
|
|
|
|
|
help
|
|
|
|
|
Newest GRUB2 version
|
|
|
|
|
|
2016-09-14 14:41:36 +02:00
|
|
|
|
config GRUB2_REVISION
|
|
|
|
|
bool "git revision"
|
|
|
|
|
help
|
|
|
|
|
Select this option if you have a specific commit or branch
|
|
|
|
|
that you want to use as the revision from which to
|
|
|
|
|
build GRUB2.
|
|
|
|
|
|
|
|
|
|
You will be able to specify the name of a branch or a commit id
|
|
|
|
|
later.
|
2015-07-01 00:58:56 +02:00
|
|
|
|
endchoice
|
|
|
|
|
|
2016-09-14 14:41:36 +02:00
|
|
|
|
config GRUB2_REVISION_ID
|
|
|
|
|
string "Insert a commit's SHA-1 or a branch name"
|
|
|
|
|
depends on GRUB2_REVISION
|
|
|
|
|
default "origin/master"
|
|
|
|
|
help
|
|
|
|
|
The commit's SHA-1 or branch name of the revision to use.
|
|
|
|
|
|
2016-02-17 18:21:24 +01:00
|
|
|
|
config GRUB2_EXTRA_MODULES
|
|
|
|
|
string "Extra modules to include in GRUB image"
|
|
|
|
|
help
|
|
|
|
|
Space-separated list of additional modules to include. Few common
|
|
|
|
|
ones:
|
|
|
|
|
* bsd for *BSD
|
|
|
|
|
* png/jpg for PNG/JPG images
|
|
|
|
|
* gfxmenu for graphical menus (you'll need a theme as well)
|
|
|
|
|
* gfxterm_background for setting background
|
|
|
|
|
|
2017-01-08 06:43:01 +01:00
|
|
|
|
config GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
|
|
|
|
|
bool "Include GRUB2 runtime config file into ROM image"
|
2022-01-01 04:56:00 +01:00
|
|
|
|
depends on PAYLOAD_BUILD_GRUB2
|
2017-01-08 06:43:01 +01:00
|
|
|
|
default n
|
|
|
|
|
help
|
|
|
|
|
The GRUB2 payload reads its runtime configuration file from etc/grub.cfg
|
|
|
|
|
stored in the CBFS on the flash ROM chip. Without that, it’ll just drop
|
|
|
|
|
into a rescue shell.
|
|
|
|
|
|
|
|
|
|
This configuration may need to be coreboot specific.
|
|
|
|
|
|
|
|
|
|
Select this option, if you want to include the GRUB2 runtime
|
|
|
|
|
configuration file into CBFS as `etc/grub.cfg` automatically.
|
|
|
|
|
|
|
|
|
|
You will be able to specify the path of the configuration file later.
|
|
|
|
|
|
|
|
|
|
Without this option you would need to add this file manually with
|
|
|
|
|
build/cbfstool build/coreboot.rom add -f grub.cfg -n etc/grub.cfg -t raw
|
|
|
|
|
|
|
|
|
|
config GRUB2_RUNTIME_CONFIG_FILE
|
|
|
|
|
string "Path of grub.cfg"
|
|
|
|
|
depends on GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
|
|
|
|
|
default "grub.cfg"
|
|
|
|
|
help
|
|
|
|
|
The path of the GRUB2 runtime configuration file to be added to CBFS.
|
|
|
|
|
|
2015-07-01 00:58:56 +02:00
|
|
|
|
endif
|
2022-01-01 04:56:00 +01:00
|
|
|
|
|
|
|
|
|
if PAYLOAD_SEAGRUB
|
|
|
|
|
|
|
|
|
|
config PAYLOAD_FILE
|
|
|
|
|
default "payloads/external/SeaBIOS/seabios/out/bios.bin.elf"
|
|
|
|
|
|
|
|
|
|
config SEABIOS_BOOTORDER_FILE
|
|
|
|
|
default "payloads/external/GRUB2/bootorder-seagrub"
|
|
|
|
|
|
|
|
|
|
config SEAGRUB_ALLOW_SEABIOS_BOOTMENU
|
|
|
|
|
bool "Allow to access SeaBIOS boot menu before launching GRUB"
|
|
|
|
|
help
|
|
|
|
|
Enable this to allow the access to the boot menu of SeaBIOS. It
|
2022-06-05 14:50:47 +02:00
|
|
|
|
increases the flexibility but allows to entirely bypass GRUB, along
|
|
|
|
|
with all secure mechanism implemented in its runtime config.
|
|
|
|
|
Please use this with caution.
|
2022-01-01 04:56:00 +01:00
|
|
|
|
|
|
|
|
|
endif
|