Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | ## |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 2 | ## |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 3 | ## |
Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 4 | ## SPDX-License-Identifier: GPL-2.0-only |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 5 | |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 6 | mainmenu "coreboot configuration" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 7 | |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 8 | menu "General setup" |
| 9 | |
Lee Leahy | bb70c40 | 2017-04-03 07:38:20 -0700 | [diff] [blame] | 10 | config COREBOOT_BUILD |
| 11 | bool |
| 12 | default y |
| 13 | |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 14 | config LOCALVERSION |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 15 | string "Local version string" |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 16 | help |
| 17 | Append an extra string to the end of the coreboot version. |
| 18 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 19 | This can be useful if, for instance, you want to append the |
| 20 | respective board's hostname or some other identifying string to |
| 21 | the coreboot version number, so that you can easily distinguish |
| 22 | boot logs of different boards from each other. |
| 23 | |
Arthur Heymans | 6f75154 | 2019-06-08 11:28:52 +0200 | [diff] [blame] | 24 | config CONFIGURABLE_CBFS_PREFIX |
| 25 | bool |
| 26 | help |
| 27 | Select this to prompt to use to configure the prefix for cbfs files. |
| 28 | |
Arthur Heymans | 6010eb2 | 2019-10-06 13:34:20 +0200 | [diff] [blame] | 29 | choice |
| 30 | prompt "CBFS prefix to use" |
| 31 | depends on CONFIGURABLE_CBFS_PREFIX |
| 32 | default CBFS_PREFIX_FALLBACK |
| 33 | |
| 34 | config CBFS_PREFIX_FALLBACK |
| 35 | bool "fallback" |
| 36 | |
| 37 | config CBFS_PREFIX_NORMAL |
| 38 | bool "normal" |
| 39 | |
| 40 | config CBFS_PREFIX_DIY |
| 41 | bool "Define your own cbfs prefix" |
| 42 | |
| 43 | endchoice |
| 44 | |
Patrick Georgi | 4b8a241 | 2010-02-09 19:35:16 +0000 | [diff] [blame] | 45 | config CBFS_PREFIX |
Arthur Heymans | 6010eb2 | 2019-10-06 13:34:20 +0200 | [diff] [blame] | 46 | string "CBFS prefix to use" if CBFS_PREFIX_DIY |
| 47 | default "fallback" if !CONFIGURABLE_CBFS_PREFIX || CBFS_PREFIX_FALLBACK |
| 48 | default "normal" if CBFS_PREFIX_NORMAL |
Patrick Georgi | 4b8a241 | 2010-02-09 19:35:16 +0000 | [diff] [blame] | 49 | help |
| 50 | Select the prefix to all files put into the image. It's "fallback" |
| 51 | by default, "normal" is a common alternative. |
| 52 | |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 53 | choice |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 54 | prompt "Compiler to use" |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 55 | default COMPILER_GCC |
| 56 | help |
| 57 | This option allows you to select the compiler used for building |
| 58 | coreboot. |
Martin Roth | a5a628e8 | 2016-01-19 12:01:09 -0700 | [diff] [blame] | 59 | You must build the coreboot crosscompiler for the board that you |
| 60 | have selected. |
| 61 | |
| 62 | To build all the GCC crosscompilers (takes a LONG time), run: |
| 63 | make crossgcc |
| 64 | |
| 65 | For help on individual architectures, run the command: |
| 66 | make help_toolchain |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 67 | |
| 68 | config COMPILER_GCC |
| 69 | bool "GCC" |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 70 | help |
| 71 | Use the GNU Compiler Collection (GCC) to build coreboot. |
| 72 | |
| 73 | For details see http://gcc.gnu.org. |
| 74 | |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 75 | config COMPILER_LLVM_CLANG |
Martin Roth | a5a628e8 | 2016-01-19 12:01:09 -0700 | [diff] [blame] | 76 | bool "LLVM/clang (TESTING ONLY - Not currently working)" |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 77 | help |
Martin Roth | a5a628e8 | 2016-01-19 12:01:09 -0700 | [diff] [blame] | 78 | Use LLVM/clang to build coreboot. To use this, you must build the |
| 79 | coreboot version of the clang compiler. Run the command |
| 80 | make clang |
| 81 | Note that this option is not currently working correctly and should |
| 82 | really only be selected if you're trying to work on getting clang |
| 83 | operational. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 84 | |
| 85 | For details see http://clang.llvm.org. |
| 86 | |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 87 | endchoice |
| 88 | |
Patrick Georgi | 9b0de71 | 2013-12-29 18:45:23 +0100 | [diff] [blame] | 89 | config ANY_TOOLCHAIN |
| 90 | bool "Allow building with any toolchain" |
| 91 | default n |
Patrick Georgi | 9b0de71 | 2013-12-29 18:45:23 +0100 | [diff] [blame] | 92 | help |
| 93 | Many toolchains break when building coreboot since it uses quite |
| 94 | unusual linker features. Unless developers explicitely request it, |
| 95 | we'll have to assume that they use their distro compiler by mistake. |
| 96 | Make sure that using patched compilers is a conscious decision. |
| 97 | |
Patrick Georgi | 516a2a7 | 2010-03-25 21:45:25 +0000 | [diff] [blame] | 98 | config CCACHE |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 99 | bool "Use ccache to speed up (re)compilation" |
Patrick Georgi | 516a2a7 | 2010-03-25 21:45:25 +0000 | [diff] [blame] | 100 | default n |
| 101 | help |
| 102 | Enables the use of ccache for faster builds. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 103 | |
| 104 | Requires the ccache utility in your system $PATH. |
| 105 | |
| 106 | For details see https://ccache.samba.org. |
Patrick Georgi | 516a2a7 | 2010-03-25 21:45:25 +0000 | [diff] [blame] | 107 | |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 108 | config FMD_GENPARSER |
| 109 | bool "Generate flashmap descriptor parser using flex and bison" |
| 110 | default n |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 111 | help |
| 112 | Enable this option if you are working on the flashmap descriptor |
| 113 | parser and made changes to fmd_scanner.l or fmd_parser.y. |
| 114 | |
| 115 | Otherwise, say N to use the provided pregenerated scanner/parser. |
| 116 | |
Martin Roth | f411b70 | 2017-04-09 19:12:42 -0600 | [diff] [blame] | 117 | config UTIL_GENPARSER |
Denis 'GNUtoo' Carikli | 780e931 | 2018-01-10 14:35:55 +0100 | [diff] [blame] | 118 | bool "Generate SCONFIG & BINCFG parser using flex and bison" |
Stefan Reinauer | 9bf7810 | 2010-08-09 13:28:18 +0000 | [diff] [blame] | 119 | default n |
Stefan Reinauer | 9bf7810 | 2010-08-09 13:28:18 +0000 | [diff] [blame] | 120 | help |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 121 | Enable this option if you are working on the sconfig device tree |
Denis 'GNUtoo' Carikli | 780e931 | 2018-01-10 14:35:55 +0100 | [diff] [blame] | 122 | parser or bincfg and made changes to the .l or .y files. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 123 | |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 124 | Otherwise, say N to use the provided pregenerated scanner/parser. |
Stefan Reinauer | 9bf7810 | 2010-08-09 13:28:18 +0000 | [diff] [blame] | 125 | |
Joe Korty | 6d77252 | 2010-05-19 18:41:15 +0000 | [diff] [blame] | 126 | config USE_OPTION_TABLE |
| 127 | bool "Use CMOS for configuration values" |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 128 | depends on HAVE_OPTION_TABLE |
Joe Korty | 6d77252 | 2010-05-19 18:41:15 +0000 | [diff] [blame] | 129 | help |
| 130 | Enable this option if coreboot shall read options from the "CMOS" |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 131 | NVRAM instead of using hard-coded values. |
Joe Korty | 6d77252 | 2010-05-19 18:41:15 +0000 | [diff] [blame] | 132 | |
Timothy Pearson | f20c6e8 | 2015-02-14 16:15:31 -0600 | [diff] [blame] | 133 | config STATIC_OPTION_TABLE |
| 134 | bool "Load default configuration values into CMOS on each boot" |
Timothy Pearson | f20c6e8 | 2015-02-14 16:15:31 -0600 | [diff] [blame] | 135 | depends on USE_OPTION_TABLE |
| 136 | help |
| 137 | Enable this option to reset "CMOS" NVRAM values to default on |
| 138 | every boot. Use this if you want the NVRAM configuration to |
| 139 | never be modified from its default values. |
| 140 | |
Sven Schnelle | 8eee19d | 2011-05-02 19:53:04 +0000 | [diff] [blame] | 141 | config COMPRESS_RAMSTAGE |
| 142 | bool "Compress ramstage with LZMA" |
Subrata Banik | b5962a9 | 2019-06-08 12:29:02 +0530 | [diff] [blame] | 143 | depends on HAVE_RAMSTAGE |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 144 | # Default value set at the end of the file |
Sven Schnelle | 8eee19d | 2011-05-02 19:53:04 +0000 | [diff] [blame] | 145 | help |
Arthur Heymans | 7f22933 | 2019-11-08 11:59:25 +0100 | [diff] [blame] | 146 | Compress ramstage to save memory in the flash image. |
Sven Schnelle | 8eee19d | 2011-05-02 19:53:04 +0000 | [diff] [blame] | 147 | |
Julius Werner | 09f2921 | 2015-09-29 13:51:35 -0700 | [diff] [blame] | 148 | config COMPRESS_PRERAM_STAGES |
| 149 | bool "Compress romstage and verstage with LZ4" |
Subrata Banik | b5962a9 | 2019-06-08 12:29:02 +0530 | [diff] [blame] | 150 | depends on !ARCH_X86 && (HAVE_ROMSTAGE || HAVE_VERSTAGE) |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 151 | # Default value set at the end of the file |
Julius Werner | 09f2921 | 2015-09-29 13:51:35 -0700 | [diff] [blame] | 152 | help |
| 153 | Compress romstage and (if it exists) verstage with LZ4 to save flash |
| 154 | space and speed up boot, since the time for reading the image from SPI |
| 155 | (and in the vboot case verifying it) is usually much greater than the |
| 156 | time spent decompressing. Doesn't work for XIP stages (assume all |
| 157 | ARCH_X86 for now) for obvious reasons. |
| 158 | |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 159 | config COMPRESS_BOOTBLOCK |
| 160 | bool |
Subrata Banik | b5962a9 | 2019-06-08 12:29:02 +0530 | [diff] [blame] | 161 | depends on HAVE_BOOTBLOCK |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 162 | help |
| 163 | This option can be used to compress the bootblock with LZ4 and attach |
| 164 | a small self-decompression stub to its front. This can drastically |
| 165 | reduce boot time on platforms where the bootblock is loaded over a |
| 166 | very slow connection and bootblock size trumps all other factors for |
Jonathan Neuschäfer | 2930a72 | 2018-09-29 17:42:52 +0200 | [diff] [blame] | 167 | speed. Since using this option usually requires changes to the |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 168 | SoC memlayout and possibly extra support code, it should not be |
| 169 | user-selectable. (There's no real point in offering this to the user |
| 170 | anyway... if it works and saves boot time, you would always want it.) |
| 171 | |
Cristian Măgherușan-Stanciu | d367b00 | 2011-06-19 03:03:28 +0200 | [diff] [blame] | 172 | config INCLUDE_CONFIG_FILE |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 173 | bool "Include the coreboot .config file into the ROM image" |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 174 | # Default value set at the end of the file |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 175 | help |
| 176 | Include the .config file that was used to compile coreboot |
| 177 | in the (CBFS) ROM image. This is useful if you want to know which |
| 178 | options were used to build a specific coreboot.rom image. |
| 179 | |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 180 | Saying Y here will increase the image size by 2-3KB. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 181 | |
| 182 | You can use the following command to easily list the options: |
| 183 | |
| 184 | grep -a CONFIG_ coreboot.rom |
| 185 | |
| 186 | Alternatively, you can also use cbfstool to print the image |
| 187 | contents (including the raw 'config' item we're looking for). |
| 188 | |
| 189 | Example: |
| 190 | |
| 191 | $ cbfstool coreboot.rom print |
| 192 | coreboot.rom: 4096 kB, bootblocksize 1008, romsize 4194304, |
| 193 | offset 0x0 |
| 194 | Alignment: 64 bytes |
Steve Goodrich | f026912 | 2012-05-18 11:18:47 -0600 | [diff] [blame] | 195 | |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 196 | Name Offset Type Size |
Elyes HAOUAS | 2119d0b | 2020-02-16 10:01:33 +0100 | [diff] [blame] | 197 | cmos_layout.bin 0x0 CMOS layout 1159 |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 198 | fallback/romstage 0x4c0 stage 339756 |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 199 | fallback/ramstage 0x53440 stage 186664 |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 200 | fallback/payload 0x80dc0 payload 51526 |
| 201 | config 0x8d740 raw 3324 |
| 202 | (empty) 0x8e480 null 3610440 |
Cristian Măgherușan-Stanciu | d367b00 | 2011-06-19 03:03:28 +0200 | [diff] [blame] | 203 | |
Vadim Bendebury | 9202473d | 2011-09-21 14:46:43 -0700 | [diff] [blame] | 204 | config COLLECT_TIMESTAMPS |
| 205 | bool "Create a table of timestamps collected during boot" |
Paul Menzel | 4e4a763 | 2015-10-11 11:57:44 +0200 | [diff] [blame] | 206 | default y if ARCH_X86 |
Vadim Bendebury | 9202473d | 2011-09-21 14:46:43 -0700 | [diff] [blame] | 207 | help |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 208 | Make coreboot create a table of timer-ID/timer-value pairs to |
| 209 | allow measuring time spent at different phases of the boot process. |
| 210 | |
Martin Roth | b22bbe2 | 2018-03-07 15:32:16 -0700 | [diff] [blame] | 211 | config TIMESTAMPS_ON_CONSOLE |
| 212 | bool "Print the timestamp values on the console" |
| 213 | default n |
| 214 | depends on COLLECT_TIMESTAMPS |
| 215 | help |
Kyösti Mälkki | 8b93cb7 | 2020-01-09 08:41:46 +0200 | [diff] [blame] | 216 | Print the timestamps to the debug console if enabled at level info. |
Martin Roth | b22bbe2 | 2018-03-07 15:32:16 -0700 | [diff] [blame] | 217 | |
Patrick Georgi | 7e9b9d8 | 2012-04-30 21:06:10 +0200 | [diff] [blame] | 218 | config USE_BLOBS |
| 219 | bool "Allow use of binary-only repository" |
Felix Held | a6b887e | 2019-12-28 19:10:12 +0100 | [diff] [blame] | 220 | default y |
Patrick Georgi | 7e9b9d8 | 2012-04-30 21:06:10 +0200 | [diff] [blame] | 221 | help |
| 222 | This draws in the blobs repository, which contains binary files that |
| 223 | might be required for some chipsets or boards. |
| 224 | This flag ensures that a "Free" option remains available for users. |
| 225 | |
Marshall Dawson | 20ce400 | 2019-10-28 15:55:03 -0600 | [diff] [blame] | 226 | config USE_AMD_BLOBS |
| 227 | bool "Allow AMD blobs repository (with license agreement)" |
| 228 | depends on USE_BLOBS |
| 229 | help |
| 230 | This draws in the amd_blobs repository, which contains binary files |
| 231 | distributed by AMD, including VBIOS, PSP bootloaders, SMU firmwares, |
| 232 | etc. Selecting this item to download or clone the repo implies your |
| 233 | agreement to the AMD license agreement. A copy of the license text |
| 234 | may be reviewed by reading Documentation/soc/amd/amdblobs_license.md, |
| 235 | and your copy of the license is present in the repo once downloaded. |
| 236 | |
| 237 | Note that for some products, omitting PSP, SMU images, or other items |
| 238 | may result in a nonbooting coreboot.rom. |
| 239 | |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame] | 240 | config COVERAGE |
| 241 | bool "Code coverage support" |
| 242 | depends on COMPILER_GCC |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame] | 243 | help |
| 244 | Add code coverage support for coreboot. This will store code |
| 245 | coverage information in CBMEM for extraction from user space. |
| 246 | If unsure, say N. |
| 247 | |
Ryan Salsamendi | ab37e9a | 2017-06-11 21:07:31 -0700 | [diff] [blame] | 248 | config UBSAN |
| 249 | bool "Undefined behavior sanitizer support" |
| 250 | default n |
| 251 | help |
| 252 | Instrument the code with checks for undefined behavior. If unsure, |
| 253 | say N because it adds a small performance penalty and may abort |
| 254 | on code that happens to work in spite of the UB. |
| 255 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 256 | config RELOCATABLE_RAMSTAGE |
Kyösti Mälkki | 730df3c | 2016-06-18 07:39:31 +0300 | [diff] [blame] | 257 | bool |
Nico Huber | d83bd53 | 2019-12-08 12:05:21 +0100 | [diff] [blame] | 258 | default y if ARCH_X86 |
Vladimir Serbinenko | 633352c | 2015-05-30 22:21:37 +0200 | [diff] [blame] | 259 | select RELOCATABLE_MODULES |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 260 | help |
| 261 | The reloctable ramstage support allows for the ramstage to be built |
| 262 | as a relocatable module. The stage loader can identify a place |
| 263 | out of the OS way so that copying memory is unnecessary during an S3 |
| 264 | wake. When selecting this option the romstage is responsible for |
| 265 | determing a stack location to use for loading the ramstage. |
| 266 | |
Kyösti Mälkki | 6766f4f | 2019-12-18 00:19:06 +0200 | [diff] [blame] | 267 | choice |
| 268 | prompt "Stage Cache for ACPI S3 resume" |
| 269 | default NO_STAGE_CACHE if !HAVE_ACPI_RESUME || !RELOCATABLE_RAMSTAGE |
| 270 | default TSEG_STAGE_CACHE if SMM_TSEG |
| 271 | |
| 272 | config NO_STAGE_CACHE |
| 273 | bool "Disabled" |
| 274 | help |
| 275 | Do not save any component in stage cache for resume path. On resume, |
| 276 | all components would be read back from CBFS again. |
| 277 | |
Kyösti Mälkki | 0a4457f | 2019-08-01 20:29:14 +0300 | [diff] [blame] | 278 | config TSEG_STAGE_CACHE |
Kyösti Mälkki | 6766f4f | 2019-12-18 00:19:06 +0200 | [diff] [blame] | 279 | bool "TSEG" |
| 280 | depends on SMM_TSEG |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 281 | help |
Kyösti Mälkki | 0a4457f | 2019-08-01 20:29:14 +0300 | [diff] [blame] | 282 | The option enables stage cache support for platform. Platform |
| 283 | can stash copies of postcar, ramstage and raw runtime data |
| 284 | inside SMM TSEG, to be restored on S3 resume path. |
| 285 | |
| 286 | config CBMEM_STAGE_CACHE |
Kyösti Mälkki | 6766f4f | 2019-12-18 00:19:06 +0200 | [diff] [blame] | 287 | bool "CBMEM" |
| 288 | depends on !SMM_TSEG |
Kyösti Mälkki | 0a4457f | 2019-08-01 20:29:14 +0300 | [diff] [blame] | 289 | help |
| 290 | The option enables stage cache support for platform. Platform |
| 291 | can stash copies of postcar, ramstage and raw runtime data |
| 292 | inside CBMEM. |
| 293 | |
| 294 | While the approach is faster than reloading stages from boot media |
| 295 | it is also a possible attack scenario via which OS can possibly |
| 296 | circumvent SMM locks and SPI write protections. |
| 297 | |
| 298 | If unsure, select 'N' |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 299 | |
Kyösti Mälkki | 6766f4f | 2019-12-18 00:19:06 +0200 | [diff] [blame] | 300 | endchoice |
| 301 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 302 | config UPDATE_IMAGE |
| 303 | bool "Update existing coreboot.rom image" |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 304 | help |
| 305 | If this option is enabled, no new coreboot.rom file |
| 306 | is created. Instead it is expected that there already |
| 307 | is a suitable file for further processing. |
| 308 | The bootblock will not be modified. |
| 309 | |
Martin Roth | 5942e06 | 2016-01-20 14:59:21 -0700 | [diff] [blame] | 310 | If unsure, select 'N' |
| 311 | |
Konstantin Aladyshev | 6544cb3 | 2015-01-24 18:52:10 +0400 | [diff] [blame] | 312 | config BOOTSPLASH_IMAGE |
| 313 | bool "Add a bootsplash image" |
| 314 | help |
| 315 | Select this option if you have a bootsplash image that you would |
| 316 | like to add to your ROM. |
| 317 | |
| 318 | This will only add the image to the ROM. To actually run it check |
| 319 | options under 'Display' section. |
| 320 | |
| 321 | config BOOTSPLASH_FILE |
| 322 | string "Bootsplash path and filename" |
| 323 | depends on BOOTSPLASH_IMAGE |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 324 | # Default value set at the end of the file |
Konstantin Aladyshev | 6544cb3 | 2015-01-24 18:52:10 +0400 | [diff] [blame] | 325 | help |
| 326 | The path and filename of the file to use as graphical bootsplash |
| 327 | screen. The file format has to be jpg. |
| 328 | |
Nico Huber | 94cdec6 | 2019-06-06 19:36:02 +0200 | [diff] [blame] | 329 | config HAVE_RAMPAYLOAD |
| 330 | bool |
| 331 | |
Subrata Banik | 7e893a0 | 2019-05-06 14:17:41 +0530 | [diff] [blame] | 332 | config RAMPAYLOAD |
| 333 | bool "Enable coreboot flow without executing ramstage" |
Subrata Banik | 86dbe0f | 2019-06-28 18:18:37 +0530 | [diff] [blame] | 334 | default y if ARCH_X86 |
Nico Huber | 94cdec6 | 2019-06-06 19:36:02 +0200 | [diff] [blame] | 335 | depends on HAVE_RAMPAYLOAD |
Subrata Banik | 7e893a0 | 2019-05-06 14:17:41 +0530 | [diff] [blame] | 336 | help |
| 337 | If this option is enabled, coreboot flow will skip ramstage |
| 338 | loading and execution of ramstage to load payload. |
| 339 | |
| 340 | Instead it is expected to load payload from postcar stage itself. |
| 341 | |
| 342 | In this flow coreboot will perform basic x86 initialization |
| 343 | (DRAM resource allocation), MTRR programming, |
| 344 | Skip PCI enumeration logic and only allocate BAR for fixed devices |
| 345 | (bootable devices, TPM over GSPI). |
| 346 | |
Subrata Banik | 37bead6 | 2020-02-09 19:13:52 +0530 | [diff] [blame] | 347 | config HAVE_CONFIGURABLE_RAMSTAGE |
| 348 | bool |
| 349 | |
Ronald G. Minnich | 466ca2c | 2019-10-22 02:02:24 +0000 | [diff] [blame] | 350 | config CONFIGURABLE_RAMSTAGE |
| 351 | bool "Enable a configurable ramstage." |
| 352 | default y if ARCH_X86 |
Subrata Banik | 37bead6 | 2020-02-09 19:13:52 +0530 | [diff] [blame] | 353 | depends on HAVE_CONFIGURABLE_RAMSTAGE |
Ronald G. Minnich | 466ca2c | 2019-10-22 02:02:24 +0000 | [diff] [blame] | 354 | help |
| 355 | A configurable ramstage allows you to select which parts of the ramstage |
| 356 | to run. Currently, we can only select a minimal PCI scanning step. |
| 357 | The minimal PCI scanning will only check those parts that are enabled |
| 358 | in the devicetree.cb. By convention none of those devices should be bridges. |
| 359 | |
| 360 | config MINIMAL_PCI_SCANNING |
| 361 | bool "Enable minimal PCI scanning" |
Subrata Banik | 1cb26a6 | 2020-02-09 19:35:16 +0530 | [diff] [blame] | 362 | depends on CONFIGURABLE_RAMSTAGE && PCI |
Ronald G. Minnich | 466ca2c | 2019-10-22 02:02:24 +0000 | [diff] [blame] | 363 | help |
Subrata Banik | 1cb26a6 | 2020-02-09 19:35:16 +0530 | [diff] [blame] | 364 | If this option is enabled, coreboot will scan only PCI devices |
Ronald G. Minnich | 466ca2c | 2019-10-22 02:02:24 +0000 | [diff] [blame] | 365 | marked as mandatory in devicetree.cb |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 366 | endmenu |
| 367 | |
Martin Roth | 026e4dc | 2015-06-19 23:17:15 -0600 | [diff] [blame] | 368 | menu "Mainboard" |
| 369 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 370 | source "src/mainboard/Kconfig" |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 371 | |
Marshall Dawson | e937513 | 2016-09-04 08:38:33 -0600 | [diff] [blame] | 372 | config DEVICETREE |
| 373 | string |
| 374 | default "devicetree.cb" |
| 375 | help |
| 376 | This symbol allows mainboards to select a different file under their |
| 377 | mainboard directory for the devicetree.cb file. This allows the board |
| 378 | variants that need different devicetrees to be in the same directory. |
| 379 | |
| 380 | Examples: "devicetree.variant.cb" |
| 381 | "variant/devicetree.cb" |
| 382 | |
Furquan Shaikh | f241998 | 2018-06-21 18:50:48 -0700 | [diff] [blame] | 383 | config OVERRIDE_DEVICETREE |
| 384 | string |
| 385 | default "" |
| 386 | help |
| 387 | This symbol allows variants to provide an override devicetree file to |
| 388 | override the registers and/or add new devices on top of the ones |
| 389 | provided by baseboard devicetree using CONFIG_DEVICETREE. |
| 390 | |
| 391 | Examples: "devicetree.variant-override.cb" |
| 392 | "variant/devicetree-override.cb" |
| 393 | |
Patrick Georgi | 8a3592e | 2015-09-16 18:10:52 +0200 | [diff] [blame] | 394 | config FMDFILE |
| 395 | string "fmap description file in fmd format" |
Patrick Georgi | 5d7ab39 | 2015-12-12 00:23:15 +0100 | [diff] [blame] | 396 | default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS |
Patrick Georgi | 8a3592e | 2015-09-16 18:10:52 +0200 | [diff] [blame] | 397 | default "" |
| 398 | help |
| 399 | The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE, |
| 400 | but in some cases more complex setups are required. |
| 401 | When an fmd is specified, it overrides the default format. |
| 402 | |
Arthur Heymans | 965881b | 2019-09-25 13:18:52 +0200 | [diff] [blame] | 403 | config CBFS_SIZE |
| 404 | hex "Size of CBFS filesystem in ROM" |
| 405 | depends on FMDFILE = "" |
| 406 | # Default value set at the end of the file |
| 407 | help |
| 408 | This is the part of the ROM actually managed by CBFS, located at the |
| 409 | end of the ROM (passed through cbfstool -o) on x86 and at at the start |
| 410 | of the ROM (passed through cbfstool -s) everywhere else. It defaults |
| 411 | to span the whole ROM on all but Intel systems that use an Intel Firmware |
| 412 | Descriptor. It can be overridden to make coreboot live alongside other |
| 413 | components like ChromeOS's vboot/FMAP or Intel's IFD / ME / TXE |
| 414 | binaries. This symbol should only be used to generate a default FMAP and |
| 415 | is unused when a non-default fmd file is provided via CONFIG_FMDFILE. |
| 416 | |
Martin Roth | da1ca20 | 2015-12-26 16:51:16 -0700 | [diff] [blame] | 417 | endmenu |
| 418 | |
Martin Roth | b09a569 | 2016-01-24 19:38:33 -0700 | [diff] [blame] | 419 | # load site-local kconfig to allow user specific defaults and overrides |
| 420 | source "site-local/Kconfig" |
| 421 | |
Vladimir Serbinenko | a9db82f | 2014-10-16 13:21:47 +0200 | [diff] [blame] | 422 | config SYSTEM_TYPE_LAPTOP |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 423 | default n |
| 424 | bool |
Vladimir Serbinenko | a9db82f | 2014-10-16 13:21:47 +0200 | [diff] [blame] | 425 | |
Duncan Laurie | 8312df4 | 2019-02-01 11:33:57 -0800 | [diff] [blame] | 426 | config SYSTEM_TYPE_TABLET |
| 427 | default n |
| 428 | bool |
| 429 | |
| 430 | config SYSTEM_TYPE_DETACHABLE |
| 431 | default n |
| 432 | bool |
| 433 | |
| 434 | config SYSTEM_TYPE_CONVERTIBLE |
| 435 | default n |
| 436 | bool |
| 437 | |
Werner Zeh | c0fb361 | 2016-01-14 15:08:36 +0100 | [diff] [blame] | 438 | config CBFS_AUTOGEN_ATTRIBUTES |
| 439 | default n |
| 440 | bool |
| 441 | help |
| 442 | If this option is selected, every file in cbfs which has a constraint |
| 443 | regarding position or alignment will get an additional file attribute |
| 444 | which describes this constraint. |
| 445 | |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 446 | menu "Chipset" |
| 447 | |
Duncan Laurie | d211976 | 2015-06-08 18:11:56 -0700 | [diff] [blame] | 448 | comment "SoC" |
Chris Ching | aa8e5d3 | 2017-10-20 10:43:39 -0600 | [diff] [blame] | 449 | source "src/soc/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 450 | comment "CPU" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 451 | source "src/cpu/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 452 | comment "Northbridge" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 453 | source "src/northbridge/*/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 454 | comment "Southbridge" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 455 | source "src/southbridge/*/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 456 | comment "Super I/O" |
Omar Pakker | 57603e2 | 2016-07-29 23:31:45 +0200 | [diff] [blame] | 457 | source "src/superio/*/*/Kconfig" |
Sven Schnelle | 7592e8b | 2011-01-27 11:43:03 +0000 | [diff] [blame] | 458 | comment "Embedded Controllers" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 459 | source "src/ec/acpi/Kconfig" |
| 460 | source "src/ec/*/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 461 | |
Martin Roth | 59aa2b1 | 2015-06-20 16:17:12 -0600 | [diff] [blame] | 462 | source "src/southbridge/intel/common/firmware/Kconfig" |
Martin Roth | e1523ec | 2015-06-19 22:30:43 -0600 | [diff] [blame] | 463 | source "src/vendorcode/*/Kconfig" |
Martin Roth | 59aa2b1 | 2015-06-20 16:17:12 -0600 | [diff] [blame] | 464 | |
Martin Roth | e1523ec | 2015-06-19 22:30:43 -0600 | [diff] [blame] | 465 | source "src/arch/*/Kconfig" |
| 466 | |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 467 | endmenu |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 468 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 469 | source "src/device/Kconfig" |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 470 | |
Rudolf Marek | d9c2549 | 2010-05-16 15:31:53 +0000 | [diff] [blame] | 471 | menu "Generic Drivers" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 472 | source "src/drivers/*/Kconfig" |
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 473 | source "src/drivers/*/*/Kconfig" |
Lee Leahy | 48dbc66 | 2017-05-08 16:56:03 -0700 | [diff] [blame] | 474 | source "src/commonlib/storage/Kconfig" |
Rudolf Marek | d9c2549 | 2010-05-16 15:31:53 +0000 | [diff] [blame] | 475 | endmenu |
| 476 | |
Philipp Deppenwiese | 1899fbe | 2017-10-16 17:09:33 +0200 | [diff] [blame] | 477 | menu "Security" |
| 478 | |
| 479 | source "src/security/Kconfig" |
Wim Vervoorn | e32d16f | 2019-11-14 14:10:28 +0100 | [diff] [blame] | 480 | source "src/vendorcode/eltan/security/Kconfig" |
Philipp Deppenwiese | 1899fbe | 2017-10-16 17:09:33 +0200 | [diff] [blame] | 481 | |
| 482 | endmenu |
| 483 | |
Martin Roth | 09210a1 | 2016-05-17 11:28:23 -0600 | [diff] [blame] | 484 | source "src/acpi/Kconfig" |
| 485 | |
Aaron Durbin | 4a36c4e | 2016-08-11 11:02:26 -0500 | [diff] [blame] | 486 | # This option is for the current boards/chipsets where SPI flash |
| 487 | # is not the boot device. Currently nearly all boards/chipsets assume |
| 488 | # SPI flash is the boot device. |
| 489 | config BOOT_DEVICE_NOT_SPI_FLASH |
| 490 | bool |
| 491 | default n |
| 492 | |
| 493 | config BOOT_DEVICE_SPI_FLASH |
| 494 | bool |
| 495 | default y if !BOOT_DEVICE_NOT_SPI_FLASH |
| 496 | default n |
| 497 | |
Aaron Durbin | 16c173f | 2016-08-11 14:04:10 -0500 | [diff] [blame] | 498 | config BOOT_DEVICE_MEMORY_MAPPED |
| 499 | bool |
| 500 | default y if ARCH_X86 && BOOT_DEVICE_SPI_FLASH |
| 501 | default n |
| 502 | help |
| 503 | Inform system if SPI is memory-mapped or not. |
| 504 | |
Aaron Durbin | e8e118d | 2016-08-12 15:00:10 -0500 | [diff] [blame] | 505 | config BOOT_DEVICE_SUPPORTS_WRITES |
| 506 | bool |
| 507 | default n |
| 508 | help |
| 509 | Indicate that the platform has writable boot device |
| 510 | support. |
| 511 | |
Patrick Georgi | 0770f25 | 2015-04-22 13:28:21 +0200 | [diff] [blame] | 512 | config RTC |
| 513 | bool |
| 514 | default n |
| 515 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 516 | config HEAP_SIZE |
| 517 | hex |
Marty E. Plummer | 0987e43 | 2019-04-22 20:46:27 -0500 | [diff] [blame] | 518 | default 0x100000 if FLATTENED_DEVICE_TREE |
Myles Watson | 04000f4 | 2009-10-16 19:12:49 +0000 | [diff] [blame] | 519 | default 0x4000 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 520 | |
Julius Werner | c3e7c4e | 2014-09-19 13:18:16 -0700 | [diff] [blame] | 521 | config STACK_SIZE |
| 522 | hex |
Julius Werner | 66a476a | 2015-10-12 16:45:21 -0700 | [diff] [blame] | 523 | default 0x1000 if ARCH_X86 |
| 524 | default 0x0 |
Julius Werner | c3e7c4e | 2014-09-19 13:18:16 -0700 | [diff] [blame] | 525 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 526 | config MAX_CPUS |
| 527 | int |
| 528 | default 1 |
| 529 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 530 | source "src/console/Kconfig" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 531 | |
| 532 | config HAVE_ACPI_RESUME |
| 533 | bool |
| 534 | default n |
Kyösti Mälkki | 7cd2c07 | 2018-06-03 23:04:28 +0300 | [diff] [blame] | 535 | depends on RELOCATABLE_RAMSTAGE |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 536 | |
Wim Vervoorn | bccc7e7 | 2020-01-15 11:31:25 +0100 | [diff] [blame] | 537 | config DISABLE_ACPI_HIBERNATE |
| 538 | bool |
| 539 | default n |
| 540 | help |
| 541 | Removes S4 from the available sleepstates |
| 542 | |
Aaron Durbin | 87c9fae | 2016-01-22 15:26:04 -0600 | [diff] [blame] | 543 | config RESUME_PATH_SAME_AS_BOOT |
| 544 | bool |
| 545 | default y if ARCH_X86 |
| 546 | depends on HAVE_ACPI_RESUME |
| 547 | help |
| 548 | This option indicates that when a system resumes it takes the |
| 549 | same path as a regular boot. e.g. an x86 system runs from the |
| 550 | reset vector at 0xfffffff0 on both resume and warm/cold boot. |
| 551 | |
Kyösti Mälkki | 76c4386 | 2019-07-01 17:25:41 +0300 | [diff] [blame] | 552 | config NO_MONOTONIC_TIMER |
Aaron Durbin | a421791 | 2013-04-29 22:31:51 -0500 | [diff] [blame] | 553 | def_bool n |
Kyösti Mälkki | 76c4386 | 2019-07-01 17:25:41 +0300 | [diff] [blame] | 554 | |
| 555 | config HAVE_MONOTONIC_TIMER |
| 556 | bool |
| 557 | depends on !NO_MONOTONIC_TIMER |
Kyösti Mälkki | b28b6b5 | 2019-07-01 15:38:25 +0300 | [diff] [blame] | 558 | default y |
Aaron Durbin | a421791 | 2013-04-29 22:31:51 -0500 | [diff] [blame] | 559 | help |
| 560 | The board/chipset provides a monotonic timer. |
| 561 | |
Aaron Durbin | e5e3630 | 2014-09-25 10:05:15 -0500 | [diff] [blame] | 562 | config GENERIC_UDELAY |
Kyösti Mälkki | 76c4386 | 2019-07-01 17:25:41 +0300 | [diff] [blame] | 563 | bool |
Aaron Durbin | e5e3630 | 2014-09-25 10:05:15 -0500 | [diff] [blame] | 564 | depends on HAVE_MONOTONIC_TIMER |
Kyösti Mälkki | 76c4386 | 2019-07-01 17:25:41 +0300 | [diff] [blame] | 565 | default y if !ARCH_X86 |
Aaron Durbin | e5e3630 | 2014-09-25 10:05:15 -0500 | [diff] [blame] | 566 | help |
| 567 | The board/chipset uses a generic udelay function utilizing the |
| 568 | monotonic timer. |
| 569 | |
Aaron Durbin | 340ca91 | 2013-04-30 09:58:12 -0500 | [diff] [blame] | 570 | config TIMER_QUEUE |
| 571 | def_bool n |
| 572 | depends on HAVE_MONOTONIC_TIMER |
| 573 | help |
Kyösti Mälkki | ecd8424 | 2013-09-13 07:57:49 +0300 | [diff] [blame] | 574 | Provide a timer queue for performing time-based callbacks. |
Aaron Durbin | 340ca91 | 2013-04-30 09:58:12 -0500 | [diff] [blame] | 575 | |
Aaron Durbin | 4409a5e | 2013-05-06 12:20:52 -0500 | [diff] [blame] | 576 | config COOP_MULTITASKING |
| 577 | def_bool n |
Aaron Durbin | 38c326d | 2013-05-06 12:22:23 -0500 | [diff] [blame] | 578 | depends on TIMER_QUEUE && ARCH_X86 |
Aaron Durbin | 4409a5e | 2013-05-06 12:20:52 -0500 | [diff] [blame] | 579 | help |
| 580 | Cooperative multitasking allows callbacks to be multiplexed on the |
| 581 | main thread of ramstage. With this enabled it allows for multiple |
| 582 | execution paths to take place when they have udelay() calls within |
| 583 | their code. |
| 584 | |
| 585 | config NUM_THREADS |
| 586 | int |
| 587 | default 4 |
| 588 | depends on COOP_MULTITASKING |
| 589 | help |
| 590 | How many execution threads to cooperatively multitask with. |
| 591 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 592 | config HAVE_OPTION_TABLE |
| 593 | bool |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 594 | default n |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 595 | help |
| 596 | This variable specifies whether a given board has a cmos.layout |
| 597 | file containing NVRAM/CMOS bit definitions. |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 598 | It defaults to 'n' but can be selected in mainboard/*/Kconfig. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 599 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 600 | config PCI_IO_CFG_EXT |
| 601 | bool |
| 602 | default n |
| 603 | |
| 604 | config IOAPIC |
| 605 | bool |
| 606 | default n |
| 607 | |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 608 | config USE_WATCHDOG_ON_BOOT |
| 609 | bool |
| 610 | default n |
| 611 | |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 612 | config GFXUMA |
| 613 | bool |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 614 | default n |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 615 | help |
| 616 | Enable Unified Memory Architecture for graphics. |
| 617 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 618 | config HAVE_MP_TABLE |
| 619 | bool |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 620 | help |
| 621 | This variable specifies whether a given board has MP table support. |
| 622 | It is usually set in mainboard/*/Kconfig. |
| 623 | Whether or not the MP table is actually generated by coreboot |
| 624 | is configurable by the user via GENERATE_MP_TABLE. |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 625 | |
| 626 | config HAVE_PIRQ_TABLE |
| 627 | bool |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 628 | help |
| 629 | This variable specifies whether a given board has PIRQ table support. |
| 630 | It is usually set in mainboard/*/Kconfig. |
| 631 | Whether or not the PIRQ table is actually generated by coreboot |
| 632 | is configurable by the user via GENERATE_PIRQ_TABLE. |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 633 | |
Vladimir Serbinenko | c21e073 | 2014-10-16 12:48:19 +0200 | [diff] [blame] | 634 | config COMMON_FADT |
| 635 | bool |
| 636 | default n |
| 637 | |
Aaron Durbin | 9420a52 | 2015-11-17 16:31:00 -0600 | [diff] [blame] | 638 | config ACPI_NHLT |
| 639 | bool |
| 640 | default n |
| 641 | help |
| 642 | Build support for NHLT (non HD Audio) ACPI table generation. |
| 643 | |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 644 | #These Options are here to avoid "undefined" warnings. |
| 645 | #The actual selection and help texts are in the following menu. |
| 646 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 647 | menu "System tables" |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 648 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 649 | config GENERATE_MP_TABLE |
Stefan Reinauer | 56cd70b | 2012-11-13 17:33:08 -0800 | [diff] [blame] | 650 | prompt "Generate an MP table" if HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC |
| 651 | bool |
| 652 | default HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 653 | help |
| 654 | Generate an MP table (conforming to the Intel MultiProcessor |
| 655 | specification 1.4) for this board. |
| 656 | |
| 657 | If unsure, say Y. |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 658 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 659 | config GENERATE_PIRQ_TABLE |
Stefan Reinauer | 56cd70b | 2012-11-13 17:33:08 -0800 | [diff] [blame] | 660 | prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE |
| 661 | bool |
| 662 | default HAVE_PIRQ_TABLE |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 663 | help |
| 664 | Generate a PIRQ table for this board. |
| 665 | |
| 666 | If unsure, say Y. |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 667 | |
Sven Schnelle | 164bcfd | 2011-08-14 20:56:34 +0200 | [diff] [blame] | 668 | config GENERATE_SMBIOS_TABLES |
| 669 | depends on ARCH_X86 |
| 670 | bool "Generate SMBIOS tables" |
| 671 | default y |
| 672 | help |
| 673 | Generate SMBIOS tables for this board. |
| 674 | |
| 675 | If unsure, say Y. |
| 676 | |
Vladimir Serbinenko | 0afdec4 | 2015-05-30 23:08:26 +0200 | [diff] [blame] | 677 | config SMBIOS_PROVIDED_BY_MOBO |
| 678 | bool |
| 679 | default n |
| 680 | |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 681 | config MAINBOARD_SERIAL_NUMBER |
Nico Huber | ebd8a4f | 2017-11-01 09:49:16 +0100 | [diff] [blame] | 682 | prompt "SMBIOS Serial Number" if !SMBIOS_PROVIDED_BY_MOBO |
| 683 | string |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 684 | depends on GENERATE_SMBIOS_TABLES |
| 685 | default "123456789" |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 686 | help |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 687 | The Serial Number to store in SMBIOS structures. |
| 688 | |
| 689 | config MAINBOARD_VERSION |
Nico Huber | ebd8a4f | 2017-11-01 09:49:16 +0100 | [diff] [blame] | 690 | prompt "SMBIOS Version Number" if !SMBIOS_PROVIDED_BY_MOBO |
| 691 | string |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 692 | depends on GENERATE_SMBIOS_TABLES |
| 693 | default "1.0" |
| 694 | help |
| 695 | The Version Number to store in SMBIOS structures. |
| 696 | |
| 697 | config MAINBOARD_SMBIOS_MANUFACTURER |
Nico Huber | ebd8a4f | 2017-11-01 09:49:16 +0100 | [diff] [blame] | 698 | prompt "SMBIOS Manufacturer" if !SMBIOS_PROVIDED_BY_MOBO |
| 699 | string |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 700 | depends on GENERATE_SMBIOS_TABLES |
| 701 | default MAINBOARD_VENDOR |
| 702 | help |
| 703 | Override the default Manufacturer stored in SMBIOS structures. |
| 704 | |
| 705 | config MAINBOARD_SMBIOS_PRODUCT_NAME |
Nico Huber | ebd8a4f | 2017-11-01 09:49:16 +0100 | [diff] [blame] | 706 | prompt "SMBIOS Product name" if !SMBIOS_PROVIDED_BY_MOBO |
| 707 | string |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 708 | depends on GENERATE_SMBIOS_TABLES |
| 709 | default MAINBOARD_PART_NUMBER |
| 710 | help |
| 711 | Override the default Product name stored in SMBIOS structures. |
| 712 | |
Julien Viard de Galbert | 9d231a9 | 2018-02-28 13:39:55 +0100 | [diff] [blame] | 713 | config SMBIOS_ENCLOSURE_TYPE |
| 714 | hex |
| 715 | depends on GENERATE_SMBIOS_TABLES |
| 716 | default 0x09 if SYSTEM_TYPE_LAPTOP |
Duncan Laurie | 8312df4 | 2019-02-01 11:33:57 -0800 | [diff] [blame] | 717 | default 0x1e if SYSTEM_TYPE_TABLET |
| 718 | default 0x1f if SYSTEM_TYPE_CONVERTIBLE |
| 719 | default 0x20 if SYSTEM_TYPE_DETACHABLE |
Julien Viard de Galbert | 9d231a9 | 2018-02-28 13:39:55 +0100 | [diff] [blame] | 720 | default 0x03 |
| 721 | help |
| 722 | System Enclosure or Chassis Types as defined in SMBIOS specification. |
Duncan Laurie | 8312df4 | 2019-02-01 11:33:57 -0800 | [diff] [blame] | 723 | The default value is SMBIOS_ENCLOSURE_DESKTOP (0x03) but laptop, |
| 724 | convertible, or tablet enclosure will be used if the appropriate |
| 725 | system type is selected. |
Julien Viard de Galbert | 9d231a9 | 2018-02-28 13:39:55 +0100 | [diff] [blame] | 726 | |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 727 | endmenu |
| 728 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 729 | source "payloads/Kconfig" |
Peter Stuge | a758ca2 | 2009-09-17 16:21:31 +0000 | [diff] [blame] | 730 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 731 | menu "Debugging" |
| 732 | |
Nico Huber | d67edca | 2018-11-13 19:28:07 +0100 | [diff] [blame] | 733 | comment "CPU Debug Settings" |
Arthur Heymans | aae8190 | 2019-11-04 21:50:21 +0100 | [diff] [blame] | 734 | source "src/cpu/*/Kconfig.debug_cpu" |
Nico Huber | d67edca | 2018-11-13 19:28:07 +0100 | [diff] [blame] | 735 | |
Arthur Heymans | 71bd7e4 | 2019-10-20 14:20:53 +0200 | [diff] [blame] | 736 | comment "BLOB Debug Settings" |
| 737 | source "src/drivers/intel/fsp*/Kconfig.debug_blob" |
| 738 | |
Nico Huber | d67edca | 2018-11-13 19:28:07 +0100 | [diff] [blame] | 739 | comment "General Debug Settings" |
| 740 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 741 | # TODO: Better help text and detailed instructions. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 742 | config GDB_STUB |
Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 743 | bool "GDB debugging support" |
Rudolf Marek | 6588802 | 2012-03-25 20:51:16 +0200 | [diff] [blame] | 744 | default n |
Arthur Heymans | 8e98013 | 2019-11-04 09:33:04 +0100 | [diff] [blame] | 745 | depends on DRIVERS_UART |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 746 | help |
Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 747 | If enabled, you will be able to set breakpoints for gdb debugging. |
Stefan Reinauer | 8677a23 | 2010-12-11 20:33:41 +0000 | [diff] [blame] | 748 | See src/arch/x86/lib/c_start.S for details. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 749 | |
Denis 'GNUtoo' Carikli | e4cece0 | 2012-06-22 15:56:37 +0200 | [diff] [blame] | 750 | config GDB_WAIT |
Denis 'GNUtoo' Carikli | 7d234f2 | 2015-12-10 21:58:52 +0100 | [diff] [blame] | 751 | bool "Wait for a GDB connection in the ramstage" |
Denis 'GNUtoo' Carikli | e4cece0 | 2012-06-22 15:56:37 +0200 | [diff] [blame] | 752 | default n |
| 753 | depends on GDB_STUB |
| 754 | help |
Denis 'GNUtoo' Carikli | 7d234f2 | 2015-12-10 21:58:52 +0100 | [diff] [blame] | 755 | If enabled, coreboot will wait for a GDB connection in the ramstage. |
| 756 | |
Denis 'GNUtoo' Carikli | e4cece0 | 2012-06-22 15:56:37 +0200 | [diff] [blame] | 757 | |
Julius Werner | d82e0cf | 2015-02-17 17:27:23 -0800 | [diff] [blame] | 758 | config FATAL_ASSERTS |
| 759 | bool "Halt when hitting a BUG() or assertion error" |
| 760 | default n |
| 761 | help |
| 762 | If enabled, coreboot will call hlt() on a BUG() or failed ASSERT(). |
| 763 | |
Nico Huber | 371a667 | 2018-11-13 22:06:40 +0100 | [diff] [blame] | 764 | config HAVE_DEBUG_GPIO |
| 765 | bool |
| 766 | |
| 767 | config DEBUG_GPIO |
| 768 | bool "Output verbose GPIO debug messages" |
| 769 | depends on HAVE_DEBUG_GPIO |
| 770 | |
Stefan Reinauer | fe42218 | 2012-05-02 16:33:18 -0700 | [diff] [blame] | 771 | config DEBUG_CBFS |
| 772 | bool "Output verbose CBFS debug messages" |
| 773 | default n |
Stefan Reinauer | fe42218 | 2012-05-02 16:33:18 -0700 | [diff] [blame] | 774 | help |
| 775 | This option enables additional CBFS related debug messages. |
| 776 | |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 777 | config HAVE_DEBUG_RAM_SETUP |
| 778 | def_bool n |
| 779 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 780 | config DEBUG_RAM_SETUP |
| 781 | bool "Output verbose RAM init debug messages" |
| 782 | default n |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 783 | depends on HAVE_DEBUG_RAM_SETUP |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 784 | help |
| 785 | This option enables additional RAM init related debug messages. |
| 786 | It is recommended to enable this when debugging issues on your |
| 787 | board which might be RAM init related. |
| 788 | |
| 789 | Note: This option will increase the size of the coreboot image. |
| 790 | |
| 791 | If unsure, say N. |
| 792 | |
Myles Watson | 80e914ff | 2010-06-01 19:25:31 +0000 | [diff] [blame] | 793 | config DEBUG_PIRQ |
| 794 | bool "Check PIRQ table consistency" |
| 795 | default n |
| 796 | depends on GENERATE_PIRQ_TABLE |
| 797 | help |
| 798 | If unsure, say N. |
| 799 | |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 800 | config HAVE_DEBUG_SMBUS |
| 801 | def_bool n |
| 802 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 803 | config DEBUG_SMBUS |
| 804 | bool "Output verbose SMBus debug messages" |
| 805 | default n |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 806 | depends on HAVE_DEBUG_SMBUS |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 807 | help |
| 808 | This option enables additional SMBus (and SPD) debug messages. |
| 809 | |
| 810 | Note: This option will increase the size of the coreboot image. |
| 811 | |
| 812 | If unsure, say N. |
| 813 | |
| 814 | config DEBUG_SMI |
| 815 | bool "Output verbose SMI debug messages" |
| 816 | default n |
| 817 | depends on HAVE_SMI_HANDLER |
Nico Huber | 9e53db4 | 2018-06-05 22:34:08 +0200 | [diff] [blame] | 818 | select SPI_FLASH_SMM if SPI_CONSOLE || CONSOLE_SPI_FLASH |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 819 | help |
| 820 | This option enables additional SMI related debug messages. |
| 821 | |
| 822 | Note: This option will increase the size of the coreboot image. |
| 823 | |
| 824 | If unsure, say N. |
| 825 | |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 826 | # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional |
| 827 | # printk(BIOS_DEBUG, ...) calls. |
| 828 | config DEBUG_MALLOC |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 829 | prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 830 | bool |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 831 | default n |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 832 | help |
| 833 | This option enables additional malloc related debug messages. |
| 834 | |
| 835 | Note: This option will increase the size of the coreboot image. |
| 836 | |
| 837 | If unsure, say N. |
Cristian Măgherușan-Stanciu | 9f52ea4 | 2011-07-02 00:44:39 +0300 | [diff] [blame] | 838 | |
Kyösti Mälkki | 6627795 | 2018-12-31 15:22:34 +0200 | [diff] [blame] | 839 | config DEBUG_CONSOLE_INIT |
| 840 | bool "Debug console initialisation code" |
| 841 | default n |
| 842 | help |
| 843 | With this option printk()'s are attempted before console hardware |
| 844 | initialisation has been completed. Your mileage may vary. |
| 845 | |
| 846 | Typically you will need to modify source in console_hw_init() such |
| 847 | that a working console appears before the one you want to debug. |
| 848 | |
| 849 | If unsure, say N. |
| 850 | |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 851 | # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional |
| 852 | # printk(BIOS_DEBUG, ...) calls. |
Myles Watson | 6c9bc01 | 2010-09-07 22:30:15 +0000 | [diff] [blame] | 853 | config REALMODE_DEBUG |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 854 | prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 855 | bool |
Myles Watson | 6c9bc01 | 2010-09-07 22:30:15 +0000 | [diff] [blame] | 856 | default n |
Peter Stuge | 5015f79 | 2010-11-10 02:00:32 +0000 | [diff] [blame] | 857 | depends on PCI_OPTION_ROM_RUN_REALMODE |
Myles Watson | 6c9bc01 | 2010-09-07 22:30:15 +0000 | [diff] [blame] | 858 | help |
| 859 | This option enables additional x86emu related debug messages. |
| 860 | |
| 861 | Note: This option will increase the time to emulate a ROM. |
| 862 | |
| 863 | If unsure, say N. |
| 864 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 865 | config X86EMU_DEBUG |
| 866 | bool "Output verbose x86emu debug messages" |
| 867 | default n |
| 868 | depends on PCI_OPTION_ROM_RUN_YABEL |
| 869 | help |
| 870 | This option enables additional x86emu related debug messages. |
| 871 | |
| 872 | Note: This option will increase the size of the coreboot image. |
| 873 | |
| 874 | If unsure, say N. |
| 875 | |
| 876 | config X86EMU_DEBUG_JMP |
| 877 | bool "Trace JMP/RETF" |
| 878 | default n |
| 879 | depends on X86EMU_DEBUG |
| 880 | help |
| 881 | Print information about JMP and RETF opcodes from x86emu. |
| 882 | |
| 883 | Note: This option will increase the size of the coreboot image. |
| 884 | |
| 885 | If unsure, say N. |
| 886 | |
| 887 | config X86EMU_DEBUG_TRACE |
| 888 | bool "Trace all opcodes" |
| 889 | default n |
| 890 | depends on X86EMU_DEBUG |
| 891 | help |
| 892 | Print _all_ opcodes that are executed by x86emu. |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 893 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 894 | WARNING: This will produce a LOT of output and take a long time. |
| 895 | |
| 896 | Note: This option will increase the size of the coreboot image. |
| 897 | |
| 898 | If unsure, say N. |
| 899 | |
| 900 | config X86EMU_DEBUG_PNP |
| 901 | bool "Log Plug&Play accesses" |
| 902 | default n |
| 903 | depends on X86EMU_DEBUG |
| 904 | help |
| 905 | Print Plug And Play accesses made by option ROMs. |
| 906 | |
| 907 | Note: This option will increase the size of the coreboot image. |
| 908 | |
| 909 | If unsure, say N. |
| 910 | |
| 911 | config X86EMU_DEBUG_DISK |
| 912 | bool "Log Disk I/O" |
| 913 | default n |
| 914 | depends on X86EMU_DEBUG |
| 915 | help |
| 916 | Print Disk I/O related messages. |
| 917 | |
| 918 | Note: This option will increase the size of the coreboot image. |
| 919 | |
| 920 | If unsure, say N. |
| 921 | |
| 922 | config X86EMU_DEBUG_PMM |
| 923 | bool "Log PMM" |
| 924 | default n |
| 925 | depends on X86EMU_DEBUG |
| 926 | help |
| 927 | Print messages related to POST Memory Manager (PMM). |
| 928 | |
| 929 | Note: This option will increase the size of the coreboot image. |
| 930 | |
| 931 | If unsure, say N. |
| 932 | |
| 933 | |
| 934 | config X86EMU_DEBUG_VBE |
| 935 | bool "Debug VESA BIOS Extensions" |
| 936 | default n |
| 937 | depends on X86EMU_DEBUG |
| 938 | help |
| 939 | Print messages related to VESA BIOS Extension (VBE) functions. |
| 940 | |
| 941 | Note: This option will increase the size of the coreboot image. |
| 942 | |
| 943 | If unsure, say N. |
| 944 | |
| 945 | config X86EMU_DEBUG_INT10 |
| 946 | bool "Redirect INT10 output to console" |
| 947 | default n |
| 948 | depends on X86EMU_DEBUG |
| 949 | help |
| 950 | Let INT10 (i.e. character output) calls print messages to debug output. |
| 951 | |
| 952 | Note: This option will increase the size of the coreboot image. |
| 953 | |
| 954 | If unsure, say N. |
| 955 | |
| 956 | config X86EMU_DEBUG_INTERRUPTS |
| 957 | bool "Log intXX calls" |
| 958 | default n |
| 959 | depends on X86EMU_DEBUG |
| 960 | help |
| 961 | Print messages related to interrupt handling. |
| 962 | |
| 963 | Note: This option will increase the size of the coreboot image. |
| 964 | |
| 965 | If unsure, say N. |
| 966 | |
| 967 | config X86EMU_DEBUG_CHECK_VMEM_ACCESS |
| 968 | bool "Log special memory accesses" |
| 969 | default n |
| 970 | depends on X86EMU_DEBUG |
| 971 | help |
| 972 | Print messages related to accesses to certain areas of the virtual |
| 973 | memory (e.g. BDA (BIOS Data Area) or interrupt vectors) |
| 974 | |
| 975 | Note: This option will increase the size of the coreboot image. |
| 976 | |
| 977 | If unsure, say N. |
| 978 | |
| 979 | config X86EMU_DEBUG_MEM |
| 980 | bool "Log all memory accesses" |
| 981 | default n |
| 982 | depends on X86EMU_DEBUG |
| 983 | help |
| 984 | Print memory accesses made by option ROM. |
| 985 | Note: This also includes accesses to fetch instructions. |
| 986 | |
| 987 | Note: This option will increase the size of the coreboot image. |
| 988 | |
| 989 | If unsure, say N. |
| 990 | |
| 991 | config X86EMU_DEBUG_IO |
| 992 | bool "Log IO accesses" |
| 993 | default n |
| 994 | depends on X86EMU_DEBUG |
| 995 | help |
| 996 | Print I/O accesses made by option ROM. |
| 997 | |
| 998 | Note: This option will increase the size of the coreboot image. |
| 999 | |
| 1000 | If unsure, say N. |
| 1001 | |
Denis 'GNUtoo' Carikli | 4cdc5d6 | 2013-05-15 00:19:49 +0200 | [diff] [blame] | 1002 | config X86EMU_DEBUG_TIMINGS |
| 1003 | bool "Output timing information" |
| 1004 | default n |
Kyösti Mälkki | 91945fb | 2019-07-10 15:10:22 +0300 | [diff] [blame] | 1005 | depends on X86EMU_DEBUG && HAVE_MONOTONIC_TIMER |
Denis 'GNUtoo' Carikli | 4cdc5d6 | 2013-05-15 00:19:49 +0200 | [diff] [blame] | 1006 | help |
| 1007 | Print timing information needed by i915tool. |
| 1008 | |
| 1009 | If unsure, say N. |
| 1010 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 1011 | config DEBUG_SPI_FLASH |
| 1012 | bool "Output verbose SPI flash debug messages" |
| 1013 | default n |
| 1014 | depends on SPI_FLASH |
| 1015 | help |
| 1016 | This option enables additional SPI flash related debug messages. |
| 1017 | |
Stefan Reinauer | 8e07382 | 2012-04-04 00:07:22 +0200 | [diff] [blame] | 1018 | if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8 |
| 1019 | # Only visible with the right southbridge and loglevel. |
| 1020 | config DEBUG_INTEL_ME |
| 1021 | bool "Verbose logging for Intel Management Engine" |
| 1022 | default n |
| 1023 | help |
| 1024 | Enable verbose logging for Intel Management Engine driver that |
| 1025 | is present on Intel 6-series chipsets. |
| 1026 | endif |
| 1027 | |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 1028 | config TRACE |
| 1029 | bool "Trace function calls" |
| 1030 | default n |
| 1031 | help |
| 1032 | If enabled, every function will print information to console once |
| 1033 | the function is entered. The syntax is ~0xaaaabbbb(0xccccdddd) |
| 1034 | the 0xaaaabbbb is the actual function and 0xccccdddd is EIP |
Ben Gardner | 8420ad4 | 2015-11-18 10:46:53 -0600 | [diff] [blame] | 1035 | of calling function. Please note some printk related functions |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 1036 | are omitted from trace to have good looking console dumps. |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame] | 1037 | |
| 1038 | config DEBUG_COVERAGE |
| 1039 | bool "Debug code coverage" |
| 1040 | default n |
| 1041 | depends on COVERAGE |
| 1042 | help |
| 1043 | If enabled, the code coverage hooks in coreboot will output some |
| 1044 | information about the coverage data that is dumped. |
| 1045 | |
Jonathan Neuschäfer | fc04f9b | 2016-06-29 21:59:32 +0200 | [diff] [blame] | 1046 | config DEBUG_BOOT_STATE |
| 1047 | bool "Debug boot state machine" |
| 1048 | default n |
| 1049 | help |
| 1050 | Control debugging of the boot state machine. When selected displays |
| 1051 | the state boundaries in ramstage. |
| 1052 | |
Nico Huber | e84e625 | 2016-10-05 17:43:56 +0200 | [diff] [blame] | 1053 | config DEBUG_ADA_CODE |
| 1054 | bool "Compile debug code in Ada sources" |
| 1055 | default n |
| 1056 | help |
| 1057 | Add the compiler switch `-gnata` to compile code guarded by |
| 1058 | `pragma Debug`. |
| 1059 | |
Simon Glass | 46255f7 | 2018-07-12 15:26:07 -0600 | [diff] [blame] | 1060 | config HAVE_EM100_SUPPORT |
| 1061 | bool "Platform can support the Dediprog EM100 SPI emulator" |
| 1062 | help |
| 1063 | This is enabled by platforms which can support using the EM100. |
| 1064 | |
| 1065 | config EM100 |
| 1066 | bool "Configure image for EM100 usage" |
| 1067 | depends on HAVE_EM100_SUPPORT |
| 1068 | help |
| 1069 | The Dediprog EM100 SPI emulator allows fast loading of new SPI images |
| 1070 | over USB. However it only supports a maximum SPI clock of 20MHz and |
| 1071 | single data output. Enable this option to use a 20MHz SPI clock and |
| 1072 | disable "Dual Output Fast Read" Support. |
| 1073 | |
| 1074 | On AMD platforms this changes the SPI speed at run-time if the |
| 1075 | mainboard code supports this. On supported Intel platforms this works |
| 1076 | by changing the settings in the descriptor.bin file. |
| 1077 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 1078 | endmenu |
| 1079 | |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1080 | |
| 1081 | ############################################################################### |
| 1082 | # Set variables with no prompt - these can be set anywhere, and putting at |
| 1083 | # the end of this file gives the most flexibility. |
Nico Huber | 3db7653 | 2017-05-18 18:07:34 +0200 | [diff] [blame] | 1084 | |
| 1085 | source "src/lib/Kconfig" |
| 1086 | |
Myles Watson | 2e67273 | 2009-11-12 16:38:03 +0000 | [diff] [blame] | 1087 | config WARNINGS_ARE_ERRORS |
| 1088 | bool |
Edward O'Callaghan | 63f6dc7 | 2014-11-18 03:17:54 +1100 | [diff] [blame] | 1089 | default y |
Patrick Georgi | 436f99b | 2009-11-27 16:55:13 +0000 | [diff] [blame] | 1090 | |
Peter Stuge | 51eafde | 2010-10-13 06:23:02 +0000 | [diff] [blame] | 1091 | # The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE, |
| 1092 | # POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are |
| 1093 | # mutually exclusive. One of these options must be selected in the |
| 1094 | # mainboard Kconfig if the chipset supports enabling and disabling of |
| 1095 | # the power button. Chipset code uses the ENABLE_POWER_BUTTON option set |
| 1096 | # in mainboard/Kconfig to know if the button should be enabled or not. |
| 1097 | |
| 1098 | config POWER_BUTTON_DEFAULT_ENABLE |
| 1099 | def_bool n |
| 1100 | help |
| 1101 | Select when the board has a power button which can optionally be |
| 1102 | disabled by the user. |
| 1103 | |
| 1104 | config POWER_BUTTON_DEFAULT_DISABLE |
| 1105 | def_bool n |
| 1106 | help |
| 1107 | Select when the board has a power button which can optionally be |
| 1108 | enabled by the user, e.g. when the board ships with a jumper over |
| 1109 | the power switch contacts. |
| 1110 | |
| 1111 | config POWER_BUTTON_FORCE_ENABLE |
| 1112 | def_bool n |
| 1113 | help |
| 1114 | Select when the board requires that the power button is always |
| 1115 | enabled. |
| 1116 | |
| 1117 | config POWER_BUTTON_FORCE_DISABLE |
| 1118 | def_bool n |
| 1119 | help |
| 1120 | Select when the board requires that the power button is always |
| 1121 | disabled, e.g. when it has been hardwired to ground. |
| 1122 | |
| 1123 | config POWER_BUTTON_IS_OPTIONAL |
| 1124 | bool |
| 1125 | default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE |
| 1126 | default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE) |
| 1127 | help |
| 1128 | Internal option that controls ENABLE_POWER_BUTTON visibility. |
Duncan Laurie | 7274800 | 2013-10-31 08:26:23 -0700 | [diff] [blame] | 1129 | |
| 1130 | config REG_SCRIPT |
| 1131 | bool |
Duncan Laurie | 7274800 | 2013-10-31 08:26:23 -0700 | [diff] [blame] | 1132 | default n |
| 1133 | help |
| 1134 | Internal option that controls whether we compile in register scripts. |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 1135 | |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 1136 | config MAX_REBOOT_CNT |
| 1137 | int |
| 1138 | default 3 |
Timothy Pearson | 17ada2e | 2015-03-18 01:31:34 -0500 | [diff] [blame] | 1139 | help |
| 1140 | Internal option that sets the maximum number of bootblock executions allowed |
| 1141 | with the normal image enabled before assuming the normal image is defective |
Vadim Bendebury | 9c9c336 | 2014-07-23 09:40:02 -0700 | [diff] [blame] | 1142 | and switching to the fallback image. |
Martin Roth | 59ff340 | 2016-02-09 09:06:46 -0700 | [diff] [blame] | 1143 | |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1144 | config UNCOMPRESSED_RAMSTAGE |
| 1145 | bool |
| 1146 | |
| 1147 | config NO_XIP_EARLY_STAGES |
| 1148 | bool |
| 1149 | default n if ARCH_X86 |
| 1150 | default y |
| 1151 | help |
| 1152 | Identify if early stages are eXecute-In-Place(XIP). |
| 1153 | |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1154 | config EARLY_CBMEM_LIST |
| 1155 | bool |
| 1156 | default n |
| 1157 | help |
| 1158 | Enable display of CBMEM during romstage and postcar. |
| 1159 | |
| 1160 | config RELOCATABLE_MODULES |
| 1161 | bool |
| 1162 | help |
| 1163 | If RELOCATABLE_MODULES is selected then support is enabled for |
| 1164 | building relocatable modules in the RAM stage. Those modules can be |
| 1165 | loaded anywhere and all the relocations are handled automatically. |
| 1166 | |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1167 | config GENERIC_GPIO_LIB |
| 1168 | bool |
| 1169 | help |
| 1170 | If enabled, compile the generic GPIO library. A "generic" GPIO |
| 1171 | implies configurability usually found on SoCs, particularly the |
| 1172 | ability to control internal pull resistors. |
| 1173 | |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1174 | config BOOTBLOCK_CUSTOM |
| 1175 | # To be selected by arch, SoC or mainboard if it does not want use the normal |
| 1176 | # src/lib/bootblock.c#main() C entry point. |
| 1177 | bool |
| 1178 | |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 1179 | ############################################################################### |
| 1180 | # Set default values for symbols created before mainboards. This allows the |
| 1181 | # option to be displayed in the general menu, but the default to be loaded in |
| 1182 | # the mainboard if desired. |
| 1183 | config COMPRESS_RAMSTAGE |
| 1184 | default y if !UNCOMPRESSED_RAMSTAGE |
| 1185 | |
| 1186 | config COMPRESS_PRERAM_STAGES |
| 1187 | depends on !ARCH_X86 |
| 1188 | default y |
| 1189 | |
| 1190 | config INCLUDE_CONFIG_FILE |
| 1191 | default y |
| 1192 | |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 1193 | config BOOTSPLASH_FILE |
| 1194 | depends on BOOTSPLASH_IMAGE |
| 1195 | default "bootsplash.jpg" |
| 1196 | |
| 1197 | config CBFS_SIZE |
| 1198 | default ROM_SIZE |
Subrata Banik | b5962a9 | 2019-06-08 12:29:02 +0530 | [diff] [blame] | 1199 | |
| 1200 | config HAVE_BOOTBLOCK |
| 1201 | bool |
| 1202 | default y |
| 1203 | |
| 1204 | config HAVE_VERSTAGE |
| 1205 | bool |
| 1206 | depends on VBOOT_SEPARATE_VERSTAGE |
| 1207 | default y |
| 1208 | |
| 1209 | config HAVE_ROMSTAGE |
| 1210 | bool |
| 1211 | default y |
| 1212 | |
Subrata Banik | b5962a9 | 2019-06-08 12:29:02 +0530 | [diff] [blame] | 1213 | config HAVE_RAMSTAGE |
| 1214 | bool |
| 1215 | default n if RAMPAYLOAD |
| 1216 | default y |