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