blob: 552f06a5238a25ce5860c963f28508c5c55b9eaf [file] [log] [blame]
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -07001if PAYLOAD_GRUB2
2
3choice
4 prompt "GRUB2 version"
Jonathan Neuschäferb077b912017-11-20 05:03:34 +01005 default GRUB2_STABLE
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -07006
Jonathan Neuschäfer2eb95f32017-11-20 01:56:41 +01007config GRUB2_STABLE
Paul Menzel35553892019-07-06 09:53:01 +02008 bool "2.04"
Jonathan Neuschäfer2eb95f32017-11-20 01:56:41 +01009 help
10 Stable GRUB2 version
11
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070012config GRUB2_MASTER
13 bool "HEAD"
14 help
15 Newest GRUB2 version
16
Denis 'GNUtoo' Carikli08cf1952016-09-14 14:41:36 +020017config GRUB2_REVISION
18 bool "git revision"
19 help
20 Select this option if you have a specific commit or branch
21 that you want to use as the revision from which to
22 build GRUB2.
23
24 You will be able to specify the name of a branch or a commit id
25 later.
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070026endchoice
27
Denis 'GNUtoo' Carikli08cf1952016-09-14 14:41:36 +020028config GRUB2_REVISION_ID
29 string "Insert a commit's SHA-1 or a branch name"
30 depends on GRUB2_REVISION
31 default "origin/master"
32 help
33 The commit's SHA-1 or branch name of the revision to use.
34
Vladimir Serbinenko2e811712016-02-17 18:21:24 +010035config GRUB2_EXTRA_MODULES
36 string "Extra modules to include in GRUB image"
37 help
38 Space-separated list of additional modules to include. Few common
39 ones:
40 * bsd for *BSD
41 * png/jpg for PNG/JPG images
42 * gfxmenu for graphical menus (you'll need a theme as well)
43 * gfxterm_background for setting background
44
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070045config PAYLOAD_FILE
46 default "payloads/external/GRUB2/grub2/build/default_payload.elf"
47
Denis 'GNUtoo' Carikli8fb72c92017-01-08 06:43:01 +010048config GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
49 bool "Include GRUB2 runtime config file into ROM image"
50 depends on PAYLOAD_GRUB2
51 default n
52 help
53 The GRUB2 payload reads its runtime configuration file from etc/grub.cfg
54 stored in the CBFS on the flash ROM chip. Without that, itll just drop
55 into a rescue shell.
56
57 This configuration may need to be coreboot specific.
58
59 Select this option, if you want to include the GRUB2 runtime
60 configuration file into CBFS as `etc/grub.cfg` automatically.
61
62 You will be able to specify the path of the configuration file later.
63
64 Without this option you would need to add this file manually with
65 build/cbfstool build/coreboot.rom add -f grub.cfg -n etc/grub.cfg -t raw
66
67config GRUB2_RUNTIME_CONFIG_FILE
68 string "Path of grub.cfg"
69 depends on GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
70 default "grub.cfg"
71 help
72 The path of the GRUB2 runtime configuration file to be added to CBFS.
73
Stefan Reinauer1a8b7bf2015-06-30 15:58:56 -070074endif