Martin Roth | 969b700 | 2024-02-16 10:29:01 -0700 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 3 | menu "Payload" |
| 4 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 5 | config PAYLOAD_NONE |
Martin Roth | ffc79fb | 2022-10-20 13:54:54 -0600 | [diff] [blame] | 6 | bool "Don't add a payload" |
| 7 | default y if !ARCH_X86 |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 8 | help |
| 9 | Select this option if you want to create an "empty" coreboot |
| 10 | ROM image for a certain mainboard, i.e. a coreboot ROM image |
| 11 | which does not yet contain a payload. |
| 12 | |
| 13 | For such an image to be useful, you have to use 'cbfstool' |
| 14 | to add a payload to the ROM image later. |
| 15 | |
Martin Roth | ffc79fb | 2022-10-20 13:54:54 -0600 | [diff] [blame] | 16 | if !PAYLOAD_NONE |
| 17 | choice |
| 18 | prompt "Payload to add" |
| 19 | default PAYLOAD_SEABIOS if ARCH_X86 |
| 20 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 21 | config 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 Menzel | 209a1bf | 2018-07-09 10:42:41 +0200 | [diff] [blame] | 31 | config PAYLOAD_FIT |
| 32 | bool "A FIT payload" |
Sam Lewis | cb287987 | 2020-08-09 15:33:00 +1000 | [diff] [blame] | 33 | depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM |
Paul Menzel | 209a1bf | 2018-07-09 10:42:41 +0200 | [diff] [blame] | 34 | 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 | |
Maximilian Brune | 085c973 | 2024-01-27 12:14:39 +0100 | [diff] [blame] | 43 | config PAYLOAD_FLAT_BINARY |
| 44 | bool "A flat binary" |
| 45 | select PAYLOAD_IS_FLAT_BINARY |
| 46 | help |
| 47 | Select this option if you have a flat binary without any |
| 48 | executable format surrounding it which coreboot should run |
| 49 | as soon as the basic hardware initialization is completed. |
| 50 | |
| 51 | You will be able to specify the location and file name of the |
| 52 | payload image later. |
| 53 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 54 | source "payloads/external/*/Kconfig.name" |
| 55 | |
| 56 | endchoice |
| 57 | |
| 58 | source "payloads/external/*/Kconfig" |
| 59 | |
| 60 | config PAYLOAD_FILE |
| 61 | string "Payload path and filename" |
Ronald G Minnich | e1ea965 | 2024-03-12 09:45:58 -0700 | [diff] [blame^] | 62 | depends on PAYLOAD_ELF || PAYLOAD_FIT || PAYLOAD_FLAT_BINARY |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 63 | default "payload.elf" if PAYLOAD_ELF |
| 64 | default "uImage" if PAYLOAD_FIT |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 65 | help |
| 66 | The path and filename of the ELF executable file to use as payload. |
| 67 | |
Antonello Dettori | fbcfdaf | 2016-07-23 17:11:44 +0200 | [diff] [blame] | 68 | choice |
| 69 | prompt "Payload compression algorithm" |
Arthur Heymans | 30a6b74 | 2018-01-20 12:21:03 +0100 | [diff] [blame] | 70 | default COMPRESSED_PAYLOAD_LZMA |
Ronald G. Minnich | f5529d9 | 2020-02-21 22:14:01 +0000 | [diff] [blame] | 71 | default COMPRESSED_PAYLOAD_NONE if PAYLOAD_LINUX || PAYLOAD_LINUXBOOT || PAYLOAD_FIT |
Martin Roth | ffc79fb | 2022-10-20 13:54:54 -0600 | [diff] [blame] | 72 | depends on !PAYLOAD_LINUX && !PAYLOAD_LINUXBOOT && !PAYLOAD_FIT |
Antonello Dettori | fbcfdaf | 2016-07-23 17:11:44 +0200 | [diff] [blame] | 73 | help |
| 74 | Choose the compression algorithm for the chosen payloads. |
Ronald G. Minnich | f5529d9 | 2020-02-21 22:14:01 +0000 | [diff] [blame] | 75 | You can choose between None, LZMA, or LZ4. |
| 76 | |
| 77 | config COMPRESSED_PAYLOAD_NONE |
| 78 | bool "Use no compression for payloads" |
| 79 | help |
| 80 | Do not compress the payload. |
Antonello Dettori | fbcfdaf | 2016-07-23 17:11:44 +0200 | [diff] [blame] | 81 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 82 | config COMPRESSED_PAYLOAD_LZMA |
| 83 | bool "Use LZMA compression for payloads" |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 84 | help |
| 85 | In order to reduce the size payloads take up in the ROM chip |
| 86 | coreboot can compress them using the LZMA algorithm. |
| 87 | |
Antonello Dettori | fbcfdaf | 2016-07-23 17:11:44 +0200 | [diff] [blame] | 88 | config COMPRESSED_PAYLOAD_LZ4 |
| 89 | bool "Use LZ4 compression for payloads" |
| 90 | help |
| 91 | In order to reduce the size payloads take up in the ROM chip |
| 92 | coreboot can compress them using the LZ4 algorithm. |
| 93 | endchoice |
| 94 | |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 95 | config PAYLOAD_OPTIONS |
Maximilian Brune | 085c973 | 2024-01-27 12:14:39 +0100 | [diff] [blame] | 96 | string "Additional cbfstool options" if PAYLOAD_FLAT_BINARY |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 97 | default "" |
Maximilian Brune | 085c973 | 2024-01-27 12:14:39 +0100 | [diff] [blame] | 98 | depends on PAYLOAD_IS_FLAT_BINARY |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 99 | help |
| 100 | Additional cbfstool options for the payload |
| 101 | |
| 102 | config PAYLOAD_IS_FLAT_BINARY |
Maximilian Brune | 085c973 | 2024-01-27 12:14:39 +0100 | [diff] [blame] | 103 | bool |
Maximilian Brune | 0825d90 | 2024-01-14 19:08:06 +0600 | [diff] [blame] | 104 | default n |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 105 | |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 106 | config PAYLOAD_FIT_SUPPORT |
| 107 | bool "FIT support" |
| 108 | default n |
Jonathan Neuschäfer | 3a4511e | 2018-12-12 01:08:24 +0100 | [diff] [blame] | 109 | default y if PAYLOAD_LINUX && (ARCH_ARM || ARCH_ARM64 || ARCH_RISCV) |
Sam Lewis | cb287987 | 2020-08-09 15:33:00 +1000 | [diff] [blame] | 110 | depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 111 | select FLATTENED_DEVICE_TREE |
| 112 | help |
| 113 | Select this option if your payload is of type FIT. |
| 114 | Enables FIT parser and devicetree patching. The FIT is non |
Paul Menzel | ab6583e | 2018-07-02 08:37:09 +0200 | [diff] [blame] | 115 | self-extracting and needs to have a compatible compression format. |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 116 | |
Arthur Heymans | 47dd96d | 2018-02-07 13:01:43 +0100 | [diff] [blame] | 117 | config COMPRESS_SECONDARY_PAYLOAD |
| 118 | bool "Use LZMA compression for secondary payloads" |
| 119 | default y |
| 120 | help |
| 121 | In order to reduce the size secondary payloads take up in the |
| 122 | ROM chip they can be compressed using the LZMA algorithm. |
| 123 | |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 124 | menu "Secondary Payloads" |
| 125 | |
Martin Roth | 4351ace | 2016-02-16 19:40:47 -0700 | [diff] [blame] | 126 | config COREINFO_SECONDARY_PAYLOAD |
| 127 | bool "Load coreinfo as a secondary payload" |
| 128 | default n |
| 129 | depends on ARCH_X86 |
| 130 | help |
| 131 | coreinfo can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 132 | or any other payload that can load additional payloads. |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 133 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 134 | config GRUB2_SECONDARY_PAYLOAD |
| 135 | bool "Load GRUB2 as a secondary payload" |
| 136 | default n |
| 137 | depends on !PAYLOAD_GRUB2 |
| 138 | select PAYLOAD_BUILD_GRUB2 |
| 139 | help |
| 140 | GRUB2 can be loaded as a secondary payload under SeaBIOS or any |
| 141 | other payload that can load additional payloads. |
| 142 | |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 143 | config MEMTEST_SECONDARY_PAYLOAD |
| 144 | bool "Load Memtest86+ as a secondary payload" |
| 145 | default n |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 146 | depends on ARCH_X86 |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 147 | help |
| 148 | Memtest86+ can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 149 | or any other payload that can load additional payloads. |
| 150 | |
Iru Cai | 736aa74 | 2016-04-15 15:48:14 +0800 | [diff] [blame] | 151 | config NVRAMCUI_SECONDARY_PAYLOAD |
| 152 | bool "Load nvramcui as a secondary payload" |
| 153 | default n |
Matt DeVillier | 6670f44 | 2020-04-05 22:28:15 -0500 | [diff] [blame] | 154 | depends on ARCH_X86 && HAVE_OPTION_TABLE |
Iru Cai | 736aa74 | 2016-04-15 15:48:14 +0800 | [diff] [blame] | 155 | help |
| 156 | nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 157 | or any other payload that can load additional payloads. |
| 158 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 159 | config SEABIOS_SECONDARY_PAYLOAD |
| 160 | bool "Load SeaBIOS as a secondary payload" |
| 161 | default n |
| 162 | depends on ARCH_X86 |
| 163 | depends on !PAYLOAD_SEABIOS |
| 164 | depends on !PAYLOAD_SEAGRUB |
| 165 | select PAYLOAD_BUILD_SEABIOS |
| 166 | help |
| 167 | SeaBIOS can be loaded as a secondary payload under GRUB or any |
| 168 | other payload that can load additional payloads. |
| 169 | |
Antonello Dettori | 4f7d329 | 2016-05-27 23:44:47 +0200 | [diff] [blame] | 170 | config TINT_SECONDARY_PAYLOAD |
| 171 | bool "Load tint as a secondary payload" |
| 172 | default n |
| 173 | depends on ARCH_X86 |
| 174 | help |
| 175 | tint can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 176 | or any other payload that can load additional payloads. |
| 177 | |
Nicholas Chin | 8d88557 | 2021-08-28 09:40:41 -0600 | [diff] [blame] | 178 | config COREDOOM_SECONDARY_PAYLOAD |
| 179 | bool "Load coreDOOM as a secondary payload" |
| 180 | default n |
| 181 | depends on ARCH_X86 |
| 182 | help |
| 183 | coreDOOM can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 184 | or any other payload that can load additional payloads. Requires a |
| 185 | linear framebuffer. If built as a secondary payload for SeaBIOS, the |
| 186 | generated VGA BIOS option rom is also required. |
| 187 | |
Stefan Tauner | a07366c | 2018-08-19 17:48:53 +0200 | [diff] [blame] | 188 | source "payloads/external/*/Kconfig.secondary" |
| 189 | |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 190 | endmenu # "Secondary Payloads" |
Martin Roth | ffc79fb | 2022-10-20 13:54:54 -0600 | [diff] [blame] | 191 | |
| 192 | endif # !PAYLOAD_NONE |
| 193 | |
Martin Roth | 4351ace | 2016-02-16 19:40:47 -0700 | [diff] [blame] | 194 | endmenu |