blob: c7a7ba6e1d4513dc0b452645066732d53db277d4 [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"
Philipp Hug56dceb22018-09-27 17:25:22 +020033 depends on ARCH_ARM64
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
Antonello Dettori3d609322016-07-25 14:23:46 +020043config PAYLOAD_BAYOU
44 bool "Bayou"
Philipp Hug56dceb22018-09-27 17:25:22 +020045 depends on ARCH_X86
Antonello Dettori3d609322016-07-25 14:23:46 +020046 help
47 Select this option if you want to set bayou as your primary
48 payload.
49
Martin Roth21c06502016-02-04 19:52:27 -070050source "payloads/external/*/Kconfig.name"
51
52endchoice
53
54source "payloads/external/*/Kconfig"
55
Antonello Dettori3d609322016-07-25 14:23:46 +020056source "payloads/bayou/Kconfig"
57
Martin Roth21c06502016-02-04 19:52:27 -070058config PAYLOAD_FILE
59 string "Payload path and filename"
Patrick Rudolpha892cde2018-04-19 14:39:07 +020060 depends on PAYLOAD_ELF || PAYLOAD_FIT
61 default "payload.elf" if PAYLOAD_ELF
62 default "uImage" if PAYLOAD_FIT
Martin Roth21c06502016-02-04 19:52:27 -070063 help
64 The path and filename of the ELF executable file to use as payload.
65
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020066choice
67 prompt "Payload compression algorithm"
Arthur Heymans30a6b742018-01-20 12:21:03 +010068 default COMPRESSED_PAYLOAD_LZMA
Andrea Barberio256dd112018-09-25 14:22:01 +010069 depends on !PAYLOAD_NONE && !PAYLOAD_LINUX && !PAYLOAD_LINUXBOOT && !PAYLOAD_FIT
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020070 help
71 Choose the compression algorithm for the chosen payloads.
72 You can choose between LZMA and LZ4.
73
Martin Roth21c06502016-02-04 19:52:27 -070074config COMPRESSED_PAYLOAD_LZMA
75 bool "Use LZMA compression for payloads"
Martin Roth21c06502016-02-04 19:52:27 -070076 help
77 In order to reduce the size payloads take up in the ROM chip
78 coreboot can compress them using the LZMA algorithm.
79
Antonello Dettorifbcfdaf2016-07-23 17:11:44 +020080config COMPRESSED_PAYLOAD_LZ4
81 bool "Use LZ4 compression for payloads"
82 help
83 In order to reduce the size payloads take up in the ROM chip
84 coreboot can compress them using the LZ4 algorithm.
85endchoice
86
Martin Rothdbae4d02015-12-11 12:24:33 -070087config PAYLOAD_OPTIONS
88 string
89 default ""
90 help
91 Additional cbfstool options for the payload
92
93config PAYLOAD_IS_FLAT_BINARY
94 def_bool n
95 help
96 Add the payload to cbfs as a flat binary type instead of as an
97 elf payload
98
Patrick Rudolpha892cde2018-04-19 14:39:07 +020099config PAYLOAD_FIT_SUPPORT
100 bool "FIT support"
101 default n
102 default y if PAYLOAD_LINUX && (ARCH_ARM || ARCH_ARM64)
103 select FLATTENED_DEVICE_TREE
104 help
105 Select this option if your payload is of type FIT.
106 Enables FIT parser and devicetree patching. The FIT is non
Paul Menzelab6583e2018-07-02 08:37:09 +0200107 self-extracting and needs to have a compatible compression format.
Patrick Rudolpha892cde2018-04-19 14:39:07 +0200108
Arthur Heymans47dd96d2018-02-07 13:01:43 +0100109config COMPRESS_SECONDARY_PAYLOAD
110 bool "Use LZMA compression for secondary payloads"
111 default y
112 help
113 In order to reduce the size secondary payloads take up in the
114 ROM chip they can be compressed using the LZMA algorithm.
115
Martin Roth5ad9aca2016-03-07 19:21:45 -0700116menu "Secondary Payloads"
117
Martin Roth4351ace2016-02-16 19:40:47 -0700118config COREINFO_SECONDARY_PAYLOAD
119 bool "Load coreinfo as a secondary payload"
120 default n
121 depends on ARCH_X86
122 help
123 coreinfo can be loaded as a secondary payload under SeaBIOS, GRUB,
124 or any other payload that can load additional payloads.
Martin Roth21c06502016-02-04 19:52:27 -0700125
Martin Rothbe63a242016-02-28 15:56:27 -0800126config MEMTEST_SECONDARY_PAYLOAD
127 bool "Load Memtest86+ as a secondary payload"
128 default n
Martin Roth5ad9aca2016-03-07 19:21:45 -0700129 depends on ARCH_X86
Martin Rothbe63a242016-02-28 15:56:27 -0800130 help
131 Memtest86+ can be loaded as a secondary payload under SeaBIOS, GRUB,
132 or any other payload that can load additional payloads.
133
Iru Cai736aa742016-04-15 15:48:14 +0800134config NVRAMCUI_SECONDARY_PAYLOAD
135 bool "Load nvramcui as a secondary payload"
136 default n
137 depends on ARCH_X86
138 help
139 nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB,
140 or any other payload that can load additional payloads.
141
Antonello Dettori4f7d3292016-05-27 23:44:47 +0200142config TINT_SECONDARY_PAYLOAD
143 bool "Load tint as a secondary payload"
144 default n
145 depends on ARCH_X86
146 help
147 tint can be loaded as a secondary payload under SeaBIOS, GRUB,
148 or any other payload that can load additional payloads.
149
Stefan Taunera07366c2018-08-19 17:48:53 +0200150source "payloads/external/*/Kconfig.secondary"
151
Martin Roth5ad9aca2016-03-07 19:21:45 -0700152endmenu # "Secondary Payloads"
Martin Roth4351ace2016-02-16 19:40:47 -0700153endmenu