Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 1 | menu "Payload" |
| 2 | |
| 3 | choice |
| 4 | prompt "Add a payload" |
| 5 | default PAYLOAD_NONE if !ARCH_X86 |
| 6 | default PAYLOAD_SEABIOS if ARCH_X86 |
| 7 | |
| 8 | config PAYLOAD_NONE |
| 9 | bool "None" |
| 10 | help |
| 11 | Select this option if you want to create an "empty" coreboot |
| 12 | ROM image for a certain mainboard, i.e. a coreboot ROM image |
| 13 | which does not yet contain a payload. |
| 14 | |
| 15 | For such an image to be useful, you have to use 'cbfstool' |
| 16 | to add a payload to the ROM image later. |
| 17 | |
| 18 | config PAYLOAD_ELF |
| 19 | bool "An ELF executable payload" |
| 20 | help |
| 21 | Select this option if you have a payload image (an ELF file) |
| 22 | which coreboot should run as soon as the basic hardware |
| 23 | initialization is completed. |
| 24 | |
| 25 | You will be able to specify the location and file name of the |
| 26 | payload image later. |
| 27 | |
| 28 | source "payloads/external/*/Kconfig.name" |
| 29 | |
| 30 | endchoice |
| 31 | |
| 32 | source "payloads/external/*/Kconfig" |
| 33 | |
| 34 | config PAYLOAD_FILE |
| 35 | string "Payload path and filename" |
| 36 | depends on PAYLOAD_ELF |
| 37 | default "payload.elf" |
| 38 | help |
| 39 | The path and filename of the ELF executable file to use as payload. |
| 40 | |
| 41 | # TODO: Defined if no payload? Breaks build? |
| 42 | config COMPRESSED_PAYLOAD_LZMA |
| 43 | bool "Use LZMA compression for payloads" |
| 44 | default y |
| 45 | depends on !PAYLOAD_NONE && !PAYLOAD_LINUX |
| 46 | help |
| 47 | In order to reduce the size payloads take up in the ROM chip |
| 48 | coreboot can compress them using the LZMA algorithm. |
| 49 | |
Martin Roth | dbae4d0 | 2015-12-11 12:24:33 -0700 | [diff] [blame] | 50 | config PAYLOAD_OPTIONS |
| 51 | string |
| 52 | default "" |
| 53 | help |
| 54 | Additional cbfstool options for the payload |
| 55 | |
| 56 | config PAYLOAD_IS_FLAT_BINARY |
| 57 | def_bool n |
| 58 | help |
| 59 | Add the payload to cbfs as a flat binary type instead of as an |
| 60 | elf payload |
| 61 | |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 62 | menu "Secondary Payloads" |
| 63 | |
Martin Roth | 4351ace | 2016-02-16 19:40:47 -0700 | [diff] [blame] | 64 | config COREINFO_SECONDARY_PAYLOAD |
| 65 | bool "Load coreinfo as a secondary payload" |
| 66 | default n |
| 67 | depends on ARCH_X86 |
| 68 | help |
| 69 | coreinfo can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 70 | or any other payload that can load additional payloads. |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 71 | |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 72 | config MEMTEST_SECONDARY_PAYLOAD |
| 73 | bool "Load Memtest86+ as a secondary payload" |
| 74 | default n |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 75 | depends on ARCH_X86 |
Martin Roth | be63a24 | 2016-02-28 15:56:27 -0800 | [diff] [blame] | 76 | help |
| 77 | Memtest86+ can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 78 | or any other payload that can load additional payloads. |
| 79 | |
Martin Roth | 4005d9b | 2016-04-26 09:51:41 -0600 | [diff] [blame] | 80 | choice |
| 81 | prompt "Memtest86+ version" |
| 82 | default MEMTEST_STABLE |
| 83 | depends on MEMTEST_SECONDARY_PAYLOAD |
| 84 | |
| 85 | config MEMTEST_STABLE |
| 86 | bool "Stable" |
| 87 | help |
| 88 | Stable Memtest86+ version. |
| 89 | |
| 90 | For reproducible builds, this option must be selected. |
| 91 | config MEMTEST_MASTER |
| 92 | bool "Master" |
| 93 | help |
| 94 | Newest Memtest86+ version. |
| 95 | |
| 96 | This option will fetch the newest version of the Memtest86+ code, |
| 97 | updating as new changes are committed. This makes the build |
| 98 | non-reproducible, as it can fetch different code each time. |
| 99 | endchoice |
| 100 | |
Iru Cai | 736aa74 | 2016-04-15 15:48:14 +0800 | [diff] [blame] | 101 | config NVRAMCUI_SECONDARY_PAYLOAD |
| 102 | bool "Load nvramcui as a secondary payload" |
| 103 | default n |
| 104 | depends on ARCH_X86 |
| 105 | help |
| 106 | nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB, |
| 107 | or any other payload that can load additional payloads. |
| 108 | |
Martin Roth | 5ad9aca | 2016-03-07 19:21:45 -0700 | [diff] [blame] | 109 | endmenu # "Secondary Payloads" |
Martin Roth | 4351ace | 2016-02-16 19:40:47 -0700 | [diff] [blame] | 110 | endmenu |