blob: e7fd0aff983e633d0c5e96904d45db8e6cc6976f [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001##
Patrick Georgi0588d192009-08-12 15:00:51 +00002##
Patrick Georgi0588d192009-08-12 15:00:51 +00003##
Patrick Georgic49d7a32020-05-08 22:50:46 +02004## SPDX-License-Identifier: GPL-2.0-only
Patrick Georgi0588d192009-08-12 15:00:51 +00005
Uwe Hermannad8c95f2012-04-12 22:00:03 +02006mainmenu "coreboot configuration"
Patrick Georgi0588d192009-08-12 15:00:51 +00007
Uwe Hermannc04be932009-10-05 13:55:28 +00008menu "General setup"
9
Lee Leahybb70c402017-04-03 07:38:20 -070010config COREBOOT_BUILD
11 bool
12 default y
13
Uwe Hermannc04be932009-10-05 13:55:28 +000014config LOCALVERSION
Uwe Hermann168b11b2009-10-07 16:15:40 +000015 string "Local version string"
Uwe Hermannc04be932009-10-05 13:55:28 +000016 help
17 Append an extra string to the end of the coreboot version.
18
Uwe Hermann168b11b2009-10-07 16:15:40 +000019 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 Heymans6f751542019-06-08 11:28:52 +020024config CONFIGURABLE_CBFS_PREFIX
25 bool
26 help
27 Select this to prompt to use to configure the prefix for cbfs files.
28
Arthur Heymans6010eb22019-10-06 13:34:20 +020029choice
30 prompt "CBFS prefix to use"
31 depends on CONFIGURABLE_CBFS_PREFIX
32 default CBFS_PREFIX_FALLBACK
33
34config CBFS_PREFIX_FALLBACK
35 bool "fallback"
36
37config CBFS_PREFIX_NORMAL
38 bool "normal"
39
40config CBFS_PREFIX_DIY
41 bool "Define your own cbfs prefix"
42
43endchoice
44
Patrick Georgi4b8a2412010-02-09 19:35:16 +000045config CBFS_PREFIX
Arthur Heymans6010eb22019-10-06 13:34:20 +020046 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 Georgi4b8a2412010-02-09 19:35:16 +000049 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 Georgi23d89cc2010-03-16 01:17:19 +000053choice
Uwe Hermannad8c95f2012-04-12 22:00:03 +020054 prompt "Compiler to use"
Patrick Georgi23d89cc2010-03-16 01:17:19 +000055 default COMPILER_GCC
56 help
57 This option allows you to select the compiler used for building
58 coreboot.
Martin Rotha5a628e82016-01-19 12:01:09 -070059 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 Georgi23d89cc2010-03-16 01:17:19 +000067
68config COMPILER_GCC
69 bool "GCC"
Uwe Hermannad8c95f2012-04-12 22:00:03 +020070 help
71 Use the GNU Compiler Collection (GCC) to build coreboot.
72
73 For details see http://gcc.gnu.org.
74
Patrick Georgi23d89cc2010-03-16 01:17:19 +000075config COMPILER_LLVM_CLANG
Martin Rotha5a628e82016-01-19 12:01:09 -070076 bool "LLVM/clang (TESTING ONLY - Not currently working)"
Uwe Hermannad8c95f2012-04-12 22:00:03 +020077 help
Martin Rotha5a628e82016-01-19 12:01:09 -070078 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 Hermannad8c95f2012-04-12 22:00:03 +020084
85 For details see http://clang.llvm.org.
86
Patrick Georgi23d89cc2010-03-16 01:17:19 +000087endchoice
88
Patrick Georgi9b0de712013-12-29 18:45:23 +010089config ANY_TOOLCHAIN
90 bool "Allow building with any toolchain"
91 default n
Patrick Georgi9b0de712013-12-29 18:45:23 +010092 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 Georgi516a2a72010-03-25 21:45:25 +000098config CCACHE
Uwe Hermannad8c95f2012-04-12 22:00:03 +020099 bool "Use ccache to speed up (re)compilation"
Patrick Georgi516a2a72010-03-25 21:45:25 +0000100 default n
101 help
102 Enables the use of ccache for faster builds.
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200103
104 Requires the ccache utility in your system $PATH.
105
106 For details see https://ccache.samba.org.
Patrick Georgi516a2a72010-03-25 21:45:25 +0000107
Sol Boucher69b88bf2015-02-26 11:47:19 -0800108config FMD_GENPARSER
109 bool "Generate flashmap descriptor parser using flex and bison"
110 default n
Sol Boucher69b88bf2015-02-26 11:47:19 -0800111 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 Rothf411b702017-04-09 19:12:42 -0600117config UTIL_GENPARSER
Denis 'GNUtoo' Carikli780e9312018-01-10 14:35:55 +0100118 bool "Generate SCONFIG & BINCFG parser using flex and bison"
Stefan Reinauer9bf78102010-08-09 13:28:18 +0000119 default n
Stefan Reinauer9bf78102010-08-09 13:28:18 +0000120 help
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200121 Enable this option if you are working on the sconfig device tree
Denis 'GNUtoo' Carikli780e9312018-01-10 14:35:55 +0100122 parser or bincfg and made changes to the .l or .y files.
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200123
Sol Boucher69b88bf2015-02-26 11:47:19 -0800124 Otherwise, say N to use the provided pregenerated scanner/parser.
Stefan Reinauer9bf78102010-08-09 13:28:18 +0000125
Joe Korty6d772522010-05-19 18:41:15 +0000126config USE_OPTION_TABLE
127 bool "Use CMOS for configuration values"
Edwin Beasanteb50c7d2010-07-06 21:05:04 +0000128 depends on HAVE_OPTION_TABLE
Joe Korty6d772522010-05-19 18:41:15 +0000129 help
130 Enable this option if coreboot shall read options from the "CMOS"
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200131 NVRAM instead of using hard-coded values.
Joe Korty6d772522010-05-19 18:41:15 +0000132
Timothy Pearsonf20c6e82015-02-14 16:15:31 -0600133config STATIC_OPTION_TABLE
134 bool "Load default configuration values into CMOS on each boot"
Timothy Pearsonf20c6e82015-02-14 16:15:31 -0600135 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 Schnelle8eee19d2011-05-02 19:53:04 +0000141config COMPRESS_RAMSTAGE
142 bool "Compress ramstage with LZMA"
Subrata Banikb5962a92019-06-08 12:29:02 +0530143 depends on HAVE_RAMSTAGE
Martin Roth75e5cb72016-12-15 15:05:37 -0700144 # Default value set at the end of the file
Sven Schnelle8eee19d2011-05-02 19:53:04 +0000145 help
Arthur Heymans7f229332019-11-08 11:59:25 +0100146 Compress ramstage to save memory in the flash image.
Sven Schnelle8eee19d2011-05-02 19:53:04 +0000147
Julius Werner09f29212015-09-29 13:51:35 -0700148config COMPRESS_PRERAM_STAGES
149 bool "Compress romstage and verstage with LZ4"
Subrata Banikb5962a92019-06-08 12:29:02 +0530150 depends on !ARCH_X86 && (HAVE_ROMSTAGE || HAVE_VERSTAGE)
Martin Roth75e5cb72016-12-15 15:05:37 -0700151 # Default value set at the end of the file
Julius Werner09f29212015-09-29 13:51:35 -0700152 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 Werner99f46832018-05-16 14:14:04 -0700159config COMPRESS_BOOTBLOCK
160 bool
Subrata Banikb5962a92019-06-08 12:29:02 +0530161 depends on HAVE_BOOTBLOCK
Julius Werner99f46832018-05-16 14:14:04 -0700162 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äfer2930a722018-09-29 17:42:52 +0200167 speed. Since using this option usually requires changes to the
Julius Werner99f46832018-05-16 14:14:04 -0700168 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-Stanciud367b002011-06-19 03:03:28 +0200172config INCLUDE_CONFIG_FILE
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200173 bool "Include the coreboot .config file into the ROM image"
Martin Roth75e5cb72016-12-15 15:05:37 -0700174 # Default value set at the end of the file
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200175 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 Forsi53847a22014-07-22 18:00:56 +0200180 Saying Y here will increase the image size by 2-3KB.
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200181
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 Goodrichf0269122012-05-18 11:18:47 -0600195
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200196 Name Offset Type Size
Elyes HAOUAS2119d0b2020-02-16 10:01:33 +0100197 cmos_layout.bin 0x0 CMOS layout 1159
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200198 fallback/romstage 0x4c0 stage 339756
Daniele Forsi53847a22014-07-22 18:00:56 +0200199 fallback/ramstage 0x53440 stage 186664
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200200 fallback/payload 0x80dc0 payload 51526
201 config 0x8d740 raw 3324
202 (empty) 0x8e480 null 3610440
Cristian Măgherușan-Stanciud367b002011-06-19 03:03:28 +0200203
Vadim Bendebury9202473d2011-09-21 14:46:43 -0700204config COLLECT_TIMESTAMPS
205 bool "Create a table of timestamps collected during boot"
Paul Menzel4e4a7632015-10-11 11:57:44 +0200206 default y if ARCH_X86
Vadim Bendebury9202473d2011-09-21 14:46:43 -0700207 help
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200208 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 Rothb22bbe22018-03-07 15:32:16 -0700211config 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älkki8b93cb72020-01-09 08:41:46 +0200216 Print the timestamps to the debug console if enabled at level info.
Martin Rothb22bbe22018-03-07 15:32:16 -0700217
Patrick Georgi7e9b9d82012-04-30 21:06:10 +0200218config USE_BLOBS
219 bool "Allow use of binary-only repository"
Felix Helda6b887e2019-12-28 19:10:12 +0100220 default y
Patrick Georgi7e9b9d82012-04-30 21:06:10 +0200221 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 Dawson20ce4002019-10-28 15:55:03 -0600226config 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 Reinauerd37ab452012-12-18 16:23:28 -0800240config COVERAGE
241 bool "Code coverage support"
242 depends on COMPILER_GCC
Stefan Reinauerd37ab452012-12-18 16:23:28 -0800243 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 Salsamendiab37e9a2017-06-11 21:07:31 -0700248config 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 Reinauer58470e32014-10-17 13:08:36 +0200256config RELOCATABLE_RAMSTAGE
Kyösti Mälkki730df3c2016-06-18 07:39:31 +0300257 bool
Nico Huberd83bd532019-12-08 12:05:21 +0100258 default y if ARCH_X86
Vladimir Serbinenko633352c2015-05-30 22:21:37 +0200259 select RELOCATABLE_MODULES
Stefan Reinauer58470e32014-10-17 13:08:36 +0200260 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älkki6766f4f2019-12-18 00:19:06 +0200267choice
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
272config 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älkki0a4457f2019-08-01 20:29:14 +0300278config TSEG_STAGE_CACHE
Kyösti Mälkki6766f4f2019-12-18 00:19:06 +0200279 bool "TSEG"
280 depends on SMM_TSEG
Stefan Reinauer58470e32014-10-17 13:08:36 +0200281 help
Kyösti Mälkki0a4457f2019-08-01 20:29:14 +0300282 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
286config CBMEM_STAGE_CACHE
Kyösti Mälkki6766f4f2019-12-18 00:19:06 +0200287 bool "CBMEM"
288 depends on !SMM_TSEG
Kyösti Mälkki0a4457f2019-08-01 20:29:14 +0300289 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 Reinauer58470e32014-10-17 13:08:36 +0200299
Kyösti Mälkki6766f4f2019-12-18 00:19:06 +0200300endchoice
301
Stefan Reinauer58470e32014-10-17 13:08:36 +0200302config UPDATE_IMAGE
303 bool "Update existing coreboot.rom image"
Stefan Reinauer58470e32014-10-17 13:08:36 +0200304 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 Roth5942e062016-01-20 14:59:21 -0700310 If unsure, select 'N'
311
Konstantin Aladyshev6544cb32015-01-24 18:52:10 +0400312config 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
321config BOOTSPLASH_FILE
322 string "Bootsplash path and filename"
323 depends on BOOTSPLASH_IMAGE
Martin Roth75e5cb72016-12-15 15:05:37 -0700324 # Default value set at the end of the file
Konstantin Aladyshev6544cb32015-01-24 18:52:10 +0400325 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 Huber94cdec62019-06-06 19:36:02 +0200329config HAVE_RAMPAYLOAD
330 bool
331
Subrata Banik7e893a02019-05-06 14:17:41 +0530332config RAMPAYLOAD
333 bool "Enable coreboot flow without executing ramstage"
Subrata Banik86dbe0f2019-06-28 18:18:37 +0530334 default y if ARCH_X86
Nico Huber94cdec62019-06-06 19:36:02 +0200335 depends on HAVE_RAMPAYLOAD
Subrata Banik7e893a02019-05-06 14:17:41 +0530336 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 Banik37bead62020-02-09 19:13:52 +0530347config HAVE_CONFIGURABLE_RAMSTAGE
348 bool
349
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000350config CONFIGURABLE_RAMSTAGE
351 bool "Enable a configurable ramstage."
352 default y if ARCH_X86
Subrata Banik37bead62020-02-09 19:13:52 +0530353 depends on HAVE_CONFIGURABLE_RAMSTAGE
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000354 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
360config MINIMAL_PCI_SCANNING
361 bool "Enable minimal PCI scanning"
Subrata Banik1cb26a62020-02-09 19:35:16 +0530362 depends on CONFIGURABLE_RAMSTAGE && PCI
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000363 help
Subrata Banik1cb26a62020-02-09 19:35:16 +0530364 If this option is enabled, coreboot will scan only PCI devices
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000365 marked as mandatory in devicetree.cb
Uwe Hermannc04be932009-10-05 13:55:28 +0000366endmenu
367
Martin Roth026e4dc2015-06-19 23:17:15 -0600368menu "Mainboard"
369
Stefan Reinauera48ca842015-04-04 01:58:28 +0200370source "src/mainboard/Kconfig"
Stefan Reinauer8aedcbc2010-12-16 23:37:17 +0000371
Marshall Dawsone9375132016-09-04 08:38:33 -0600372config 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 Shaikhf2419982018-06-21 18:50:48 -0700383config 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 Georgi8a3592e2015-09-16 18:10:52 +0200394config FMDFILE
395 string "fmap description file in fmd format"
Patrick Georgi5d7ab392015-12-12 00:23:15 +0100396 default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
Patrick Georgi8a3592e2015-09-16 18:10:52 +0200397 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 Heymans965881b2019-09-25 13:18:52 +0200403config 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 Rothda1ca202015-12-26 16:51:16 -0700417endmenu
418
Martin Rothb09a5692016-01-24 19:38:33 -0700419# load site-local kconfig to allow user specific defaults and overrides
420source "site-local/Kconfig"
421
Vladimir Serbinenkoa9db82f2014-10-16 13:21:47 +0200422config SYSTEM_TYPE_LAPTOP
Martin Roth595e7772015-04-26 18:53:26 -0600423 default n
424 bool
Vladimir Serbinenkoa9db82f2014-10-16 13:21:47 +0200425
Duncan Laurie8312df42019-02-01 11:33:57 -0800426config SYSTEM_TYPE_TABLET
427 default n
428 bool
429
430config SYSTEM_TYPE_DETACHABLE
431 default n
432 bool
433
434config SYSTEM_TYPE_CONVERTIBLE
435 default n
436 bool
437
Werner Zehc0fb3612016-01-14 15:08:36 +0100438config 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 Hermann63a8f2a2009-10-26 21:42:13 +0000446menu "Chipset"
447
Duncan Lauried2119762015-06-08 18:11:56 -0700448comment "SoC"
Chris Chingaa8e5d32017-10-20 10:43:39 -0600449source "src/soc/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000450comment "CPU"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200451source "src/cpu/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000452comment "Northbridge"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200453source "src/northbridge/*/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000454comment "Southbridge"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200455source "src/southbridge/*/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000456comment "Super I/O"
Omar Pakker57603e22016-07-29 23:31:45 +0200457source "src/superio/*/*/Kconfig"
Sven Schnelle7592e8b2011-01-27 11:43:03 +0000458comment "Embedded Controllers"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200459source "src/ec/acpi/Kconfig"
460source "src/ec/*/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000461
Martin Roth59aa2b12015-06-20 16:17:12 -0600462source "src/southbridge/intel/common/firmware/Kconfig"
Martin Rothe1523ec2015-06-19 22:30:43 -0600463source "src/vendorcode/*/Kconfig"
Martin Roth59aa2b12015-06-20 16:17:12 -0600464
Martin Rothe1523ec2015-06-19 22:30:43 -0600465source "src/arch/*/Kconfig"
466
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000467endmenu
Patrick Georgi0588d192009-08-12 15:00:51 +0000468
Stefan Reinauera48ca842015-04-04 01:58:28 +0200469source "src/device/Kconfig"
Stefan Reinauer95a63962012-11-13 17:00:01 -0800470
Rudolf Marekd9c25492010-05-16 15:31:53 +0000471menu "Generic Drivers"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200472source "src/drivers/*/Kconfig"
Stefan Reinauer86ddd732016-03-11 20:22:28 -0800473source "src/drivers/*/*/Kconfig"
Lee Leahy48dbc662017-05-08 16:56:03 -0700474source "src/commonlib/storage/Kconfig"
Rudolf Marekd9c25492010-05-16 15:31:53 +0000475endmenu
476
Philipp Deppenwiese1899fbe2017-10-16 17:09:33 +0200477menu "Security"
478
479source "src/security/Kconfig"
Wim Vervoorne32d16f2019-11-14 14:10:28 +0100480source "src/vendorcode/eltan/security/Kconfig"
Philipp Deppenwiese1899fbe2017-10-16 17:09:33 +0200481
482endmenu
483
Martin Roth09210a12016-05-17 11:28:23 -0600484source "src/acpi/Kconfig"
485
Aaron Durbin4a36c4e2016-08-11 11:02:26 -0500486# 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.
489config BOOT_DEVICE_NOT_SPI_FLASH
490 bool
491 default n
492
493config BOOT_DEVICE_SPI_FLASH
494 bool
495 default y if !BOOT_DEVICE_NOT_SPI_FLASH
496 default n
497
Aaron Durbin16c173f2016-08-11 14:04:10 -0500498config 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 Durbine8e118d2016-08-12 15:00:10 -0500505config BOOT_DEVICE_SUPPORTS_WRITES
506 bool
507 default n
508 help
509 Indicate that the platform has writable boot device
510 support.
511
Patrick Georgi0770f252015-04-22 13:28:21 +0200512config RTC
513 bool
514 default n
515
Patrick Georgi0588d192009-08-12 15:00:51 +0000516config HEAP_SIZE
517 hex
Marty E. Plummer0987e432019-04-22 20:46:27 -0500518 default 0x100000 if FLATTENED_DEVICE_TREE
Myles Watson04000f42009-10-16 19:12:49 +0000519 default 0x4000
Patrick Georgi0588d192009-08-12 15:00:51 +0000520
Julius Wernerc3e7c4e2014-09-19 13:18:16 -0700521config STACK_SIZE
522 hex
Julius Werner66a476a2015-10-12 16:45:21 -0700523 default 0x1000 if ARCH_X86
524 default 0x0
Julius Wernerc3e7c4e2014-09-19 13:18:16 -0700525
Patrick Georgi0588d192009-08-12 15:00:51 +0000526config MAX_CPUS
527 int
528 default 1
529
Stefan Reinauera48ca842015-04-04 01:58:28 +0200530source "src/console/Kconfig"
Patrick Georgi0588d192009-08-12 15:00:51 +0000531
532config HAVE_ACPI_RESUME
533 bool
534 default n
Kyösti Mälkki7cd2c072018-06-03 23:04:28 +0300535 depends on RELOCATABLE_RAMSTAGE
Patrick Georgi0588d192009-08-12 15:00:51 +0000536
Wim Vervoornbccc7e72020-01-15 11:31:25 +0100537config DISABLE_ACPI_HIBERNATE
538 bool
539 default n
540 help
541 Removes S4 from the available sleepstates
542
Aaron Durbin87c9fae2016-01-22 15:26:04 -0600543config 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älkki76c43862019-07-01 17:25:41 +0300552config NO_MONOTONIC_TIMER
Aaron Durbina4217912013-04-29 22:31:51 -0500553 def_bool n
Kyösti Mälkki76c43862019-07-01 17:25:41 +0300554
555config HAVE_MONOTONIC_TIMER
556 bool
557 depends on !NO_MONOTONIC_TIMER
Kyösti Mälkkib28b6b52019-07-01 15:38:25 +0300558 default y
Aaron Durbina4217912013-04-29 22:31:51 -0500559 help
560 The board/chipset provides a monotonic timer.
561
Aaron Durbine5e36302014-09-25 10:05:15 -0500562config GENERIC_UDELAY
Kyösti Mälkki76c43862019-07-01 17:25:41 +0300563 bool
Aaron Durbine5e36302014-09-25 10:05:15 -0500564 depends on HAVE_MONOTONIC_TIMER
Kyösti Mälkki76c43862019-07-01 17:25:41 +0300565 default y if !ARCH_X86
Aaron Durbine5e36302014-09-25 10:05:15 -0500566 help
567 The board/chipset uses a generic udelay function utilizing the
568 monotonic timer.
569
Aaron Durbin340ca912013-04-30 09:58:12 -0500570config TIMER_QUEUE
571 def_bool n
572 depends on HAVE_MONOTONIC_TIMER
573 help
Kyösti Mälkkiecd84242013-09-13 07:57:49 +0300574 Provide a timer queue for performing time-based callbacks.
Aaron Durbin340ca912013-04-30 09:58:12 -0500575
Aaron Durbin4409a5e2013-05-06 12:20:52 -0500576config COOP_MULTITASKING
577 def_bool n
Aaron Durbin38c326d2013-05-06 12:22:23 -0500578 depends on TIMER_QUEUE && ARCH_X86
Aaron Durbin4409a5e2013-05-06 12:20:52 -0500579 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
585config 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 Georgi0588d192009-08-12 15:00:51 +0000592config HAVE_OPTION_TABLE
593 bool
Edwin Beasanteb50c7d2010-07-06 21:05:04 +0000594 default n
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000595 help
596 This variable specifies whether a given board has a cmos.layout
597 file containing NVRAM/CMOS bit definitions.
Edwin Beasanteb50c7d2010-07-06 21:05:04 +0000598 It defaults to 'n' but can be selected in mainboard/*/Kconfig.
Patrick Georgi0588d192009-08-12 15:00:51 +0000599
Patrick Georgi0588d192009-08-12 15:00:51 +0000600config PCI_IO_CFG_EXT
601 bool
602 default n
603
604config IOAPIC
605 bool
606 default n
607
Myles Watson45bb25f2009-09-22 18:49:08 +0000608config USE_WATCHDOG_ON_BOOT
609 bool
610 default n
611
Myles Watson45bb25f2009-09-22 18:49:08 +0000612config GFXUMA
613 bool
Myles Watsond73c1b52009-10-26 15:14:07 +0000614 default n
Myles Watson45bb25f2009-09-22 18:49:08 +0000615 help
616 Enable Unified Memory Architecture for graphics.
617
Myles Watsonb8e20272009-10-15 13:35:47 +0000618config HAVE_MP_TABLE
619 bool
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000620 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 Watsonb8e20272009-10-15 13:35:47 +0000625
626config HAVE_PIRQ_TABLE
627 bool
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000628 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 Watsonb8e20272009-10-15 13:35:47 +0000633
Vladimir Serbinenkoc21e0732014-10-16 12:48:19 +0200634config COMMON_FADT
635 bool
636 default n
637
Aaron Durbin9420a522015-11-17 16:31:00 -0600638config ACPI_NHLT
639 bool
640 default n
641 help
642 Build support for NHLT (non HD Audio) ACPI table generation.
643
Myles Watsond73c1b52009-10-26 15:14:07 +0000644#These Options are here to avoid "undefined" warnings.
645#The actual selection and help texts are in the following menu.
646
Uwe Hermann168b11b2009-10-07 16:15:40 +0000647menu "System tables"
Myles Watson45bb25f2009-09-22 18:49:08 +0000648
Myles Watsonb8e20272009-10-15 13:35:47 +0000649config GENERATE_MP_TABLE
Stefan Reinauer56cd70b2012-11-13 17:33:08 -0800650 prompt "Generate an MP table" if HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
651 bool
652 default HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000653 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 Watson45bb25f2009-09-22 18:49:08 +0000658
Myles Watsonb8e20272009-10-15 13:35:47 +0000659config GENERATE_PIRQ_TABLE
Stefan Reinauer56cd70b2012-11-13 17:33:08 -0800660 prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE
661 bool
662 default HAVE_PIRQ_TABLE
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000663 help
664 Generate a PIRQ table for this board.
665
666 If unsure, say Y.
Myles Watson45bb25f2009-09-22 18:49:08 +0000667
Sven Schnelle164bcfd2011-08-14 20:56:34 +0200668config 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 Serbinenko0afdec42015-05-30 23:08:26 +0200677config SMBIOS_PROVIDED_BY_MOBO
678 bool
679 default n
680
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200681config MAINBOARD_SERIAL_NUMBER
Nico Huberebd8a4f2017-11-01 09:49:16 +0100682 prompt "SMBIOS Serial Number" if !SMBIOS_PROVIDED_BY_MOBO
683 string
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200684 depends on GENERATE_SMBIOS_TABLES
685 default "123456789"
Martin Roth595e7772015-04-26 18:53:26 -0600686 help
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200687 The Serial Number to store in SMBIOS structures.
688
689config MAINBOARD_VERSION
Nico Huberebd8a4f2017-11-01 09:49:16 +0100690 prompt "SMBIOS Version Number" if !SMBIOS_PROVIDED_BY_MOBO
691 string
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200692 depends on GENERATE_SMBIOS_TABLES
693 default "1.0"
694 help
695 The Version Number to store in SMBIOS structures.
696
697config MAINBOARD_SMBIOS_MANUFACTURER
Nico Huberebd8a4f2017-11-01 09:49:16 +0100698 prompt "SMBIOS Manufacturer" if !SMBIOS_PROVIDED_BY_MOBO
699 string
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200700 depends on GENERATE_SMBIOS_TABLES
701 default MAINBOARD_VENDOR
702 help
703 Override the default Manufacturer stored in SMBIOS structures.
704
705config MAINBOARD_SMBIOS_PRODUCT_NAME
Nico Huberebd8a4f2017-11-01 09:49:16 +0100706 prompt "SMBIOS Product name" if !SMBIOS_PROVIDED_BY_MOBO
707 string
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200708 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 Galbert9d231a92018-02-28 13:39:55 +0100713config SMBIOS_ENCLOSURE_TYPE
714 hex
715 depends on GENERATE_SMBIOS_TABLES
716 default 0x09 if SYSTEM_TYPE_LAPTOP
Duncan Laurie8312df42019-02-01 11:33:57 -0800717 default 0x1e if SYSTEM_TYPE_TABLET
718 default 0x1f if SYSTEM_TYPE_CONVERTIBLE
719 default 0x20 if SYSTEM_TYPE_DETACHABLE
Julien Viard de Galbert9d231a92018-02-28 13:39:55 +0100720 default 0x03
721 help
722 System Enclosure or Chassis Types as defined in SMBIOS specification.
Duncan Laurie8312df42019-02-01 11:33:57 -0800723 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 Galbert9d231a92018-02-28 13:39:55 +0100726
Myles Watson45bb25f2009-09-22 18:49:08 +0000727endmenu
728
Martin Roth21c06502016-02-04 19:52:27 -0700729source "payloads/Kconfig"
Peter Stugea758ca22009-09-17 16:21:31 +0000730
Uwe Hermann168b11b2009-10-07 16:15:40 +0000731menu "Debugging"
732
Nico Huberd67edca2018-11-13 19:28:07 +0100733comment "CPU Debug Settings"
Arthur Heymansaae81902019-11-04 21:50:21 +0100734source "src/cpu/*/Kconfig.debug_cpu"
Nico Huberd67edca2018-11-13 19:28:07 +0100735
Arthur Heymans71bd7e42019-10-20 14:20:53 +0200736comment "BLOB Debug Settings"
737source "src/drivers/intel/fsp*/Kconfig.debug_blob"
738
Nico Huberd67edca2018-11-13 19:28:07 +0100739comment "General Debug Settings"
740
Uwe Hermann168b11b2009-10-07 16:15:40 +0000741# TODO: Better help text and detailed instructions.
Patrick Georgi0588d192009-08-12 15:00:51 +0000742config GDB_STUB
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000743 bool "GDB debugging support"
Rudolf Marek65888022012-03-25 20:51:16 +0200744 default n
Arthur Heymans8e980132019-11-04 09:33:04 +0100745 depends on DRIVERS_UART
Patrick Georgi0588d192009-08-12 15:00:51 +0000746 help
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000747 If enabled, you will be able to set breakpoints for gdb debugging.
Stefan Reinauer8677a232010-12-11 20:33:41 +0000748 See src/arch/x86/lib/c_start.S for details.
Patrick Georgi0588d192009-08-12 15:00:51 +0000749
Denis 'GNUtoo' Cariklie4cece02012-06-22 15:56:37 +0200750config GDB_WAIT
Denis 'GNUtoo' Carikli7d234f22015-12-10 21:58:52 +0100751 bool "Wait for a GDB connection in the ramstage"
Denis 'GNUtoo' Cariklie4cece02012-06-22 15:56:37 +0200752 default n
753 depends on GDB_STUB
754 help
Denis 'GNUtoo' Carikli7d234f22015-12-10 21:58:52 +0100755 If enabled, coreboot will wait for a GDB connection in the ramstage.
756
Denis 'GNUtoo' Cariklie4cece02012-06-22 15:56:37 +0200757
Julius Wernerd82e0cf2015-02-17 17:27:23 -0800758config 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 Huber371a6672018-11-13 22:06:40 +0100764config HAVE_DEBUG_GPIO
765 bool
766
767config DEBUG_GPIO
768 bool "Output verbose GPIO debug messages"
769 depends on HAVE_DEBUG_GPIO
770
Stefan Reinauerfe422182012-05-02 16:33:18 -0700771config DEBUG_CBFS
772 bool "Output verbose CBFS debug messages"
773 default n
Stefan Reinauerfe422182012-05-02 16:33:18 -0700774 help
775 This option enables additional CBFS related debug messages.
776
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000777config HAVE_DEBUG_RAM_SETUP
778 def_bool n
779
Uwe Hermann01ce6012010-03-05 10:03:50 +0000780config DEBUG_RAM_SETUP
781 bool "Output verbose RAM init debug messages"
782 default n
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000783 depends on HAVE_DEBUG_RAM_SETUP
Uwe Hermann01ce6012010-03-05 10:03:50 +0000784 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 Watson80e914ff2010-06-01 19:25:31 +0000793config 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 Rottmann0d11f2d2010-08-26 12:46:02 +0000800config HAVE_DEBUG_SMBUS
801 def_bool n
802
Uwe Hermann01ce6012010-03-05 10:03:50 +0000803config DEBUG_SMBUS
804 bool "Output verbose SMBus debug messages"
805 default n
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000806 depends on HAVE_DEBUG_SMBUS
Uwe Hermann01ce6012010-03-05 10:03:50 +0000807 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
814config DEBUG_SMI
815 bool "Output verbose SMI debug messages"
816 default n
817 depends on HAVE_SMI_HANDLER
Nico Huber9e53db42018-06-05 22:34:08 +0200818 select SPI_FLASH_SMM if SPI_CONSOLE || CONSOLE_SPI_FLASH
Uwe Hermann01ce6012010-03-05 10:03:50 +0000819 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 Hermanna953f372010-11-10 00:14:32 +0000826# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
827# printk(BIOS_DEBUG, ...) calls.
828config DEBUG_MALLOC
Stefan Reinauer95a63962012-11-13 17:00:01 -0800829 prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
830 bool
Uwe Hermanna953f372010-11-10 00:14:32 +0000831 default n
Uwe Hermanna953f372010-11-10 00:14:32 +0000832 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-Stanciu9f52ea42011-07-02 00:44:39 +0300838
Kyösti Mälkki66277952018-12-31 15:22:34 +0200839config 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 Hermanna953f372010-11-10 00:14:32 +0000851# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
852# printk(BIOS_DEBUG, ...) calls.
Myles Watson6c9bc012010-09-07 22:30:15 +0000853config REALMODE_DEBUG
Stefan Reinauer95a63962012-11-13 17:00:01 -0800854 prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
855 bool
Myles Watson6c9bc012010-09-07 22:30:15 +0000856 default n
Peter Stuge5015f792010-11-10 02:00:32 +0000857 depends on PCI_OPTION_ROM_RUN_REALMODE
Myles Watson6c9bc012010-09-07 22:30:15 +0000858 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 Hermann01ce6012010-03-05 10:03:50 +0000865config 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
876config 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
887config 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 Reinauer14e22772010-04-27 06:56:47 +0000893
Uwe Hermann01ce6012010-03-05 10:03:50 +0000894 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
900config 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
911config 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
922config 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
934config 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
945config 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
956config 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
967config 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
979config 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
991config 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' Carikli4cdc5d62013-05-15 00:19:49 +02001002config X86EMU_DEBUG_TIMINGS
1003 bool "Output timing information"
1004 default n
Kyösti Mälkki91945fb2019-07-10 15:10:22 +03001005 depends on X86EMU_DEBUG && HAVE_MONOTONIC_TIMER
Denis 'GNUtoo' Carikli4cdc5d62013-05-15 00:19:49 +02001006 help
1007 Print timing information needed by i915tool.
1008
1009 If unsure, say N.
1010
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -07001011config 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 Reinauer8e073822012-04-04 00:07:22 +02001018if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8
1019# Only visible with the right southbridge and loglevel.
1020config 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.
1026endif
1027
Rudolf Marek7f0e9302011-09-02 23:23:41 +02001028config 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 Gardner8420ad42015-11-18 10:46:53 -06001035 of calling function. Please note some printk related functions
Rudolf Marek7f0e9302011-09-02 23:23:41 +02001036 are omitted from trace to have good looking console dumps.
Stefan Reinauerd37ab452012-12-18 16:23:28 -08001037
1038config 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äferfc04f9b2016-06-29 21:59:32 +02001046config 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 Hubere84e6252016-10-05 17:43:56 +02001053config 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 Glass46255f72018-07-12 15:26:07 -06001060config 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
1065config 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 Hermann168b11b2009-10-07 16:15:40 +00001078endmenu
1079
Martin Roth8e4aafb2016-12-15 15:25:15 -07001080
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 Huber3db76532017-05-18 18:07:34 +02001084
1085source "src/lib/Kconfig"
1086
Myles Watson2e672732009-11-12 16:38:03 +00001087config WARNINGS_ARE_ERRORS
1088 bool
Edward O'Callaghan63f6dc72014-11-18 03:17:54 +11001089 default y
Patrick Georgi436f99b2009-11-27 16:55:13 +00001090
Peter Stuge51eafde2010-10-13 06:23:02 +00001091# 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
1098config 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
1104config 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
1111config 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
1117config 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
1123config 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 Laurie72748002013-10-31 08:26:23 -07001129
1130config REG_SCRIPT
1131 bool
Duncan Laurie72748002013-10-31 08:26:23 -07001132 default n
1133 help
1134 Internal option that controls whether we compile in register scripts.
Furquan Shaikh99ac98f2014-04-23 10:18:48 -07001135
Furquan Shaikh99ac98f2014-04-23 10:18:48 -07001136config MAX_REBOOT_CNT
1137 int
1138 default 3
Timothy Pearson17ada2e2015-03-18 01:31:34 -05001139 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 Bendebury9c9c3362014-07-23 09:40:02 -07001142 and switching to the fallback image.
Martin Roth59ff3402016-02-09 09:06:46 -07001143
Martin Roth8e4aafb2016-12-15 15:25:15 -07001144config UNCOMPRESSED_RAMSTAGE
1145 bool
1146
1147config 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 Roth8e4aafb2016-12-15 15:25:15 -07001154config EARLY_CBMEM_LIST
1155 bool
1156 default n
1157 help
1158 Enable display of CBMEM during romstage and postcar.
1159
1160config 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 Roth8e4aafb2016-12-15 15:25:15 -07001167config 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 Roth8e4aafb2016-12-15 15:25:15 -07001174config 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 Roth75e5cb72016-12-15 15:05:37 -07001179###############################################################################
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.
1183config COMPRESS_RAMSTAGE
1184 default y if !UNCOMPRESSED_RAMSTAGE
1185
1186config COMPRESS_PRERAM_STAGES
1187 depends on !ARCH_X86
1188 default y
1189
1190config INCLUDE_CONFIG_FILE
1191 default y
1192
Martin Roth75e5cb72016-12-15 15:05:37 -07001193config BOOTSPLASH_FILE
1194 depends on BOOTSPLASH_IMAGE
1195 default "bootsplash.jpg"
1196
1197config CBFS_SIZE
1198 default ROM_SIZE
Subrata Banikb5962a92019-06-08 12:29:02 +05301199
1200config HAVE_BOOTBLOCK
1201 bool
1202 default y
1203
1204config HAVE_VERSTAGE
1205 bool
1206 depends on VBOOT_SEPARATE_VERSTAGE
1207 default y
1208
1209config HAVE_ROMSTAGE
1210 bool
1211 default y
1212
Subrata Banikb5962a92019-06-08 12:29:02 +05301213config HAVE_RAMSTAGE
1214 bool
1215 default n if RAMPAYLOAD
1216 default y