Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | ## |
Stefan Reinauer | 16f515a | 2010-01-20 18:44:30 +0000 | [diff] [blame] | 2 | ## This file is part of the coreboot project. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 3 | ## |
Alexandru Gagniuc | 70c660f | 2012-08-23 02:32:58 -0500 | [diff] [blame] | 4 | ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com> |
Stefan Reinauer | 16f515a | 2010-01-20 18:44:30 +0000 | [diff] [blame] | 5 | ## Copyright (C) 2009-2010 coresystems GmbH |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 6 | ## |
Stefan Reinauer | 16f515a | 2010-01-20 18:44:30 +0000 | [diff] [blame] | 7 | ## This program is free software; you can redistribute it and/or modify |
| 8 | ## it under the terms of the GNU General Public License as published by |
| 9 | ## the Free Software Foundation; version 2 of the License. |
| 10 | ## |
| 11 | ## This program is distributed in the hope that it will be useful, |
| 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ## GNU General Public License for more details. |
| 15 | ## |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 16 | |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 17 | mainmenu "coreboot configuration" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 18 | |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 19 | menu "General setup" |
| 20 | |
| 21 | config LOCALVERSION |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 22 | string "Local version string" |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 23 | help |
| 24 | Append an extra string to the end of the coreboot version. |
| 25 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 26 | This can be useful if, for instance, you want to append the |
| 27 | respective board's hostname or some other identifying string to |
| 28 | the coreboot version number, so that you can easily distinguish |
| 29 | boot logs of different boards from each other. |
| 30 | |
Patrick Georgi | 4b8a241 | 2010-02-09 19:35:16 +0000 | [diff] [blame] | 31 | config CBFS_PREFIX |
| 32 | string "CBFS prefix to use" |
| 33 | default "fallback" |
| 34 | help |
| 35 | Select the prefix to all files put into the image. It's "fallback" |
| 36 | by default, "normal" is a common alternative. |
| 37 | |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 38 | choice |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 39 | prompt "Compiler to use" |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 40 | default COMPILER_GCC |
| 41 | help |
| 42 | This option allows you to select the compiler used for building |
| 43 | coreboot. |
Martin Roth | a5a628e8 | 2016-01-19 12:01:09 -0700 | [diff] [blame] | 44 | You must build the coreboot crosscompiler for the board that you |
| 45 | have selected. |
| 46 | |
| 47 | To build all the GCC crosscompilers (takes a LONG time), run: |
| 48 | make crossgcc |
| 49 | |
| 50 | For help on individual architectures, run the command: |
| 51 | make help_toolchain |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 52 | |
| 53 | config COMPILER_GCC |
| 54 | bool "GCC" |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 55 | help |
| 56 | Use the GNU Compiler Collection (GCC) to build coreboot. |
| 57 | |
| 58 | For details see http://gcc.gnu.org. |
| 59 | |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 60 | config COMPILER_LLVM_CLANG |
Martin Roth | a5a628e8 | 2016-01-19 12:01:09 -0700 | [diff] [blame] | 61 | bool "LLVM/clang (TESTING ONLY - Not currently working)" |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 62 | help |
Martin Roth | a5a628e8 | 2016-01-19 12:01:09 -0700 | [diff] [blame] | 63 | Use LLVM/clang to build coreboot. To use this, you must build the |
| 64 | coreboot version of the clang compiler. Run the command |
| 65 | make clang |
| 66 | Note that this option is not currently working correctly and should |
| 67 | really only be selected if you're trying to work on getting clang |
| 68 | operational. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 69 | |
| 70 | For details see http://clang.llvm.org. |
| 71 | |
Patrick Georgi | 23d89cc | 2010-03-16 01:17:19 +0000 | [diff] [blame] | 72 | endchoice |
| 73 | |
Patrick Georgi | 9b0de71 | 2013-12-29 18:45:23 +0100 | [diff] [blame] | 74 | config ANY_TOOLCHAIN |
| 75 | bool "Allow building with any toolchain" |
| 76 | default n |
| 77 | depends on COMPILER_GCC |
| 78 | help |
| 79 | Many toolchains break when building coreboot since it uses quite |
| 80 | unusual linker features. Unless developers explicitely request it, |
| 81 | we'll have to assume that they use their distro compiler by mistake. |
| 82 | Make sure that using patched compilers is a conscious decision. |
| 83 | |
Patrick Georgi | 516a2a7 | 2010-03-25 21:45:25 +0000 | [diff] [blame] | 84 | config CCACHE |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 85 | bool "Use ccache to speed up (re)compilation" |
Patrick Georgi | 516a2a7 | 2010-03-25 21:45:25 +0000 | [diff] [blame] | 86 | default n |
| 87 | help |
| 88 | Enables the use of ccache for faster builds. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 89 | |
| 90 | Requires the ccache utility in your system $PATH. |
| 91 | |
| 92 | For details see https://ccache.samba.org. |
Patrick Georgi | 516a2a7 | 2010-03-25 21:45:25 +0000 | [diff] [blame] | 93 | |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 94 | config FMD_GENPARSER |
| 95 | bool "Generate flashmap descriptor parser using flex and bison" |
| 96 | default n |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 97 | help |
| 98 | Enable this option if you are working on the flashmap descriptor |
| 99 | parser and made changes to fmd_scanner.l or fmd_parser.y. |
| 100 | |
| 101 | Otherwise, say N to use the provided pregenerated scanner/parser. |
| 102 | |
Stefan Reinauer | 9bf7810 | 2010-08-09 13:28:18 +0000 | [diff] [blame] | 103 | config SCONFIG_GENPARSER |
| 104 | bool "Generate SCONFIG parser using flex and bison" |
| 105 | default n |
Stefan Reinauer | 9bf7810 | 2010-08-09 13:28:18 +0000 | [diff] [blame] | 106 | help |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 107 | Enable this option if you are working on the sconfig device tree |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 108 | parser and made changes to sconfig.l or sconfig.y. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 109 | |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 110 | Otherwise, say N to use the provided pregenerated scanner/parser. |
Stefan Reinauer | 9bf7810 | 2010-08-09 13:28:18 +0000 | [diff] [blame] | 111 | |
Joe Korty | 6d77252 | 2010-05-19 18:41:15 +0000 | [diff] [blame] | 112 | config USE_OPTION_TABLE |
| 113 | bool "Use CMOS for configuration values" |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 114 | depends on HAVE_OPTION_TABLE |
Joe Korty | 6d77252 | 2010-05-19 18:41:15 +0000 | [diff] [blame] | 115 | help |
| 116 | Enable this option if coreboot shall read options from the "CMOS" |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 117 | NVRAM instead of using hard-coded values. |
Joe Korty | 6d77252 | 2010-05-19 18:41:15 +0000 | [diff] [blame] | 118 | |
Timothy Pearson | f20c6e8 | 2015-02-14 16:15:31 -0600 | [diff] [blame] | 119 | config STATIC_OPTION_TABLE |
| 120 | bool "Load default configuration values into CMOS on each boot" |
Timothy Pearson | f20c6e8 | 2015-02-14 16:15:31 -0600 | [diff] [blame] | 121 | depends on USE_OPTION_TABLE |
| 122 | help |
| 123 | Enable this option to reset "CMOS" NVRAM values to default on |
| 124 | every boot. Use this if you want the NVRAM configuration to |
| 125 | never be modified from its default values. |
| 126 | |
Sven Schnelle | 8eee19d | 2011-05-02 19:53:04 +0000 | [diff] [blame] | 127 | config COMPRESS_RAMSTAGE |
| 128 | bool "Compress ramstage with LZMA" |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 129 | # Default value set at the end of the file |
Sven Schnelle | 8eee19d | 2011-05-02 19:53:04 +0000 | [diff] [blame] | 130 | help |
| 131 | Compress ramstage to save memory in the flash image. Note |
| 132 | that decompression might slow down booting if the boot flash |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 133 | is connected through a slow link (i.e. SPI). |
Sven Schnelle | 8eee19d | 2011-05-02 19:53:04 +0000 | [diff] [blame] | 134 | |
Julius Werner | 09f2921 | 2015-09-29 13:51:35 -0700 | [diff] [blame] | 135 | config COMPRESS_PRERAM_STAGES |
| 136 | bool "Compress romstage and verstage with LZ4" |
Martin Roth | f2e0461 | 2016-03-09 15:50:23 -0700 | [diff] [blame] | 137 | depends on !ARCH_X86 |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 138 | # Default value set at the end of the file |
Julius Werner | 09f2921 | 2015-09-29 13:51:35 -0700 | [diff] [blame] | 139 | help |
| 140 | Compress romstage and (if it exists) verstage with LZ4 to save flash |
| 141 | space and speed up boot, since the time for reading the image from SPI |
| 142 | (and in the vboot case verifying it) is usually much greater than the |
| 143 | time spent decompressing. Doesn't work for XIP stages (assume all |
| 144 | ARCH_X86 for now) for obvious reasons. |
| 145 | |
Cristian Măgherușan-Stanciu | d367b00 | 2011-06-19 03:03:28 +0200 | [diff] [blame] | 146 | config INCLUDE_CONFIG_FILE |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 147 | bool "Include the coreboot .config file into the ROM image" |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 148 | # Default value set at the end of the file |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 149 | help |
| 150 | Include the .config file that was used to compile coreboot |
| 151 | in the (CBFS) ROM image. This is useful if you want to know which |
| 152 | options were used to build a specific coreboot.rom image. |
| 153 | |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 154 | Saying Y here will increase the image size by 2-3KB. |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 155 | |
| 156 | You can use the following command to easily list the options: |
| 157 | |
| 158 | grep -a CONFIG_ coreboot.rom |
| 159 | |
| 160 | Alternatively, you can also use cbfstool to print the image |
| 161 | contents (including the raw 'config' item we're looking for). |
| 162 | |
| 163 | Example: |
| 164 | |
| 165 | $ cbfstool coreboot.rom print |
| 166 | coreboot.rom: 4096 kB, bootblocksize 1008, romsize 4194304, |
| 167 | offset 0x0 |
| 168 | Alignment: 64 bytes |
Steve Goodrich | f026912 | 2012-05-18 11:18:47 -0600 | [diff] [blame] | 169 | |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 170 | Name Offset Type Size |
| 171 | cmos_layout.bin 0x0 cmos layout 1159 |
| 172 | fallback/romstage 0x4c0 stage 339756 |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 173 | fallback/ramstage 0x53440 stage 186664 |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 174 | fallback/payload 0x80dc0 payload 51526 |
| 175 | config 0x8d740 raw 3324 |
| 176 | (empty) 0x8e480 null 3610440 |
Cristian Măgherușan-Stanciu | d367b00 | 2011-06-19 03:03:28 +0200 | [diff] [blame] | 177 | |
Vadim Bendebury | 9202473d | 2011-09-21 14:46:43 -0700 | [diff] [blame] | 178 | config COLLECT_TIMESTAMPS |
| 179 | bool "Create a table of timestamps collected during boot" |
Vadim Bendebury | 9202473d | 2011-09-21 14:46:43 -0700 | [diff] [blame] | 180 | help |
Uwe Hermann | ad8c95f | 2012-04-12 22:00:03 +0200 | [diff] [blame] | 181 | Make coreboot create a table of timer-ID/timer-value pairs to |
| 182 | allow measuring time spent at different phases of the boot process. |
| 183 | |
Patrick Georgi | 7e9b9d8 | 2012-04-30 21:06:10 +0200 | [diff] [blame] | 184 | config USE_BLOBS |
| 185 | bool "Allow use of binary-only repository" |
Patrick Georgi | 7e9b9d8 | 2012-04-30 21:06:10 +0200 | [diff] [blame] | 186 | help |
| 187 | This draws in the blobs repository, which contains binary files that |
| 188 | might be required for some chipsets or boards. |
| 189 | This flag ensures that a "Free" option remains available for users. |
| 190 | |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame] | 191 | config COVERAGE |
| 192 | bool "Code coverage support" |
| 193 | depends on COMPILER_GCC |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame] | 194 | help |
| 195 | Add code coverage support for coreboot. This will store code |
| 196 | coverage information in CBMEM for extraction from user space. |
| 197 | If unsure, say N. |
| 198 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 199 | config RELOCATABLE_RAMSTAGE |
Vladimir Serbinenko | 633352c | 2015-05-30 22:21:37 +0200 | [diff] [blame] | 200 | depends on EARLY_CBMEM_INIT |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 201 | bool "Build the ramstage to be relocatable in 32-bit address space." |
Vladimir Serbinenko | 633352c | 2015-05-30 22:21:37 +0200 | [diff] [blame] | 202 | select RELOCATABLE_MODULES |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 203 | help |
| 204 | The reloctable ramstage support allows for the ramstage to be built |
| 205 | as a relocatable module. The stage loader can identify a place |
| 206 | out of the OS way so that copying memory is unnecessary during an S3 |
| 207 | wake. When selecting this option the romstage is responsible for |
| 208 | determing a stack location to use for loading the ramstage. |
| 209 | |
| 210 | config CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM |
| 211 | depends on RELOCATABLE_RAMSTAGE |
Arthur Heymans | 410f256 | 2017-01-25 15:27:52 +0100 | [diff] [blame] | 212 | bool |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 213 | help |
| 214 | The relocated ramstage is saved in an area specified by the |
| 215 | by the board and/or chipset. |
| 216 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 217 | config UPDATE_IMAGE |
| 218 | bool "Update existing coreboot.rom image" |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 219 | help |
| 220 | If this option is enabled, no new coreboot.rom file |
| 221 | is created. Instead it is expected that there already |
| 222 | is a suitable file for further processing. |
| 223 | The bootblock will not be modified. |
| 224 | |
Martin Roth | 5942e06 | 2016-01-20 14:59:21 -0700 | [diff] [blame] | 225 | If unsure, select 'N' |
| 226 | |
Stefan Reinauer | d06258c | 2015-03-26 16:29:00 -0700 | [diff] [blame] | 227 | config BOARD_ID_STRING |
| 228 | string "Board ID" |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 229 | # Default value set at the end of the file |
Stefan Reinauer | d06258c | 2015-03-26 16:29:00 -0700 | [diff] [blame] | 230 | depends on BOARD_ID_MANUAL |
| 231 | help |
| 232 | This string is placed in the 'board_id' CBFS file for indicating |
| 233 | board type. |
| 234 | |
David Hendricks | 627b3bd | 2014-11-03 17:42:09 -0800 | [diff] [blame] | 235 | config RAM_CODE_SUPPORT |
Vladimir Serbinenko | 8ef9c56 | 2015-05-30 22:55:44 +0200 | [diff] [blame] | 236 | bool |
David Hendricks | 627b3bd | 2014-11-03 17:42:09 -0800 | [diff] [blame] | 237 | help |
| 238 | If enabled, coreboot discovers RAM configuration (value obtained by |
| 239 | reading board straps) and stores it in coreboot table. |
| 240 | |
Konstantin Aladyshev | 6544cb3 | 2015-01-24 18:52:10 +0400 | [diff] [blame] | 241 | config BOOTSPLASH_IMAGE |
| 242 | bool "Add a bootsplash image" |
| 243 | help |
| 244 | Select this option if you have a bootsplash image that you would |
| 245 | like to add to your ROM. |
| 246 | |
| 247 | This will only add the image to the ROM. To actually run it check |
| 248 | options under 'Display' section. |
| 249 | |
| 250 | config BOOTSPLASH_FILE |
| 251 | string "Bootsplash path and filename" |
| 252 | depends on BOOTSPLASH_IMAGE |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 253 | # Default value set at the end of the file |
Konstantin Aladyshev | 6544cb3 | 2015-01-24 18:52:10 +0400 | [diff] [blame] | 254 | help |
| 255 | The path and filename of the file to use as graphical bootsplash |
| 256 | screen. The file format has to be jpg. |
| 257 | |
Uwe Hermann | c04be93 | 2009-10-05 13:55:28 +0000 | [diff] [blame] | 258 | endmenu |
| 259 | |
Martin Roth | 026e4dc | 2015-06-19 23:17:15 -0600 | [diff] [blame] | 260 | menu "Mainboard" |
| 261 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 262 | source "src/mainboard/Kconfig" |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 263 | |
Marshall Dawson | e937513 | 2016-09-04 08:38:33 -0600 | [diff] [blame] | 264 | config DEVICETREE |
| 265 | string |
| 266 | default "devicetree.cb" |
| 267 | help |
| 268 | This symbol allows mainboards to select a different file under their |
| 269 | mainboard directory for the devicetree.cb file. This allows the board |
| 270 | variants that need different devicetrees to be in the same directory. |
| 271 | |
| 272 | Examples: "devicetree.variant.cb" |
| 273 | "variant/devicetree.cb" |
| 274 | |
Martin Roth | 026e4dc | 2015-06-19 23:17:15 -0600 | [diff] [blame] | 275 | config CBFS_SIZE |
| 276 | hex "Size of CBFS filesystem in ROM" |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 277 | # Default value set at the end of the file |
Martin Roth | 026e4dc | 2015-06-19 23:17:15 -0600 | [diff] [blame] | 278 | help |
| 279 | This is the part of the ROM actually managed by CBFS, located at the |
| 280 | end of the ROM (passed through cbfstool -o) on x86 and at at the start |
| 281 | of the ROM (passed through cbfstool -s) everywhere else. It defaults |
| 282 | to span the whole ROM on all but Intel systems that use an Intel Firmware |
| 283 | Descriptor. It can be overridden to make coreboot live alongside other |
| 284 | components like ChromeOS's vboot/FMAP or Intel's IFD / ME / TXE |
| 285 | binaries. |
| 286 | |
Patrick Georgi | 8a3592e | 2015-09-16 18:10:52 +0200 | [diff] [blame] | 287 | config FMDFILE |
| 288 | string "fmap description file in fmd format" |
Patrick Georgi | 5d7ab39 | 2015-12-12 00:23:15 +0100 | [diff] [blame] | 289 | default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS |
Patrick Georgi | 8a3592e | 2015-09-16 18:10:52 +0200 | [diff] [blame] | 290 | default "" |
| 291 | help |
| 292 | The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE, |
| 293 | but in some cases more complex setups are required. |
| 294 | When an fmd is specified, it overrides the default format. |
| 295 | |
Vadim Bendebury | 2658870 | 2016-06-02 20:43:19 -0700 | [diff] [blame] | 296 | config MAINBOARD_HAS_TPM2 |
| 297 | bool |
| 298 | default n |
| 299 | help |
| 300 | There is a TPM device installed on the mainboard, and it is |
| 301 | compliant with version 2 TCG TPM specification. Could be connected |
| 302 | over LPC, SPI or I2C. |
| 303 | |
Martin Roth | da1ca20 | 2015-12-26 16:51:16 -0700 | [diff] [blame] | 304 | endmenu |
| 305 | |
Martin Roth | b09a569 | 2016-01-24 19:38:33 -0700 | [diff] [blame] | 306 | # load site-local kconfig to allow user specific defaults and overrides |
| 307 | source "site-local/Kconfig" |
| 308 | |
Vladimir Serbinenko | a9db82f | 2014-10-16 13:21:47 +0200 | [diff] [blame] | 309 | config SYSTEM_TYPE_LAPTOP |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 310 | default n |
| 311 | bool |
Vladimir Serbinenko | a9db82f | 2014-10-16 13:21:47 +0200 | [diff] [blame] | 312 | |
Werner Zeh | c0fb361 | 2016-01-14 15:08:36 +0100 | [diff] [blame] | 313 | config CBFS_AUTOGEN_ATTRIBUTES |
| 314 | default n |
| 315 | bool |
| 316 | help |
| 317 | If this option is selected, every file in cbfs which has a constraint |
| 318 | regarding position or alignment will get an additional file attribute |
| 319 | which describes this constraint. |
| 320 | |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 321 | menu "Chipset" |
| 322 | |
Duncan Laurie | d211976 | 2015-06-08 18:11:56 -0700 | [diff] [blame] | 323 | comment "SoC" |
| 324 | source "src/soc/*/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 325 | comment "CPU" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 326 | source "src/cpu/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 327 | comment "Northbridge" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 328 | source "src/northbridge/*/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 329 | comment "Southbridge" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 330 | source "src/southbridge/*/*/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 331 | comment "Super I/O" |
Omar Pakker | 57603e2 | 2016-07-29 23:31:45 +0200 | [diff] [blame] | 332 | source "src/superio/*/*/Kconfig" |
Sven Schnelle | 7592e8b | 2011-01-27 11:43:03 +0000 | [diff] [blame] | 333 | comment "Embedded Controllers" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 334 | source "src/ec/acpi/Kconfig" |
| 335 | source "src/ec/*/*/Kconfig" |
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 336 | # FIXME move to vendorcode |
Marc Jones | 7868797 | 2015-04-22 23:16:31 -0600 | [diff] [blame] | 337 | source "src/drivers/intel/fsp1_0/Kconfig" |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 338 | |
Martin Roth | 59aa2b1 | 2015-06-20 16:17:12 -0600 | [diff] [blame] | 339 | source "src/southbridge/intel/common/firmware/Kconfig" |
Furquan Shaikh | 2a12e2e | 2016-07-25 11:48:03 -0700 | [diff] [blame] | 340 | source "src/vboot/Kconfig" |
Martin Roth | e1523ec | 2015-06-19 22:30:43 -0600 | [diff] [blame] | 341 | source "src/vendorcode/*/Kconfig" |
Martin Roth | 59aa2b1 | 2015-06-20 16:17:12 -0600 | [diff] [blame] | 342 | |
Martin Roth | e1523ec | 2015-06-19 22:30:43 -0600 | [diff] [blame] | 343 | source "src/arch/*/Kconfig" |
| 344 | |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 345 | endmenu |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 346 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 347 | source "src/device/Kconfig" |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 348 | |
Rudolf Marek | d9c2549 | 2010-05-16 15:31:53 +0000 | [diff] [blame] | 349 | menu "Generic Drivers" |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 350 | source "src/drivers/*/Kconfig" |
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 351 | source "src/drivers/*/*/Kconfig" |
Rudolf Marek | d9c2549 | 2010-05-16 15:31:53 +0000 | [diff] [blame] | 352 | endmenu |
| 353 | |
Martin Roth | 09210a1 | 2016-05-17 11:28:23 -0600 | [diff] [blame] | 354 | source "src/acpi/Kconfig" |
| 355 | |
Aaron Durbin | 4a36c4e | 2016-08-11 11:02:26 -0500 | [diff] [blame] | 356 | # This option is for the current boards/chipsets where SPI flash |
| 357 | # is not the boot device. Currently nearly all boards/chipsets assume |
| 358 | # SPI flash is the boot device. |
| 359 | config BOOT_DEVICE_NOT_SPI_FLASH |
| 360 | bool |
| 361 | default n |
| 362 | |
| 363 | config BOOT_DEVICE_SPI_FLASH |
| 364 | bool |
| 365 | default y if !BOOT_DEVICE_NOT_SPI_FLASH |
| 366 | default n |
| 367 | |
Aaron Durbin | 16c173f | 2016-08-11 14:04:10 -0500 | [diff] [blame] | 368 | config BOOT_DEVICE_MEMORY_MAPPED |
| 369 | bool |
| 370 | default y if ARCH_X86 && BOOT_DEVICE_SPI_FLASH |
| 371 | default n |
| 372 | help |
| 373 | Inform system if SPI is memory-mapped or not. |
| 374 | |
Aaron Durbin | e8e118d | 2016-08-12 15:00:10 -0500 | [diff] [blame] | 375 | config BOOT_DEVICE_SUPPORTS_WRITES |
| 376 | bool |
| 377 | default n |
| 378 | help |
| 379 | Indicate that the platform has writable boot device |
| 380 | support. |
| 381 | |
Patrick Georgi | 0770f25 | 2015-04-22 13:28:21 +0200 | [diff] [blame] | 382 | config RTC |
| 383 | bool |
| 384 | default n |
| 385 | |
Stefan Reinauer | 7cb01e0 | 2013-08-29 16:05:02 -0700 | [diff] [blame] | 386 | config TPM |
| 387 | bool |
| 388 | default n |
Vadim Bendebury | 2658870 | 2016-06-02 20:43:19 -0700 | [diff] [blame] | 389 | select LPC_TPM if MAINBOARD_HAS_LPC_TPM |
| 390 | select I2C_TPM if !MAINBOARD_HAS_LPC_TPM && !SPI_TPM |
Stefan Reinauer | 7cb01e0 | 2013-08-29 16:05:02 -0700 | [diff] [blame] | 391 | help |
| 392 | Enable this option to enable TPM support in coreboot. |
| 393 | |
| 394 | If unsure, say N. |
| 395 | |
Vadim Bendebury | 2658870 | 2016-06-02 20:43:19 -0700 | [diff] [blame] | 396 | config TPM2 |
| 397 | bool |
| 398 | select LPC_TPM if MAINBOARD_HAS_LPC_TPM |
| 399 | select I2C_TPM if !MAINBOARD_HAS_LPC_TPM && !SPI_TPM |
| 400 | help |
| 401 | Enable this option to enable TPM2 support in coreboot. |
| 402 | |
| 403 | If unsure, say N. |
| 404 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 405 | config HEAP_SIZE |
| 406 | hex |
Myles Watson | 04000f4 | 2009-10-16 19:12:49 +0000 | [diff] [blame] | 407 | default 0x4000 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 408 | |
Julius Werner | c3e7c4e | 2014-09-19 13:18:16 -0700 | [diff] [blame] | 409 | config STACK_SIZE |
| 410 | hex |
Julius Werner | 66a476a | 2015-10-12 16:45:21 -0700 | [diff] [blame] | 411 | default 0x1000 if ARCH_X86 |
| 412 | default 0x0 |
Julius Werner | c3e7c4e | 2014-09-19 13:18:16 -0700 | [diff] [blame] | 413 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 414 | config MAX_CPUS |
| 415 | int |
| 416 | default 1 |
| 417 | |
Stefan Reinauer | a48ca84 | 2015-04-04 01:58:28 +0200 | [diff] [blame] | 418 | source "src/console/Kconfig" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 419 | |
| 420 | config HAVE_ACPI_RESUME |
| 421 | bool |
| 422 | default n |
| 423 | |
Kyösti Mälkki | 9d6f365 | 2016-06-28 07:38:46 +0300 | [diff] [blame] | 424 | config ACPI_HUGE_LOWMEM_BACKUP |
| 425 | bool |
Kyösti Mälkki | 43e9c93 | 2016-11-10 11:50:21 +0200 | [diff] [blame] | 426 | default n |
Kyösti Mälkki | 9d6f365 | 2016-06-28 07:38:46 +0300 | [diff] [blame] | 427 | help |
| 428 | On S3 resume path, backup low memory from RAMBASE..RAMTOP in CBMEM. |
| 429 | |
Aaron Durbin | 87c9fae | 2016-01-22 15:26:04 -0600 | [diff] [blame] | 430 | config RESUME_PATH_SAME_AS_BOOT |
| 431 | bool |
| 432 | default y if ARCH_X86 |
| 433 | depends on HAVE_ACPI_RESUME |
| 434 | help |
| 435 | This option indicates that when a system resumes it takes the |
| 436 | same path as a regular boot. e.g. an x86 system runs from the |
| 437 | reset vector at 0xfffffff0 on both resume and warm/cold boot. |
| 438 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 439 | config HAVE_HARD_RESET |
| 440 | bool |
Uwe Hermann | 748475b | 2009-10-09 11:47:21 +0000 | [diff] [blame] | 441 | default n |
Patrick Georgi | 37bdb87 | 2010-02-27 08:39:04 +0000 | [diff] [blame] | 442 | help |
| 443 | This variable specifies whether a given board has a hard_reset |
| 444 | function, no matter if it's provided by board code or chipset code. |
| 445 | |
Timothy Pearson | 44d5342 | 2015-05-18 16:04:10 -0500 | [diff] [blame] | 446 | config HAVE_ROMSTAGE_CONSOLE_SPINLOCK |
| 447 | bool |
Kyösti Mälkki | b5664de | 2016-07-08 13:33:00 +0300 | [diff] [blame] | 448 | depends on EARLY_CBMEM_INIT |
Timothy Pearson | 44d5342 | 2015-05-18 16:04:10 -0500 | [diff] [blame] | 449 | default n |
| 450 | |
Timothy Pearson | 7b22d84 | 2015-08-28 19:52:05 -0500 | [diff] [blame] | 451 | config HAVE_ROMSTAGE_NVRAM_CBFS_SPINLOCK |
| 452 | bool |
Kyösti Mälkki | b5664de | 2016-07-08 13:33:00 +0300 | [diff] [blame] | 453 | depends on EARLY_CBMEM_INIT |
Timothy Pearson | 7b22d84 | 2015-08-28 19:52:05 -0500 | [diff] [blame] | 454 | default n |
| 455 | help |
| 456 | This should be enabled on certain plaforms, such as the AMD |
| 457 | SR565x, that cannot handle concurrent CBFS accesses from |
| 458 | multiple APs during early startup. |
| 459 | |
Timothy Pearson | c764c74 | 2015-08-28 20:48:17 -0500 | [diff] [blame] | 460 | config HAVE_ROMSTAGE_MICROCODE_CBFS_SPINLOCK |
| 461 | bool |
Kyösti Mälkki | b5664de | 2016-07-08 13:33:00 +0300 | [diff] [blame] | 462 | depends on EARLY_CBMEM_INIT |
Timothy Pearson | c764c74 | 2015-08-28 20:48:17 -0500 | [diff] [blame] | 463 | default n |
| 464 | |
Aaron Durbin | a421791 | 2013-04-29 22:31:51 -0500 | [diff] [blame] | 465 | config HAVE_MONOTONIC_TIMER |
| 466 | def_bool n |
| 467 | help |
| 468 | The board/chipset provides a monotonic timer. |
| 469 | |
Aaron Durbin | e5e3630 | 2014-09-25 10:05:15 -0500 | [diff] [blame] | 470 | config GENERIC_UDELAY |
| 471 | def_bool n |
| 472 | depends on HAVE_MONOTONIC_TIMER |
| 473 | help |
| 474 | The board/chipset uses a generic udelay function utilizing the |
| 475 | monotonic timer. |
| 476 | |
Aaron Durbin | 340ca91 | 2013-04-30 09:58:12 -0500 | [diff] [blame] | 477 | config TIMER_QUEUE |
| 478 | def_bool n |
| 479 | depends on HAVE_MONOTONIC_TIMER |
| 480 | help |
Kyösti Mälkki | ecd8424 | 2013-09-13 07:57:49 +0300 | [diff] [blame] | 481 | Provide a timer queue for performing time-based callbacks. |
Aaron Durbin | 340ca91 | 2013-04-30 09:58:12 -0500 | [diff] [blame] | 482 | |
Aaron Durbin | 4409a5e | 2013-05-06 12:20:52 -0500 | [diff] [blame] | 483 | config COOP_MULTITASKING |
| 484 | def_bool n |
Aaron Durbin | 38c326d | 2013-05-06 12:22:23 -0500 | [diff] [blame] | 485 | depends on TIMER_QUEUE && ARCH_X86 |
Aaron Durbin | 4409a5e | 2013-05-06 12:20:52 -0500 | [diff] [blame] | 486 | help |
| 487 | Cooperative multitasking allows callbacks to be multiplexed on the |
| 488 | main thread of ramstage. With this enabled it allows for multiple |
| 489 | execution paths to take place when they have udelay() calls within |
| 490 | their code. |
| 491 | |
| 492 | config NUM_THREADS |
| 493 | int |
| 494 | default 4 |
| 495 | depends on COOP_MULTITASKING |
| 496 | help |
| 497 | How many execution threads to cooperatively multitask with. |
| 498 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 499 | config HAVE_OPTION_TABLE |
| 500 | bool |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 501 | default n |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 502 | help |
| 503 | This variable specifies whether a given board has a cmos.layout |
| 504 | file containing NVRAM/CMOS bit definitions. |
Edwin Beasant | eb50c7d | 2010-07-06 21:05:04 +0000 | [diff] [blame] | 505 | It defaults to 'n' but can be selected in mainboard/*/Kconfig. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 506 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 507 | config PIRQ_ROUTE |
| 508 | bool |
| 509 | default n |
| 510 | |
| 511 | config HAVE_SMI_HANDLER |
| 512 | bool |
| 513 | default n |
| 514 | |
| 515 | config PCI_IO_CFG_EXT |
| 516 | bool |
| 517 | default n |
| 518 | |
| 519 | config IOAPIC |
| 520 | bool |
| 521 | default n |
| 522 | |
Kyösti Mälkki | 107f72e | 2014-01-06 11:06:26 +0200 | [diff] [blame] | 523 | config CACHE_ROM_SIZE_OVERRIDE |
Stefan Reinauer | 5b63579 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 524 | hex |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 525 | default 0x0 |
Stefan Reinauer | 5b63579 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 526 | |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 527 | # TODO: Can probably be removed once all chipsets have kconfig options for it. |
Uwe Hermann | 70b0cf2 | 2009-10-04 17:15:39 +0000 | [diff] [blame] | 528 | config VIDEO_MB |
| 529 | int |
Uwe Hermann | 63a8f2a | 2009-10-26 21:42:13 +0000 | [diff] [blame] | 530 | default 0 |
Uwe Hermann | 70b0cf2 | 2009-10-04 17:15:39 +0000 | [diff] [blame] | 531 | |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 532 | config USE_WATCHDOG_ON_BOOT |
| 533 | bool |
| 534 | default n |
| 535 | |
| 536 | config VGA |
| 537 | bool |
| 538 | default n |
| 539 | help |
| 540 | Build board-specific VGA code. |
| 541 | |
| 542 | config GFXUMA |
| 543 | bool |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 544 | default n |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 545 | help |
| 546 | Enable Unified Memory Architecture for graphics. |
| 547 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 548 | config HAVE_ACPI_TABLES |
| 549 | bool |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 550 | help |
| 551 | This variable specifies whether a given board has ACPI table support. |
| 552 | It is usually set in mainboard/*/Kconfig. |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 553 | |
| 554 | config HAVE_MP_TABLE |
| 555 | bool |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 556 | help |
| 557 | This variable specifies whether a given board has MP table support. |
| 558 | It is usually set in mainboard/*/Kconfig. |
| 559 | Whether or not the MP table is actually generated by coreboot |
| 560 | is configurable by the user via GENERATE_MP_TABLE. |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 561 | |
| 562 | config HAVE_PIRQ_TABLE |
| 563 | bool |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 564 | help |
| 565 | This variable specifies whether a given board has PIRQ table support. |
| 566 | It is usually set in mainboard/*/Kconfig. |
| 567 | Whether or not the PIRQ table is actually generated by coreboot |
| 568 | is configurable by the user via GENERATE_PIRQ_TABLE. |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 569 | |
Alexandru Gagniuc | 70c660f | 2012-08-23 02:32:58 -0500 | [diff] [blame] | 570 | config MAX_PIRQ_LINKS |
| 571 | int |
| 572 | default 4 |
| 573 | help |
| 574 | This variable specifies the number of PIRQ interrupt links which are |
| 575 | routable. On most chipsets, this is 4, INTA through INTD. Some |
| 576 | chipsets offer more than four links, commonly up to INTH. They may |
| 577 | also have a separate link for ATA or IOAPIC interrupts. When the PIRQ |
| 578 | table specifies links greater than 4, pirq_route_irqs will not |
| 579 | function properly, unless this variable is correctly set. |
| 580 | |
Vladimir Serbinenko | c21e073 | 2014-10-16 12:48:19 +0200 | [diff] [blame] | 581 | config COMMON_FADT |
| 582 | bool |
| 583 | default n |
| 584 | |
Aaron Durbin | 9420a52 | 2015-11-17 16:31:00 -0600 | [diff] [blame] | 585 | config ACPI_NHLT |
| 586 | bool |
| 587 | default n |
| 588 | help |
| 589 | Build support for NHLT (non HD Audio) ACPI table generation. |
| 590 | |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 591 | #These Options are here to avoid "undefined" warnings. |
| 592 | #The actual selection and help texts are in the following menu. |
| 593 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 594 | menu "System tables" |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 595 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 596 | config GENERATE_MP_TABLE |
Stefan Reinauer | 56cd70b | 2012-11-13 17:33:08 -0800 | [diff] [blame] | 597 | prompt "Generate an MP table" if HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC |
| 598 | bool |
| 599 | default HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 600 | help |
| 601 | Generate an MP table (conforming to the Intel MultiProcessor |
| 602 | specification 1.4) for this board. |
| 603 | |
| 604 | If unsure, say Y. |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 605 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 606 | config GENERATE_PIRQ_TABLE |
Stefan Reinauer | 56cd70b | 2012-11-13 17:33:08 -0800 | [diff] [blame] | 607 | prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE |
| 608 | bool |
| 609 | default HAVE_PIRQ_TABLE |
Uwe Hermann | 6ba13bb | 2009-10-15 17:49:07 +0000 | [diff] [blame] | 610 | help |
| 611 | Generate a PIRQ table for this board. |
| 612 | |
| 613 | If unsure, say Y. |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 614 | |
Sven Schnelle | 164bcfd | 2011-08-14 20:56:34 +0200 | [diff] [blame] | 615 | config GENERATE_SMBIOS_TABLES |
| 616 | depends on ARCH_X86 |
| 617 | bool "Generate SMBIOS tables" |
| 618 | default y |
| 619 | help |
| 620 | Generate SMBIOS tables for this board. |
| 621 | |
| 622 | If unsure, say Y. |
| 623 | |
Vladimir Serbinenko | 0afdec4 | 2015-05-30 23:08:26 +0200 | [diff] [blame] | 624 | config SMBIOS_PROVIDED_BY_MOBO |
| 625 | bool |
| 626 | default n |
| 627 | |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 628 | config MAINBOARD_SERIAL_NUMBER |
| 629 | string "SMBIOS Serial Number" |
| 630 | depends on GENERATE_SMBIOS_TABLES |
Vladimir Serbinenko | 0afdec4 | 2015-05-30 23:08:26 +0200 | [diff] [blame] | 631 | depends on !SMBIOS_PROVIDED_BY_MOBO |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 632 | default "123456789" |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 633 | help |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 634 | The Serial Number to store in SMBIOS structures. |
| 635 | |
| 636 | config MAINBOARD_VERSION |
| 637 | string "SMBIOS Version Number" |
| 638 | depends on GENERATE_SMBIOS_TABLES |
Vladimir Serbinenko | 0afdec4 | 2015-05-30 23:08:26 +0200 | [diff] [blame] | 639 | depends on !SMBIOS_PROVIDED_BY_MOBO |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 640 | default "1.0" |
| 641 | help |
| 642 | The Version Number to store in SMBIOS structures. |
| 643 | |
| 644 | config MAINBOARD_SMBIOS_MANUFACTURER |
| 645 | string "SMBIOS Manufacturer" |
| 646 | depends on GENERATE_SMBIOS_TABLES |
Vladimir Serbinenko | 0afdec4 | 2015-05-30 23:08:26 +0200 | [diff] [blame] | 647 | depends on !SMBIOS_PROVIDED_BY_MOBO |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 648 | default MAINBOARD_VENDOR |
| 649 | help |
| 650 | Override the default Manufacturer stored in SMBIOS structures. |
| 651 | |
| 652 | config MAINBOARD_SMBIOS_PRODUCT_NAME |
| 653 | string "SMBIOS Product name" |
| 654 | depends on GENERATE_SMBIOS_TABLES |
Vladimir Serbinenko | 0afdec4 | 2015-05-30 23:08:26 +0200 | [diff] [blame] | 655 | depends on !SMBIOS_PROVIDED_BY_MOBO |
Stefan Reinauer | 6023ca4 | 2014-10-17 13:28:15 +0200 | [diff] [blame] | 656 | default MAINBOARD_PART_NUMBER |
| 657 | help |
| 658 | Override the default Product name stored in SMBIOS structures. |
| 659 | |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 660 | endmenu |
| 661 | |
Martin Roth | 21c0650 | 2016-02-04 19:52:27 -0700 | [diff] [blame] | 662 | source "payloads/Kconfig" |
Peter Stuge | a758ca2 | 2009-09-17 16:21:31 +0000 | [diff] [blame] | 663 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 664 | menu "Debugging" |
| 665 | |
| 666 | # TODO: Better help text and detailed instructions. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 667 | config GDB_STUB |
Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 668 | bool "GDB debugging support" |
Rudolf Marek | 6588802 | 2012-03-25 20:51:16 +0200 | [diff] [blame] | 669 | default n |
Denis 'GNUtoo' Carikli | 3747ba1 | 2015-12-10 22:04:56 +0100 | [diff] [blame] | 670 | depends on CONSOLE_SERIAL |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 671 | help |
Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 672 | If enabled, you will be able to set breakpoints for gdb debugging. |
Stefan Reinauer | 8677a23 | 2010-12-11 20:33:41 +0000 | [diff] [blame] | 673 | See src/arch/x86/lib/c_start.S for details. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 674 | |
Denis 'GNUtoo' Carikli | e4cece0 | 2012-06-22 15:56:37 +0200 | [diff] [blame] | 675 | config GDB_WAIT |
| 676 | bool "Wait for a GDB connection" |
| 677 | default n |
| 678 | depends on GDB_STUB |
| 679 | help |
| 680 | If enabled, coreboot will wait for a GDB connection. |
| 681 | |
Julius Werner | d82e0cf | 2015-02-17 17:27:23 -0800 | [diff] [blame] | 682 | config FATAL_ASSERTS |
| 683 | bool "Halt when hitting a BUG() or assertion error" |
| 684 | default n |
| 685 | help |
| 686 | If enabled, coreboot will call hlt() on a BUG() or failed ASSERT(). |
| 687 | |
Stefan Reinauer | fe42218 | 2012-05-02 16:33:18 -0700 | [diff] [blame] | 688 | config DEBUG_CBFS |
| 689 | bool "Output verbose CBFS debug messages" |
| 690 | default n |
Stefan Reinauer | fe42218 | 2012-05-02 16:33:18 -0700 | [diff] [blame] | 691 | help |
| 692 | This option enables additional CBFS related debug messages. |
| 693 | |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 694 | config HAVE_DEBUG_RAM_SETUP |
| 695 | def_bool n |
| 696 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 697 | config DEBUG_RAM_SETUP |
| 698 | bool "Output verbose RAM init debug messages" |
| 699 | default n |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 700 | depends on HAVE_DEBUG_RAM_SETUP |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 701 | help |
| 702 | This option enables additional RAM init related debug messages. |
| 703 | It is recommended to enable this when debugging issues on your |
| 704 | board which might be RAM init related. |
| 705 | |
| 706 | Note: This option will increase the size of the coreboot image. |
| 707 | |
| 708 | If unsure, say N. |
| 709 | |
Patrick Georgi | e82618d | 2010-10-01 14:50:12 +0000 | [diff] [blame] | 710 | config HAVE_DEBUG_CAR |
| 711 | def_bool n |
| 712 | |
Peter Stuge | 5015f79 | 2010-11-10 02:00:32 +0000 | [diff] [blame] | 713 | config DEBUG_CAR |
| 714 | def_bool n |
| 715 | depends on HAVE_DEBUG_CAR |
| 716 | |
| 717 | if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 718 | # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional |
| 719 | # printk(BIOS_DEBUG, ...) calls. |
Patrick Georgi | e82618d | 2010-10-01 14:50:12 +0000 | [diff] [blame] | 720 | config DEBUG_CAR |
| 721 | bool "Output verbose Cache-as-RAM debug messages" |
| 722 | default n |
Peter Stuge | 5015f79 | 2010-11-10 02:00:32 +0000 | [diff] [blame] | 723 | depends on HAVE_DEBUG_CAR |
Patrick Georgi | e82618d | 2010-10-01 14:50:12 +0000 | [diff] [blame] | 724 | help |
| 725 | This option enables additional CAR related debug messages. |
Peter Stuge | 5015f79 | 2010-11-10 02:00:32 +0000 | [diff] [blame] | 726 | endif |
Patrick Georgi | e82618d | 2010-10-01 14:50:12 +0000 | [diff] [blame] | 727 | |
Myles Watson | 80e914ff | 2010-06-01 19:25:31 +0000 | [diff] [blame] | 728 | config DEBUG_PIRQ |
| 729 | bool "Check PIRQ table consistency" |
| 730 | default n |
| 731 | depends on GENERATE_PIRQ_TABLE |
| 732 | help |
| 733 | If unsure, say N. |
| 734 | |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 735 | config HAVE_DEBUG_SMBUS |
| 736 | def_bool n |
| 737 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 738 | config DEBUG_SMBUS |
| 739 | bool "Output verbose SMBus debug messages" |
| 740 | default n |
Jens Rottmann | 0d11f2d | 2010-08-26 12:46:02 +0000 | [diff] [blame] | 741 | depends on HAVE_DEBUG_SMBUS |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 742 | help |
| 743 | This option enables additional SMBus (and SPD) debug messages. |
| 744 | |
| 745 | Note: This option will increase the size of the coreboot image. |
| 746 | |
| 747 | If unsure, say N. |
| 748 | |
| 749 | config DEBUG_SMI |
| 750 | bool "Output verbose SMI debug messages" |
| 751 | default n |
| 752 | depends on HAVE_SMI_HANDLER |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 753 | select SPI_FLASH_SMM if SPI_CONSOLE |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 754 | help |
| 755 | This option enables additional SMI related debug messages. |
| 756 | |
| 757 | Note: This option will increase the size of the coreboot image. |
| 758 | |
| 759 | If unsure, say N. |
| 760 | |
Stefan Reinauer | bc0f7a6 | 2010-08-01 15:41:14 +0000 | [diff] [blame] | 761 | config DEBUG_SMM_RELOCATION |
| 762 | bool "Debug SMM relocation code" |
| 763 | default n |
| 764 | depends on HAVE_SMI_HANDLER |
| 765 | help |
| 766 | This option enables additional SMM handler relocation related |
| 767 | debug messages. |
| 768 | |
| 769 | Note: This option will increase the size of the coreboot image. |
| 770 | |
| 771 | If unsure, say N. |
| 772 | |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 773 | # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional |
| 774 | # printk(BIOS_DEBUG, ...) calls. |
| 775 | config DEBUG_MALLOC |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 776 | prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 777 | bool |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 778 | default n |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 779 | help |
| 780 | This option enables additional malloc related debug messages. |
| 781 | |
| 782 | Note: This option will increase the size of the coreboot image. |
| 783 | |
| 784 | If unsure, say N. |
Cristian Măgherușan-Stanciu | 9f52ea4 | 2011-07-02 00:44:39 +0300 | [diff] [blame] | 785 | |
| 786 | # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional |
| 787 | # printk(BIOS_DEBUG, ...) calls. |
Cristian Măgherușan-Stanciu | 9f52ea4 | 2011-07-02 00:44:39 +0300 | [diff] [blame] | 788 | config DEBUG_ACPI |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 789 | prompt "Output verbose ACPI debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 790 | bool |
Cristian Măgherușan-Stanciu | 9f52ea4 | 2011-07-02 00:44:39 +0300 | [diff] [blame] | 791 | default n |
| 792 | help |
| 793 | This option enables additional ACPI related debug messages. |
| 794 | |
| 795 | Note: This option will slightly increase the size of the coreboot image. |
| 796 | |
| 797 | If unsure, say N. |
Cristian Măgherușan-Stanciu | 9f52ea4 | 2011-07-02 00:44:39 +0300 | [diff] [blame] | 798 | |
Uwe Hermann | a953f37 | 2010-11-10 00:14:32 +0000 | [diff] [blame] | 799 | # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional |
| 800 | # printk(BIOS_DEBUG, ...) calls. |
Myles Watson | 6c9bc01 | 2010-09-07 22:30:15 +0000 | [diff] [blame] | 801 | config REALMODE_DEBUG |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 802 | prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 803 | bool |
Myles Watson | 6c9bc01 | 2010-09-07 22:30:15 +0000 | [diff] [blame] | 804 | default n |
Peter Stuge | 5015f79 | 2010-11-10 02:00:32 +0000 | [diff] [blame] | 805 | depends on PCI_OPTION_ROM_RUN_REALMODE |
Myles Watson | 6c9bc01 | 2010-09-07 22:30:15 +0000 | [diff] [blame] | 806 | help |
| 807 | This option enables additional x86emu related debug messages. |
| 808 | |
| 809 | Note: This option will increase the time to emulate a ROM. |
| 810 | |
| 811 | If unsure, say N. |
| 812 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 813 | config X86EMU_DEBUG |
| 814 | bool "Output verbose x86emu debug messages" |
| 815 | default n |
| 816 | depends on PCI_OPTION_ROM_RUN_YABEL |
| 817 | help |
| 818 | This option enables additional x86emu related debug messages. |
| 819 | |
| 820 | Note: This option will increase the size of the coreboot image. |
| 821 | |
| 822 | If unsure, say N. |
| 823 | |
| 824 | config X86EMU_DEBUG_JMP |
| 825 | bool "Trace JMP/RETF" |
| 826 | default n |
| 827 | depends on X86EMU_DEBUG |
| 828 | help |
| 829 | Print information about JMP and RETF opcodes from x86emu. |
| 830 | |
| 831 | Note: This option will increase the size of the coreboot image. |
| 832 | |
| 833 | If unsure, say N. |
| 834 | |
| 835 | config X86EMU_DEBUG_TRACE |
| 836 | bool "Trace all opcodes" |
| 837 | default n |
| 838 | depends on X86EMU_DEBUG |
| 839 | help |
| 840 | Print _all_ opcodes that are executed by x86emu. |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 841 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 842 | WARNING: This will produce a LOT of output and take a long time. |
| 843 | |
| 844 | Note: This option will increase the size of the coreboot image. |
| 845 | |
| 846 | If unsure, say N. |
| 847 | |
| 848 | config X86EMU_DEBUG_PNP |
| 849 | bool "Log Plug&Play accesses" |
| 850 | default n |
| 851 | depends on X86EMU_DEBUG |
| 852 | help |
| 853 | Print Plug And Play accesses made by option ROMs. |
| 854 | |
| 855 | Note: This option will increase the size of the coreboot image. |
| 856 | |
| 857 | If unsure, say N. |
| 858 | |
| 859 | config X86EMU_DEBUG_DISK |
| 860 | bool "Log Disk I/O" |
| 861 | default n |
| 862 | depends on X86EMU_DEBUG |
| 863 | help |
| 864 | Print Disk I/O related messages. |
| 865 | |
| 866 | Note: This option will increase the size of the coreboot image. |
| 867 | |
| 868 | If unsure, say N. |
| 869 | |
| 870 | config X86EMU_DEBUG_PMM |
| 871 | bool "Log PMM" |
| 872 | default n |
| 873 | depends on X86EMU_DEBUG |
| 874 | help |
| 875 | Print messages related to POST Memory Manager (PMM). |
| 876 | |
| 877 | Note: This option will increase the size of the coreboot image. |
| 878 | |
| 879 | If unsure, say N. |
| 880 | |
| 881 | |
| 882 | config X86EMU_DEBUG_VBE |
| 883 | bool "Debug VESA BIOS Extensions" |
| 884 | default n |
| 885 | depends on X86EMU_DEBUG |
| 886 | help |
| 887 | Print messages related to VESA BIOS Extension (VBE) functions. |
| 888 | |
| 889 | Note: This option will increase the size of the coreboot image. |
| 890 | |
| 891 | If unsure, say N. |
| 892 | |
| 893 | config X86EMU_DEBUG_INT10 |
| 894 | bool "Redirect INT10 output to console" |
| 895 | default n |
| 896 | depends on X86EMU_DEBUG |
| 897 | help |
| 898 | Let INT10 (i.e. character output) calls print messages to debug output. |
| 899 | |
| 900 | Note: This option will increase the size of the coreboot image. |
| 901 | |
| 902 | If unsure, say N. |
| 903 | |
| 904 | config X86EMU_DEBUG_INTERRUPTS |
| 905 | bool "Log intXX calls" |
| 906 | default n |
| 907 | depends on X86EMU_DEBUG |
| 908 | help |
| 909 | Print messages related to interrupt handling. |
| 910 | |
| 911 | Note: This option will increase the size of the coreboot image. |
| 912 | |
| 913 | If unsure, say N. |
| 914 | |
| 915 | config X86EMU_DEBUG_CHECK_VMEM_ACCESS |
| 916 | bool "Log special memory accesses" |
| 917 | default n |
| 918 | depends on X86EMU_DEBUG |
| 919 | help |
| 920 | Print messages related to accesses to certain areas of the virtual |
| 921 | memory (e.g. BDA (BIOS Data Area) or interrupt vectors) |
| 922 | |
| 923 | Note: This option will increase the size of the coreboot image. |
| 924 | |
| 925 | If unsure, say N. |
| 926 | |
| 927 | config X86EMU_DEBUG_MEM |
| 928 | bool "Log all memory accesses" |
| 929 | default n |
| 930 | depends on X86EMU_DEBUG |
| 931 | help |
| 932 | Print memory accesses made by option ROM. |
| 933 | Note: This also includes accesses to fetch instructions. |
| 934 | |
| 935 | Note: This option will increase the size of the coreboot image. |
| 936 | |
| 937 | If unsure, say N. |
| 938 | |
| 939 | config X86EMU_DEBUG_IO |
| 940 | bool "Log IO accesses" |
| 941 | default n |
| 942 | depends on X86EMU_DEBUG |
| 943 | help |
| 944 | Print I/O accesses made by option ROM. |
| 945 | |
| 946 | Note: This option will increase the size of the coreboot image. |
| 947 | |
| 948 | If unsure, say N. |
| 949 | |
Denis 'GNUtoo' Carikli | 4cdc5d6 | 2013-05-15 00:19:49 +0200 | [diff] [blame] | 950 | config X86EMU_DEBUG_TIMINGS |
| 951 | bool "Output timing information" |
| 952 | default n |
| 953 | depends on X86EMU_DEBUG && UDELAY_LAPIC && HAVE_MONOTONIC_TIMER |
| 954 | help |
| 955 | Print timing information needed by i915tool. |
| 956 | |
| 957 | If unsure, say N. |
| 958 | |
Stefan Reinauer | dfb098d | 2011-11-17 12:50:54 -0800 | [diff] [blame] | 959 | config DEBUG_TPM |
| 960 | bool "Output verbose TPM debug messages" |
| 961 | default n |
Vadim Bendebury | 2658870 | 2016-06-02 20:43:19 -0700 | [diff] [blame] | 962 | depends on TPM || TPM2 |
Stefan Reinauer | dfb098d | 2011-11-17 12:50:54 -0800 | [diff] [blame] | 963 | help |
| 964 | This option enables additional TPM related debug messages. |
| 965 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 966 | config DEBUG_SPI_FLASH |
| 967 | bool "Output verbose SPI flash debug messages" |
| 968 | default n |
| 969 | depends on SPI_FLASH |
| 970 | help |
| 971 | This option enables additional SPI flash related debug messages. |
| 972 | |
Kyösti Mälkki | 3be80cc | 2013-06-06 10:46:37 +0300 | [diff] [blame] | 973 | config DEBUG_USBDEBUG |
| 974 | bool "Output verbose USB 2.0 EHCI debug dongle messages" |
| 975 | default n |
| 976 | depends on USBDEBUG |
| 977 | help |
| 978 | This option enables additional USB 2.0 debug dongle related messages. |
| 979 | |
| 980 | Select this to debug the connection of usbdebug dongle. Note that |
| 981 | you need some other working console to receive the messages. |
| 982 | |
Stefan Reinauer | 8e07382 | 2012-04-04 00:07:22 +0200 | [diff] [blame] | 983 | if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8 |
| 984 | # Only visible with the right southbridge and loglevel. |
| 985 | config DEBUG_INTEL_ME |
| 986 | bool "Verbose logging for Intel Management Engine" |
| 987 | default n |
| 988 | help |
| 989 | Enable verbose logging for Intel Management Engine driver that |
| 990 | is present on Intel 6-series chipsets. |
| 991 | endif |
| 992 | |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 993 | config TRACE |
| 994 | bool "Trace function calls" |
| 995 | default n |
| 996 | help |
| 997 | If enabled, every function will print information to console once |
| 998 | the function is entered. The syntax is ~0xaaaabbbb(0xccccdddd) |
| 999 | the 0xaaaabbbb is the actual function and 0xccccdddd is EIP |
Ben Gardner | 8420ad4 | 2015-11-18 10:46:53 -0600 | [diff] [blame] | 1000 | of calling function. Please note some printk related functions |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 1001 | are omitted from trace to have good looking console dumps. |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame] | 1002 | |
| 1003 | config DEBUG_COVERAGE |
| 1004 | bool "Debug code coverage" |
| 1005 | default n |
| 1006 | depends on COVERAGE |
| 1007 | help |
| 1008 | If enabled, the code coverage hooks in coreboot will output some |
| 1009 | information about the coverage data that is dumped. |
| 1010 | |
Jonathan Neuschäfer | fc04f9b | 2016-06-29 21:59:32 +0200 | [diff] [blame] | 1011 | config DEBUG_BOOT_STATE |
| 1012 | bool "Debug boot state machine" |
| 1013 | default n |
| 1014 | help |
| 1015 | Control debugging of the boot state machine. When selected displays |
| 1016 | the state boundaries in ramstage. |
| 1017 | |
Jonathan Neuschäfer | 538e446 | 2016-08-22 19:37:15 +0200 | [diff] [blame] | 1018 | config DEBUG_PRINT_PAGE_TABLES |
| 1019 | bool "Print the page tables after construction" |
| 1020 | default n |
| 1021 | depends on ARCH_RISCV |
| 1022 | help |
| 1023 | After the page tables have been built, print them on the debug |
| 1024 | console. |
| 1025 | |
Nico Huber | e84e625 | 2016-10-05 17:43:56 +0200 | [diff] [blame] | 1026 | config DEBUG_ADA_CODE |
| 1027 | bool "Compile debug code in Ada sources" |
| 1028 | default n |
| 1029 | help |
| 1030 | Add the compiler switch `-gnata` to compile code guarded by |
| 1031 | `pragma Debug`. |
| 1032 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 1033 | endmenu |
| 1034 | |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1035 | |
| 1036 | ############################################################################### |
| 1037 | # Set variables with no prompt - these can be set anywhere, and putting at |
| 1038 | # the end of this file gives the most flexibility. |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 1039 | config ENABLE_APIC_EXT_ID |
| 1040 | bool |
| 1041 | default n |
Myles Watson | 2e67273 | 2009-11-12 16:38:03 +0000 | [diff] [blame] | 1042 | |
| 1043 | config WARNINGS_ARE_ERRORS |
| 1044 | bool |
Edward O'Callaghan | 63f6dc7 | 2014-11-18 03:17:54 +1100 | [diff] [blame] | 1045 | default y |
Patrick Georgi | 436f99b | 2009-11-27 16:55:13 +0000 | [diff] [blame] | 1046 | |
Peter Stuge | 51eafde | 2010-10-13 06:23:02 +0000 | [diff] [blame] | 1047 | # The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE, |
| 1048 | # POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are |
| 1049 | # mutually exclusive. One of these options must be selected in the |
| 1050 | # mainboard Kconfig if the chipset supports enabling and disabling of |
| 1051 | # the power button. Chipset code uses the ENABLE_POWER_BUTTON option set |
| 1052 | # in mainboard/Kconfig to know if the button should be enabled or not. |
| 1053 | |
| 1054 | config POWER_BUTTON_DEFAULT_ENABLE |
| 1055 | def_bool n |
| 1056 | help |
| 1057 | Select when the board has a power button which can optionally be |
| 1058 | disabled by the user. |
| 1059 | |
| 1060 | config POWER_BUTTON_DEFAULT_DISABLE |
| 1061 | def_bool n |
| 1062 | help |
| 1063 | Select when the board has a power button which can optionally be |
| 1064 | enabled by the user, e.g. when the board ships with a jumper over |
| 1065 | the power switch contacts. |
| 1066 | |
| 1067 | config POWER_BUTTON_FORCE_ENABLE |
| 1068 | def_bool n |
| 1069 | help |
| 1070 | Select when the board requires that the power button is always |
| 1071 | enabled. |
| 1072 | |
| 1073 | config POWER_BUTTON_FORCE_DISABLE |
| 1074 | def_bool n |
| 1075 | help |
| 1076 | Select when the board requires that the power button is always |
| 1077 | disabled, e.g. when it has been hardwired to ground. |
| 1078 | |
| 1079 | config POWER_BUTTON_IS_OPTIONAL |
| 1080 | bool |
| 1081 | default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE |
| 1082 | default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE) |
| 1083 | help |
| 1084 | Internal option that controls ENABLE_POWER_BUTTON visibility. |
Duncan Laurie | 7274800 | 2013-10-31 08:26:23 -0700 | [diff] [blame] | 1085 | |
| 1086 | config REG_SCRIPT |
| 1087 | bool |
Duncan Laurie | 7274800 | 2013-10-31 08:26:23 -0700 | [diff] [blame] | 1088 | default n |
| 1089 | help |
| 1090 | Internal option that controls whether we compile in register scripts. |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 1091 | |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 1092 | config MAX_REBOOT_CNT |
| 1093 | int |
| 1094 | default 3 |
Timothy Pearson | 17ada2e | 2015-03-18 01:31:34 -0500 | [diff] [blame] | 1095 | help |
| 1096 | Internal option that sets the maximum number of bootblock executions allowed |
| 1097 | with the normal image enabled before assuming the normal image is defective |
Vadim Bendebury | 9c9c336 | 2014-07-23 09:40:02 -0700 | [diff] [blame] | 1098 | and switching to the fallback image. |
Martin Roth | 59ff340 | 2016-02-09 09:06:46 -0700 | [diff] [blame] | 1099 | |
Lee Leahy | fc3741f | 2016-05-26 17:12:17 -0700 | [diff] [blame] | 1100 | config CREATE_BOARD_CHECKLIST |
| 1101 | bool |
| 1102 | default n |
| 1103 | help |
| 1104 | When selected, creates a webpage showing the implementation status for |
| 1105 | the board. Routines highlighted in green are complete, yellow are |
| 1106 | optional and red are required and must be implemented. A table is |
| 1107 | produced for each stage of the boot process except the bootblock. The |
| 1108 | red items may be used as an implementation checklist for the board. |
| 1109 | |
| 1110 | config MAKE_CHECKLIST_PUBLIC |
| 1111 | bool |
| 1112 | default n |
| 1113 | help |
| 1114 | When selected, build/$(CONFIG_MAINBOARD_PART_NUMBER)_checklist.html |
| 1115 | is copied into the Documentation/$(CONFIG_MAINBOARD_VENDOR)/Board |
| 1116 | directory. |
| 1117 | |
| 1118 | config CHECKLIST_DATA_FILE_LOCATION |
| 1119 | string |
| 1120 | help |
| 1121 | Location of the <stage>_complete.dat and <stage>_optional.dat files |
| 1122 | that are consumed during checklist processing. <stage>_complete.dat |
| 1123 | contains the symbols that are expected to be in the resulting image. |
| 1124 | <stage>_optional.dat is a subset of <stage>_complete.dat and contains |
| 1125 | a list of weak symbols which the resulting image may consume. Other |
| 1126 | symbols contained only in <stage>_complete.dat will be flagged as |
| 1127 | required and not implemented if a weak implementation is found in the |
| 1128 | resulting image. |
Nico Huber | e0ed902 | 2016-10-07 12:58:17 +0200 | [diff] [blame] | 1129 | |
| 1130 | config RAMSTAGE_ADA |
| 1131 | def_bool n |
| 1132 | help |
| 1133 | Selected by features that use Ada code in ramstage. |
Nico Huber | c83239e | 2016-10-05 17:46:49 +0200 | [diff] [blame] | 1134 | |
| 1135 | config RAMSTAGE_LIBHWBASE |
| 1136 | def_bool n |
| 1137 | select RAMSTAGE_ADA |
| 1138 | help |
| 1139 | Selected by features that require `libhwbase` in ramstage. |
| 1140 | |
| 1141 | config HWBASE_DYNAMIC_MMIO |
| 1142 | def_bool y |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -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 | |
| 1154 | config EARLY_CBMEM_INIT |
| 1155 | def_bool !LATE_CBMEM_INIT |
| 1156 | |
| 1157 | config EARLY_CBMEM_LIST |
| 1158 | bool |
| 1159 | default n |
| 1160 | help |
| 1161 | Enable display of CBMEM during romstage and postcar. |
| 1162 | |
| 1163 | config RELOCATABLE_MODULES |
| 1164 | bool |
| 1165 | help |
| 1166 | If RELOCATABLE_MODULES is selected then support is enabled for |
| 1167 | building relocatable modules in the RAM stage. Those modules can be |
| 1168 | loaded anywhere and all the relocations are handled automatically. |
| 1169 | |
| 1170 | config NO_STAGE_CACHE |
| 1171 | bool |
| 1172 | help |
| 1173 | Do not save any component in stage cache for resume path. On resume, |
| 1174 | all components would be read back from CBFS again. |
| 1175 | |
| 1176 | config GENERIC_GPIO_LIB |
| 1177 | bool |
| 1178 | help |
| 1179 | If enabled, compile the generic GPIO library. A "generic" GPIO |
| 1180 | implies configurability usually found on SoCs, particularly the |
| 1181 | ability to control internal pull resistors. |
| 1182 | |
| 1183 | config GENERIC_SPD_BIN |
| 1184 | bool |
| 1185 | help |
| 1186 | If enabled, add support for adding spd.hex files in cbfs as spd.bin |
| 1187 | and locating it runtime to load SPD. Additionally provide provision to |
| 1188 | fetch SPD over SMBus. |
| 1189 | |
| 1190 | config DIMM_MAX |
| 1191 | int |
| 1192 | default 4 |
| 1193 | depends on GENERIC_SPD_BIN |
| 1194 | help |
| 1195 | Total number of memory DIMM slots available on motherboard. |
| 1196 | It is multiplication of number of channel to number of DIMMs per |
| 1197 | channel |
| 1198 | |
| 1199 | config DIMM_SPD_SIZE |
| 1200 | int |
| 1201 | default 256 |
Martin Roth | 8e4aafb | 2016-12-15 15:25:15 -0700 | [diff] [blame] | 1202 | help |
| 1203 | Total SPD size that will be used for DIMM. |
| 1204 | Ex: DDR3 256, DDR4 512. |
| 1205 | |
| 1206 | config BOARD_ID_AUTO |
| 1207 | bool |
| 1208 | default n |
| 1209 | help |
| 1210 | Mainboards that can read a board ID from the hardware straps |
| 1211 | (ie. GPIO) select this configuration option. |
| 1212 | |
| 1213 | config BOARD_ID_MANUAL |
| 1214 | bool |
| 1215 | default n |
| 1216 | depends on !BOARD_ID_AUTO |
| 1217 | help |
| 1218 | If you want to maintain a board ID, but the hardware does not |
| 1219 | have straps to automatically determine the ID, you can say Y |
| 1220 | here and add a file named 'board_id' to CBFS. If you don't know |
| 1221 | what this is about, say N. |
| 1222 | |
| 1223 | config BOOTBLOCK_CUSTOM |
| 1224 | # To be selected by arch, SoC or mainboard if it does not want use the normal |
| 1225 | # src/lib/bootblock.c#main() C entry point. |
| 1226 | bool |
| 1227 | |
| 1228 | config C_ENVIRONMENT_BOOTBLOCK |
| 1229 | # To be selected by arch or platform if a C environment is available during the |
| 1230 | # bootblock. Normally this signifies availability of RW memory (e.g. SRAM). |
| 1231 | bool |
| 1232 | |
Martin Roth | 75e5cb7 | 2016-12-15 15:05:37 -0700 | [diff] [blame] | 1233 | ############################################################################### |
| 1234 | # Set default values for symbols created before mainboards. This allows the |
| 1235 | # option to be displayed in the general menu, but the default to be loaded in |
| 1236 | # the mainboard if desired. |
| 1237 | config COMPRESS_RAMSTAGE |
| 1238 | default y if !UNCOMPRESSED_RAMSTAGE |
| 1239 | |
| 1240 | config COMPRESS_PRERAM_STAGES |
| 1241 | depends on !ARCH_X86 |
| 1242 | default y |
| 1243 | |
| 1244 | config INCLUDE_CONFIG_FILE |
| 1245 | default y |
| 1246 | |
| 1247 | config BOARD_ID_STRING |
| 1248 | default "(none)" |
| 1249 | depends on BOARD_ID_MANUAL |
| 1250 | |
| 1251 | config BOOTSPLASH_FILE |
| 1252 | depends on BOOTSPLASH_IMAGE |
| 1253 | default "bootsplash.jpg" |
| 1254 | |
| 1255 | config CBFS_SIZE |
| 1256 | default ROM_SIZE |