blob: 2a2773a2188fe755a99fd9dcc06eec0763d1cc69 [file] [log] [blame]
Martin Roth21c06502016-02-04 19:52:27 -07001menu "Payload"
2
Martin Roth21c06502016-02-04 19:52:27 -07003config PAYLOAD_NONE
Martin Rothffc79fb2022-10-20 13:54:54 -06004 bool "Don't add a payload"
5 default y if !ARCH_X86
Martin Roth21c06502016-02-04 19:52:27 -07006 help
7 Select this option if you want to create an "empty" coreboot
8 ROM image for a certain mainboard, i.e. a coreboot ROM image
9 which does not yet contain a payload.
10
11 For such an image to be useful, you have to use 'cbfstool'
12 to add a payload to the ROM image later.
13
Martin Rothffc79fb2022-10-20 13:54:54 -060014if !PAYLOAD_NONE
15choice
16 prompt "Payload to add"
17 default PAYLOAD_SEABIOS if ARCH_X86
18
Martin Roth21c06502016-02-04 19:52:27 -070019config PAYLOAD_ELF
20 bool "An ELF executable payload"
21 help
22 Select this option if you have a payload image (an ELF file)
23 which coreboot should run as soon as the basic hardware
24 initialization is completed.
25
26 You will be able to specify the location and file name of the
27 payload image later.
28
Paul Menzel209a1bf2018-07-09 10:42:41 +020029config PAYLOAD_FIT
30 bool "A FIT payload"
Sam Lewiscb2879872020-08-09 15:33:00 +100031 depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM
Paul Menzel209a1bf2018-07-09 10:42:41 +020032 select PAYLOAD_FIT_SUPPORT
33 help
34 Select this option if you have a payload image (a FIT file) which
35 coreboot should run as soon as the basic hardware initialization
36 is completed.
37
38 You will be able to specify the location and file name of the
39 payload image later.
40
Martin Roth21c06502016-02-04 19:52:27 -070041source "payloads/external/*/Kconfig.name"
42
43endchoice
44
45source "payloads/external/*/Kconfig"
46
47config PAYLOAD_FILE
48 string "Payload path and filename"
Patrick Rudolpha892cde2018-04-19 14:39:07 +020049 depends on PAYLOAD_ELF || PAYLOAD_FIT
50 default "payload.elf" if PAYLOAD_ELF
51 default "uImage" if PAYLOAD_FIT
Martin Roth21c06502016-02-04 19:52:27 -070052 help
53 The path and filename of the ELF executable file to use as payload.
54
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020055choice
56 prompt "Payload compression algorithm"
Arthur Heymans30a6b742018-01-20 12:21:03 +010057 default COMPRESSED_PAYLOAD_LZMA
Ronald G. Minnichf5529d92020-02-21 22:14:01 +000058 default COMPRESSED_PAYLOAD_NONE if PAYLOAD_LINUX || PAYLOAD_LINUXBOOT || PAYLOAD_FIT
Martin Rothffc79fb2022-10-20 13:54:54 -060059 depends on !PAYLOAD_LINUX && !PAYLOAD_LINUXBOOT && !PAYLOAD_FIT
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020060 help
61 Choose the compression algorithm for the chosen payloads.
Ronald G. Minnichf5529d92020-02-21 22:14:01 +000062 You can choose between None, LZMA, or LZ4.
63
64config COMPRESSED_PAYLOAD_NONE
65 bool "Use no compression for payloads"
66 help
67 Do not compress the payload.
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020068
Martin Roth21c06502016-02-04 19:52:27 -070069config COMPRESSED_PAYLOAD_LZMA
70 bool "Use LZMA compression for payloads"
Martin Roth21c06502016-02-04 19:52:27 -070071 help
72 In order to reduce the size payloads take up in the ROM chip
73 coreboot can compress them using the LZMA algorithm.
74
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020075config COMPRESSED_PAYLOAD_LZ4
76 bool "Use LZ4 compression for payloads"
77 help
78 In order to reduce the size payloads take up in the ROM chip
79 coreboot can compress them using the LZ4 algorithm.
80endchoice
81
Martin Rothdbae4d02015-12-11 12:24:33 -070082config PAYLOAD_OPTIONS
83 string
84 default ""
85 help
86 Additional cbfstool options for the payload
87
88config PAYLOAD_IS_FLAT_BINARY
89 def_bool n
90 help
91 Add the payload to cbfs as a flat binary type instead of as an
92 elf payload
93
Patrick Rudolpha892cde2018-04-19 14:39:07 +020094config PAYLOAD_FIT_SUPPORT
95 bool "FIT support"
96 default n
Jonathan Neuschäfer3a4511e2018-12-12 01:08:24 +010097 default y if PAYLOAD_LINUX && (ARCH_ARM || ARCH_ARM64 || ARCH_RISCV)
Sam Lewiscb2879872020-08-09 15:33:00 +100098 depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM
Patrick Rudolpha892cde2018-04-19 14:39:07 +020099 select FLATTENED_DEVICE_TREE
100 help
101 Select this option if your payload is of type FIT.
102 Enables FIT parser and devicetree patching. The FIT is non
Paul Menzelab6583e2018-07-02 08:37:09 +0200103 self-extracting and needs to have a compatible compression format.
Patrick Rudolpha892cde2018-04-19 14:39:07 +0200104
Arthur Heymans47dd96d2018-02-07 13:01:43 +0100105config COMPRESS_SECONDARY_PAYLOAD
106 bool "Use LZMA compression for secondary payloads"
107 default y
108 help
109 In order to reduce the size secondary payloads take up in the
110 ROM chip they can be compressed using the LZMA algorithm.
111
Martin Roth5ad9aca2016-03-07 19:21:45 -0700112menu "Secondary Payloads"
113
Martin Roth4351ace2016-02-16 19:40:47 -0700114config COREINFO_SECONDARY_PAYLOAD
115 bool "Load coreinfo as a secondary payload"
116 default n
117 depends on ARCH_X86
118 help
119 coreinfo can be loaded as a secondary payload under SeaBIOS, GRUB,
120 or any other payload that can load additional payloads.
Martin Roth21c06502016-02-04 19:52:27 -0700121
Bill XIE3dda4da2022-01-01 11:56:00 +0800122config GRUB2_SECONDARY_PAYLOAD
123 bool "Load GRUB2 as a secondary payload"
124 default n
125 depends on !PAYLOAD_GRUB2
126 select PAYLOAD_BUILD_GRUB2
127 help
128 GRUB2 can be loaded as a secondary payload under SeaBIOS or any
129 other payload that can load additional payloads.
130
Martin Rothbe63a242016-02-28 15:56:27 -0800131config MEMTEST_SECONDARY_PAYLOAD
132 bool "Load Memtest86+ as a secondary payload"
133 default n
Martin Roth5ad9aca2016-03-07 19:21:45 -0700134 depends on ARCH_X86
Martin Rothbe63a242016-02-28 15:56:27 -0800135 help
136 Memtest86+ can be loaded as a secondary payload under SeaBIOS, GRUB,
137 or any other payload that can load additional payloads.
138
Iru Cai736aa742016-04-15 15:48:14 +0800139config NVRAMCUI_SECONDARY_PAYLOAD
140 bool "Load nvramcui as a secondary payload"
141 default n
Matt DeVillier6670f442020-04-05 22:28:15 -0500142 depends on ARCH_X86 && HAVE_OPTION_TABLE
Iru Cai736aa742016-04-15 15:48:14 +0800143 help
144 nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB,
145 or any other payload that can load additional payloads.
146
Bill XIE3dda4da2022-01-01 11:56:00 +0800147config SEABIOS_SECONDARY_PAYLOAD
148 bool "Load SeaBIOS as a secondary payload"
149 default n
150 depends on ARCH_X86
151 depends on !PAYLOAD_SEABIOS
152 depends on !PAYLOAD_SEAGRUB
153 select PAYLOAD_BUILD_SEABIOS
154 help
155 SeaBIOS can be loaded as a secondary payload under GRUB or any
156 other payload that can load additional payloads.
157
Antonello Dettori4f7d3292016-05-27 23:44:47 +0200158config TINT_SECONDARY_PAYLOAD
159 bool "Load tint as a secondary payload"
160 default n
161 depends on ARCH_X86
162 help
163 tint can be loaded as a secondary payload under SeaBIOS, GRUB,
164 or any other payload that can load additional payloads.
165
Nicholas Chin8d885572021-08-28 09:40:41 -0600166config COREDOOM_SECONDARY_PAYLOAD
167 bool "Load coreDOOM as a secondary payload"
168 default n
169 depends on ARCH_X86
170 help
171 coreDOOM can be loaded as a secondary payload under SeaBIOS, GRUB,
172 or any other payload that can load additional payloads. Requires a
173 linear framebuffer. If built as a secondary payload for SeaBIOS, the
174 generated VGA BIOS option rom is also required.
175
Stefan Taunera07366c2018-08-19 17:48:53 +0200176source "payloads/external/*/Kconfig.secondary"
177
Martin Roth5ad9aca2016-03-07 19:21:45 -0700178endmenu # "Secondary Payloads"
Martin Rothffc79fb2022-10-20 13:54:54 -0600179
180endif # !PAYLOAD_NONE
181
Martin Roth4351ace2016-02-16 19:40:47 -0700182endmenu