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 |
| 83 | string |
| 84 | default "" |
| 85 | help |
| 86 | Additional cbfstool options for the payload |
| 87 | |
| 88 | config 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 Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 94 | config PAYLOAD_FIT_SUPPORT |
| 95 | bool "FIT support" |
| 96 | default n |
Jonathan Neuschäfer | 3a4511e | 2018-12-12 01:08:24 +0100 | [diff] [blame] | 97 | default y if PAYLOAD_LINUX && (ARCH_ARM || ARCH_ARM64 || ARCH_RISCV) |
Sam Lewis | cb287987 | 2020-08-09 15:33:00 +1000 | [diff] [blame] | 98 | depends on ARCH_ARM64 || ARCH_RISCV || ARCH_ARM |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 99 | 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 Menzel | ab6583e | 2018-07-02 08:37:09 +0200 | [diff] [blame] | 103 | self-extracting and needs to have a compatible compression format. |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 104 | |
Arthur Heymans | 47dd96d | 2018-02-07 13:01:43 +0100 | [diff] [blame] | 105 | config 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 Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 112 | menu "Secondary Payloads" |
| 113 | |
Martin Roth | 4351ace | 2016-02-16 19:40:47 -0700 | [diff] [blame] | 114 | config 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 Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 121 | |
Bill XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 122 | config 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 Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 131 | config MEMTEST_SECONDARY_PAYLOAD |
| 132 | bool "Load Memtest86+ as a secondary payload" |
| 133 | default n |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 134 | depends on ARCH_X86 |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 135 | 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 Cai | 736aa74 | 2016-04-15 15:48:14 +0800 | [diff] [blame] | 139 | config NVRAMCUI_SECONDARY_PAYLOAD |
| 140 | bool "Load nvramcui as a secondary payload" |
| 141 | default n |
Matt DeVillier | 6670f44 | 2020-04-05 22:28:15 -0500 | [diff] [blame] | 142 | depends on ARCH_X86 && HAVE_OPTION_TABLE |
Iru Cai | 736aa74 | 2016-04-15 15:48:14 +0800 | [diff] [blame] | 143 | 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 XIE | 3dda4da | 2022-01-01 11:56:00 +0800 | [diff] [blame] | 147 | config 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 Dettori | 4f7d329 | 2016-05-27 23:44:47 +0200 | [diff] [blame] | 158 | config 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 Chin | 8d88557 | 2021-08-28 09:40:41 -0600 | [diff] [blame] | 166 | config 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 Tauner | a07366c | 2018-08-19 17:48:53 +0200 | [diff] [blame] | 176 | source "payloads/external/*/Kconfig.secondary" |
| 177 | |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 178 | endmenu # "Secondary Payloads" |
Martin Roth | ffc79fb | 2022-10-20 13:54:54 -0600 | [diff] [blame] | 179 | |
| 180 | endif # !PAYLOAD_NONE |
| 181 | |
Martin Roth | 4351ace | 2016-02-16 19:40:47 -0700 | [diff] [blame] | 182 | endmenu |