blob: 2e627d7e5b36279541231fe1b4fbd265daa1cc59 [file] [log] [blame]
Martin Roth21c06502016-02-04 19:52:27 -07001menu "Payload"
2
Nico Huber9121a362017-05-20 21:04:15 +02003config NO_DEFAULT_PAYLOAD
4 bool
5
Martin Roth21c06502016-02-04 19:52:27 -07006choice
7 prompt "Add a payload"
Nico Huber9121a362017-05-20 21:04:15 +02008 default PAYLOAD_NONE if NO_DEFAULT_PAYLOAD || !ARCH_X86
Martin Roth21c06502016-02-04 19:52:27 -07009 default PAYLOAD_SEABIOS if ARCH_X86
10
11config PAYLOAD_NONE
12 bool "None"
13 help
14 Select this option if you want to create an "empty" coreboot
15 ROM image for a certain mainboard, i.e. a coreboot ROM image
16 which does not yet contain a payload.
17
18 For such an image to be useful, you have to use 'cbfstool'
19 to add a payload to the ROM image later.
20
21config PAYLOAD_ELF
22 bool "An ELF executable payload"
23 help
24 Select this option if you have a payload image (an ELF file)
25 which coreboot should run as soon as the basic hardware
26 initialization is completed.
27
28 You will be able to specify the location and file name of the
29 payload image later.
30
Paul Menzel209a1bf2018-07-09 10:42:41 +020031config PAYLOAD_FIT
32 bool "A FIT payload"
Sam Lewiscb2879872020-08-09 15:33:00 +100033 depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM
Paul Menzel209a1bf2018-07-09 10:42:41 +020034 select PAYLOAD_FIT_SUPPORT
35 help
36 Select this option if you have a payload image (a FIT file) which
37 coreboot should run as soon as the basic hardware initialization
38 is completed.
39
40 You will be able to specify the location and file name of the
41 payload image later.
42
Martin Roth21c06502016-02-04 19:52:27 -070043source "payloads/external/*/Kconfig.name"
44
45endchoice
46
47source "payloads/external/*/Kconfig"
48
49config PAYLOAD_FILE
50 string "Payload path and filename"
Patrick Rudolpha892cde2018-04-19 14:39:07 +020051 depends on PAYLOAD_ELF || PAYLOAD_FIT
52 default "payload.elf" if PAYLOAD_ELF
53 default "uImage" if PAYLOAD_FIT
Martin Roth21c06502016-02-04 19:52:27 -070054 help
55 The path and filename of the ELF executable file to use as payload.
56
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020057choice
58 prompt "Payload compression algorithm"
Arthur Heymans30a6b742018-01-20 12:21:03 +010059 default COMPRESSED_PAYLOAD_LZMA
Ronald G. Minnichf5529d92020-02-21 22:14:01 +000060 default COMPRESSED_PAYLOAD_NONE if PAYLOAD_LINUX || PAYLOAD_LINUXBOOT || PAYLOAD_FIT
Andrea Barberio256dd112018-09-25 14:22:01 +010061 depends on !PAYLOAD_NONE && !PAYLOAD_LINUX && !PAYLOAD_LINUXBOOT && !PAYLOAD_FIT
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020062 help
63 Choose the compression algorithm for the chosen payloads.
Ronald G. Minnichf5529d92020-02-21 22:14:01 +000064 You can choose between None, LZMA, or LZ4.
65
66config COMPRESSED_PAYLOAD_NONE
67 bool "Use no compression for payloads"
68 help
69 Do not compress the payload.
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020070
Martin Roth21c06502016-02-04 19:52:27 -070071config COMPRESSED_PAYLOAD_LZMA
72 bool "Use LZMA compression for payloads"
Martin Roth21c06502016-02-04 19:52:27 -070073 help
74 In order to reduce the size payloads take up in the ROM chip
75 coreboot can compress them using the LZMA algorithm.
76
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020077config COMPRESSED_PAYLOAD_LZ4
78 bool "Use LZ4 compression for payloads"
79 help
80 In order to reduce the size payloads take up in the ROM chip
81 coreboot can compress them using the LZ4 algorithm.
82endchoice
83
Martin Rothdbae4d02015-12-11 12:24:33 -070084config PAYLOAD_OPTIONS
85 string
86 default ""
87 help
88 Additional cbfstool options for the payload
89
90config PAYLOAD_IS_FLAT_BINARY
91 def_bool n
92 help
93 Add the payload to cbfs as a flat binary type instead of as an
94 elf payload
95
Patrick Rudolpha892cde2018-04-19 14:39:07 +020096config PAYLOAD_FIT_SUPPORT
97 bool "FIT support"
98 default n
Jonathan Neuschäfer3a4511e2018-12-12 01:08:24 +010099 default y if PAYLOAD_LINUX && (ARCH_ARM || ARCH_ARM64 || ARCH_RISCV)
Sam Lewiscb2879872020-08-09 15:33:00 +1000100 depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM
Patrick Rudolpha892cde2018-04-19 14:39:07 +0200101 select FLATTENED_DEVICE_TREE
102 help
103 Select this option if your payload is of type FIT.
104 Enables FIT parser and devicetree patching. The FIT is non
Paul Menzelab6583e2018-07-02 08:37:09 +0200105 self-extracting and needs to have a compatible compression format.
Patrick Rudolpha892cde2018-04-19 14:39:07 +0200106
Arthur Heymans47dd96d2018-02-07 13:01:43 +0100107config COMPRESS_SECONDARY_PAYLOAD
108 bool "Use LZMA compression for secondary payloads"
109 default y
110 help
111 In order to reduce the size secondary payloads take up in the
112 ROM chip they can be compressed using the LZMA algorithm.
113
Martin Roth5ad9aca2016-03-07 19:21:45 -0700114menu "Secondary Payloads"
115
Martin Roth4351ace2016-02-16 19:40:47 -0700116config COREINFO_SECONDARY_PAYLOAD
117 bool "Load coreinfo as a secondary payload"
118 default n
119 depends on ARCH_X86
120 help
121 coreinfo can be loaded as a secondary payload under SeaBIOS, GRUB,
122 or any other payload that can load additional payloads.
Martin Roth21c06502016-02-04 19:52:27 -0700123
Bill XIE3dda4da2022-01-01 11:56:00 +0800124config GRUB2_SECONDARY_PAYLOAD
125 bool "Load GRUB2 as a secondary payload"
126 default n
127 depends on !PAYLOAD_GRUB2
128 select PAYLOAD_BUILD_GRUB2
129 help
130 GRUB2 can be loaded as a secondary payload under SeaBIOS or any
131 other payload that can load additional payloads.
132
Martin Rothbe63a242016-02-28 15:56:27 -0800133config MEMTEST_SECONDARY_PAYLOAD
134 bool "Load Memtest86+ as a secondary payload"
135 default n
Martin Roth5ad9aca2016-03-07 19:21:45 -0700136 depends on ARCH_X86
Martin Rothbe63a242016-02-28 15:56:27 -0800137 help
138 Memtest86+ can be loaded as a secondary payload under SeaBIOS, GRUB,
139 or any other payload that can load additional payloads.
140
Iru Cai736aa742016-04-15 15:48:14 +0800141config NVRAMCUI_SECONDARY_PAYLOAD
142 bool "Load nvramcui as a secondary payload"
143 default n
Matt DeVillier6670f442020-04-05 22:28:15 -0500144 depends on ARCH_X86 && HAVE_OPTION_TABLE
Iru Cai736aa742016-04-15 15:48:14 +0800145 help
146 nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB,
147 or any other payload that can load additional payloads.
148
Bill XIE3dda4da2022-01-01 11:56:00 +0800149config SEABIOS_SECONDARY_PAYLOAD
150 bool "Load SeaBIOS as a secondary payload"
151 default n
152 depends on ARCH_X86
153 depends on !PAYLOAD_SEABIOS
154 depends on !PAYLOAD_SEAGRUB
155 select PAYLOAD_BUILD_SEABIOS
156 help
157 SeaBIOS can be loaded as a secondary payload under GRUB or any
158 other payload that can load additional payloads.
159
Antonello Dettori4f7d3292016-05-27 23:44:47 +0200160config TINT_SECONDARY_PAYLOAD
161 bool "Load tint as a secondary payload"
162 default n
163 depends on ARCH_X86
164 help
165 tint can be loaded as a secondary payload under SeaBIOS, GRUB,
166 or any other payload that can load additional payloads.
167
Nicholas Chin8d885572021-08-28 09:40:41 -0600168config COREDOOM_SECONDARY_PAYLOAD
169 bool "Load coreDOOM as a secondary payload"
170 default n
171 depends on ARCH_X86
172 help
173 coreDOOM can be loaded as a secondary payload under SeaBIOS, GRUB,
174 or any other payload that can load additional payloads. Requires a
175 linear framebuffer. If built as a secondary payload for SeaBIOS, the
176 generated VGA BIOS option rom is also required.
177
Stefan Taunera07366c2018-08-19 17:48:53 +0200178source "payloads/external/*/Kconfig.secondary"
179
Martin Roth5ad9aca2016-03-07 19:21:45 -0700180endmenu # "Secondary Payloads"
Martin Roth4351ace2016-02-16 19:40:47 -0700181endmenu