Debian Codegraph @

payloads/external/GRUB2/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config PAYLOAD_BUILD_GRUB2
4 bool
5
6 if PAYLOAD_GRUB2
7
8 config PAYLOAD_FILE
9 default "payloads/external/GRUB2/grub2/build/default_payload.elf"
10
11 endif
12
13 if PAYLOAD_BUILD_GRUB2
14
15 choice
16 prompt "GRUB2 version"
17 default GRUB2_STABLE
18
19 config GRUB2_STABLE
20 bool "2.12"
21 help
22 Stable GRUB2 version
23
24 config GRUB2_MASTER
25 bool "HEAD"
26 help
27 Newest GRUB2 version
28
29 config GRUB2_REVISION
30 bool "git revision"
31 help
32 Select this option if you have a specific commit or branch
33 that you want to use as the revision from which to
34 build GRUB2.
35
36 You will be able to specify the name of a branch or a commit id
37 later.
38 endchoice
39
40 config GRUB2_REVISION_ID
41 string "Insert a commit's SHA-1 or a branch name"
42 depends on GRUB2_REVISION
43 default "origin/master"
44 help
45 The commit's SHA-1 or branch name of the revision to use.
46
47 config GRUB2_EXTRA_MODULES
48 string "Extra modules to include in GRUB image"
49 help
50 Space-separated list of additional modules to include. Few common
51 ones:
52 * bsd for *BSD
53 * png/jpg for PNG/JPG images
54 * gfxmenu for graphical menus (you'll need a theme as well)
55 * gfxterm_background for setting background
56
57 config GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
58 bool "Include GRUB2 runtime config file into ROM image"
59 depends on PAYLOAD_BUILD_GRUB2
60 default n
61 help
62 The GRUB2 payload reads its runtime configuration file from etc/grub.cfg
63 stored in the CBFS on the flash ROM chip. Without that, it’ll just drop
64 into a rescue shell.
65
66 This configuration may need to be coreboot specific.
67
68 Select this option, if you want to include the GRUB2 runtime
69 configuration file into CBFS as `etc/grub.cfg` automatically.
70
71 You will be able to specify the path of the configuration file later.
72
73 Without this option you would need to add this file manually with
74 build/cbfstool build/coreboot.rom add -f grub.cfg -n etc/grub.cfg -t raw
75
76 config GRUB2_RUNTIME_CONFIG_FILE
77 string "Path of grub.cfg"
78 depends on GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
79 default "grub.cfg"
80 help
81 The path of the GRUB2 runtime configuration file to be added to CBFS.
82
83 endif
84
85 if PAYLOAD_SEAGRUB
86
87 config PAYLOAD_FILE
88 default "payloads/external/SeaBIOS/seabios/out/bios.bin.elf"
89
90 config SEABIOS_BOOTORDER_FILE
91 default "payloads/external/GRUB2/bootorder-seagrub"
92
93 config SEAGRUB_ALLOW_SEABIOS_BOOTMENU
94 bool "Allow to access SeaBIOS boot menu before launching GRUB"
95 help
96 Enable this to allow the access to the boot menu of SeaBIOS. It
97 increases the flexibility but allows to entirely bypass GRUB, along
98 with all secure mechanism implemented in its runtime config.
99 Please use this with caution.
100
101 endif