Debian Codegraph @

src/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 mainmenu "coreboot configuration"
4
5 menu "General setup"
6
7 config LOCALVERSION
8 string "Local version string"
9 help
10 Append an extra string to the end of the coreboot version.
11
12 This can be useful if, for instance, you want to append the
13 respective board's hostname or some other identifying string to
14 the coreboot version number, so that you can easily distinguish
15 boot logs of different boards from each other.
16
17 config CONFIGURABLE_CBFS_PREFIX
18 bool
19 help
20 Select this to prompt to use to configure the prefix for cbfs files.
21
22 choice
23 prompt "CBFS prefix to use"
24 depends on CONFIGURABLE_CBFS_PREFIX
25 default CBFS_PREFIX_FALLBACK
26
27 config CBFS_PREFIX_FALLBACK
28 bool "fallback"
29
30 config CBFS_PREFIX_NORMAL
31 bool "normal"
32
33 config CBFS_PREFIX_DIY
34 bool "Define your own cbfs prefix"
35
36 endchoice
37
38 config CBFS_PREFIX
39 string "CBFS prefix to use" if CBFS_PREFIX_DIY
40 default "fallback" if !CONFIGURABLE_CBFS_PREFIX || CBFS_PREFIX_FALLBACK
41 default "normal" if CBFS_PREFIX_NORMAL
42 help
43 Select the prefix to all files put into the image. It's "fallback"
44 by default, "normal" is a common alternative.
45
46 config DEFAULT_COMPILER_LLVM_CLANG
47 bool
48 help
49 Allows to override the default compiler. This can for instance be
50 set in site-local/Kconfig.
51
52 choice
53 prompt "Compiler to use"
54 default COMPILER_LLVM_CLANG if DEFAULT_COMPILER_LLVM_CLANG
55 default COMPILER_GCC
56 help
57 This option allows you to select the compiler used for building
58 coreboot.
59 You must build the coreboot crosscompiler for the board that you
60 have selected.
61
62 To build all the GCC crosscompilers (takes a LONG time), run:
63 make crossgcc
64
65 For help on individual architectures, run the command:
66 make help_toolchain
67
68 config COMPILER_GCC
69 bool "GCC"
70 help
71 Use the GNU Compiler Collection (GCC) to build coreboot.
72
73 For details see http://gcc.gnu.org.
74
75 config COMPILER_LLVM_CLANG
76 bool "LLVM/clang"
77 depends on ALLOW_EXPERIMENTAL_CLANG || !CLANG_UNSUPPORTED
78 help
79 Use LLVM/clang to build coreboot. To use this, you must build the
80 coreboot version of the clang compiler. Run the command
81 make clang
82 Note that Clang is not currently working on all architectures.
83
84 For details see http://clang.llvm.org.
85
86 endchoice
87
88 config CLANG_UNSUPPORTED
89 bool
90 help
91 Set this flag on platforms that do not support building with the
92 clang compiler.
93
94 config ALLOW_EXPERIMENTAL_CLANG
95 bool "Allow experimental LLVM/Clang"
96 depends on CLANG_UNSUPPORTED
97 help
98 On some architectures CLANG does not work that well.
99 Use this only to try to get CLANG working.
100
101 config ANY_TOOLCHAIN
102 bool "Allow building with any toolchain"
103 default n
104 help
105 Many toolchains break when building coreboot since it uses quite
106 unusual linker features. Unless developers explicitly request it,
107 we'll have to assume that they use their distro compiler by mistake.
108 Make sure that using patched compilers is a conscious decision.
109
110 config CCACHE
111 bool "Use ccache to speed up (re)compilation"
112 help
113 Enables the use of ccache for faster builds.
114
115 Requires the ccache utility in your system $PATH.
116
117 For details see https://ccache.samba.org.
118
119 config LTO
120 bool "Use link time optimization (LTO) (experimental)"
121 default n
122 help
123 Compile with link time optimization. This can often decrease the
124 final binary size, but may increase compilation time.
125
126 config IWYU
127 bool "Test platform with include-what-you-use"
128 help
129 This runs each source file through the include-what-you-use tool
130 to check the header includes.
131
132 config FMD_GENPARSER
133 bool "Generate flashmap descriptor parser using flex and bison"
134 default n
135 help
136 Enable this option if you are working on the flashmap descriptor
137 parser and made changes to fmd_scanner.l or fmd_parser.y.
138
139 Otherwise, say N to use the provided pregenerated scanner/parser.
140
141 config UTIL_GENPARSER
142 bool "Generate parsers for bincfg, sconfig and kconfig locally"
143 default n
144 help
145 Enable this option if you are working on the sconfig device tree
146 parser or bincfg and made changes to the .l or .y files.
147
148 Otherwise, say N to use the provided pregenerated scanner/parser.
149
150 choice
151 prompt "Option backend to use"
152 default USE_CBFS_FILE_OPTION_BACKEND if HAVE_CBFS_FILE_OPTION_BACKEND
153 default USE_MAINBOARD_SPECIFIC_OPTION_BACKEND if HAVE_MAINBOARD_SPECIFIC_OPTION_BACKEND
154 default USE_OPTION_TABLE if NVRAMCUI_SECONDARY_PAYLOAD
155 default USE_UEFI_VARIABLE_STORE if DRIVERS_EFI_VARIABLE_STORE && \
156 PAYLOAD_EDK2 && SMMSTORE_V2
157
158 config OPTION_BACKEND_NONE
159 bool "None"
160
161 config USE_OPTION_TABLE
162 bool "Use CMOS for configuration values"
163 depends on HAVE_OPTION_TABLE
164 help
165 Enable this option if coreboot shall read options from the "CMOS"
166 NVRAM instead of using hard-coded values.
167
168 config USE_CBFS_FILE_OPTION_BACKEND
169 bool "Use CBFS files for configuration values"
170 help
171 Enable this option if coreboot shall read options from files in CBFS.
172 Options can be set using `cbfstool add-int -n option/<option-name> -i value`.
173
174 config USE_UEFI_VARIABLE_STORE
175 bool "Use UEFI variable-store in SPI flash as option backend"
176 depends on DRIVERS_EFI_VARIABLE_STORE
177 depends on SMMSTORE_V2
178 help
179 Enable this option if coreboot shall read/write options from the
180 SMMSTORE region within the SPI flash. The region must be formatted
181 by the payload first before it can be used.
182
183 config USE_MAINBOARD_SPECIFIC_OPTION_BACKEND
184 bool "Use mainboard-specific option backend"
185 depends on HAVE_MAINBOARD_SPECIFIC_OPTION_BACKEND
186 help
187 Use a mainboard-specific mechanism to access runtime-configurable
188 options.
189
190 endchoice
191
192 config STATIC_OPTION_TABLE
193 bool "Load default configuration values into CMOS on each boot"
194 depends on USE_OPTION_TABLE
195 help
196 Enable this option to reset "CMOS" NVRAM values to default on
197 every boot. Use this if you want the NVRAM configuration to
198 never be modified from its default values.
199
200 config MB_COMPRESS_RAMSTAGE_LZ4
201 bool
202 help
203 Select this in a mainboard to use LZ4 compression by default
204
205 choice
206 prompt "Ramstage compression"
207 depends on HAVE_RAMSTAGE && !UNCOMPRESSED_RAMSTAGE
208 default COMPRESS_RAMSTAGE_LZ4 if MB_COMPRESS_RAMSTAGE_LZ4
209 default COMPRESS_RAMSTAGE_LZMA
210
211 config COMPRESS_RAMSTAGE_LZMA
212 bool "Compress ramstage with LZMA"
213 help
214 Compress ramstage with LZMA to save memory in the flash image.
215
216 config COMPRESS_RAMSTAGE_LZ4
217 bool "Compress ramstage with LZ4"
218 help
219 LZ4 doesn't give as good compression as LZMA, but decompresses much
220 faster. For large binaries such as ramstage, it's typically best to
221 use LZMA, but there can be cases where the faster decompression of
222 LZ4 can lead to a faster boot time. Testing on each individual board
223 is typically going to be needed due to the large number of factors
224 that can influence the decision. Binary size, CPU speed, ROM read
225 speed, cache, and other factors all play a part.
226
227 If you're not sure, stick with LZMA.
228
229 endchoice
230
231 config COMPRESS_PRERAM_STAGES
232 bool "Compress romstage and verstage with LZ4"
233 depends on (HAVE_ROMSTAGE || HAVE_VERSTAGE) && NO_XIP_EARLY_STAGES
234 # Default value set at the end of the file
235 help
236 Compress romstage and (if it exists) verstage with LZ4 to save flash
237 space and speed up boot, since the time for reading the image from SPI
238 (and in the vboot case verifying it) is usually much greater than the
239 time spent decompressing. Doesn't work for XIP stages for obvious
240 reasons.
241
242 config COMPRESS_BOOTBLOCK
243 bool
244 depends on HAVE_BOOTBLOCK
245 help
246 This option can be used to compress the bootblock with LZ4 and attach
247 a small self-decompression stub to its front. This can drastically
248 reduce boot time on platforms where the bootblock is loaded over a
249 very slow connection and bootblock size trumps all other factors for
250 speed. Since using this option usually requires changes to the
251 SoC memlayout and possibly extra support code, it should not be
252 user-selectable. (There's no real point in offering this to the user
253 anyway... if it works and saves boot time, you would always want it.)
254
255 config SEPARATE_ROMSTAGE
256 bool "Build a separate romstage"
257 help
258 Build a separate romstage that is loaded by bootblock. With this
259 option disabled the romstage sources are linked inside the bootblock
260 as a single stage.
261
262 config INCLUDE_CONFIG_FILE
263 bool "Include the coreboot .config file into the ROM image"
264 # Default value set at the end of the file
265 help
266 Include the .config file that was used to compile coreboot
267 in the (CBFS) ROM image. This is useful if you want to know which
268 options were used to build a specific coreboot.rom image.
269
270 Saying Y here will increase the image size by 2-3KB.
271
272 You can then use cbfstool to extract the config from a final image:
273
274 cbfstool coreboot.rom extract -n config -f <output file path>
275
276 Alternatively, you can also use cbfstool to print the image
277 contents (including the raw 'config' item we're looking for).
278
279 Example:
280
281 $ cbfstool coreboot.rom print
282 coreboot.rom: 4096 kB, bootblocksize 1008, romsize 4194304,
283 offset 0x0
284 Alignment: 64 bytes
285
286 Name Offset Type Size
287 cmos_layout.bin 0x0 CMOS layout 1159
288 fallback/romstage 0x4c0 stage 339756
289 fallback/ramstage 0x53440 stage 186664
290 fallback/payload 0x80dc0 payload 51526
291 config 0x8d740 raw 3324
292 (empty) 0x8e480 null 3610440
293
294 config COLLECT_TIMESTAMPS
295 bool "Create a table of timestamps collected during boot"
296 default y if ARCH_X86
297 help
298 Make coreboot create a table of timer-ID/timer-value pairs to
299 allow measuring time spent at different phases of the boot process.
300
301 config TIMESTAMPS_ON_CONSOLE
302 bool "Print the timestamp values on the console"
303 default n
304 depends on COLLECT_TIMESTAMPS
305 help
306 Print the timestamps to the debug console if enabled at level info.
307
308 config USE_BLOBS
309 bool "Allow use of binary-only repository"
310 default y
311 help
312 This draws in the blobs repository, which contains binary files that
313 might be required for some chipsets or boards.
314 This flag ensures that a "Free" option remains available for users.
315
316 config USE_AMD_BLOBS
317 bool "Allow AMD blobs repository (with license agreement)"
318 depends on USE_BLOBS
319 help
320 This draws in the amd_blobs repository, which contains binary files
321 distributed by AMD, including VBIOS, PSP bootloaders, SMU firmwares,
322 etc. Selecting this item to download or clone the repo implies your
323 agreement to the AMD license agreement. A copy of the license text
324 may be reviewed by reading Documentation/soc/amd/amdblobs_license.md,
325 and your copy of the license is present in the repo once downloaded.
326
327 Note that for some products, omitting PSP, SMU images, or other items
328 may result in a nonbooting coreboot.rom.
329
330 config USE_QC_BLOBS
331 bool "Allow QC blobs repository (selecting this agrees to the license!)"
332 depends on USE_BLOBS
333 help
334 This draws in the qc_blobs repository, which contains binary files
335 distributed by Qualcomm that are required to build firmware for
336 certain Qualcomm SoCs (including QcLib, QC-SEC, qtiseclib and QUP
337 firmware). If you say Y here you are implicitly agreeing to the
338 Qualcomm license agreement which can be found at:
339 https://review.coreboot.org/cgit/qc_blobs.git/tree/LICENSE
340
341 *****************************************************
342 PLEASE MAKE SURE YOU READ AND AGREE TO ALL TERMS IN
343 ABOVE LICENSE AGREEMENT BEFORE SELECTING THIS OPTION!
344 *****************************************************
345
346 Not selecting this option means certain Qualcomm SoCs and related
347 mainboards cannot be built and will be hidden from the "Mainboards"
348 section.
349
350 config COVERAGE
351 bool "Code coverage support"
352 depends on COMPILER_GCC
353 help
354 Add code coverage support for coreboot. This will store code
355 coverage information in CBMEM for extraction from user space.
356 If unsure, say N.
357
358 config UBSAN
359 bool "Undefined behavior sanitizer support"
360 default n
361 help
362 Instrument the code with checks for undefined behavior. If unsure,
363 say N because it adds a small performance penalty and may abort
364 on code that happens to work in spite of the UB.
365
366 config HAVE_ASAN_IN_ROMSTAGE
367 bool
368 default n
369
370 config ASAN_IN_ROMSTAGE
371 bool
372 default n
373 help
374 Enable address sanitizer in romstage for platform.
375
376 config HAVE_ASAN_IN_RAMSTAGE
377 bool
378 default n
379
380 config ASAN_IN_RAMSTAGE
381 bool
382 default n
383 help
384 Enable address sanitizer in ramstage for platform.
385
386 config ASAN
387 bool "Address sanitizer support"
388 default n
389 select ASAN_IN_ROMSTAGE if HAVE_ASAN_IN_ROMSTAGE
390 select ASAN_IN_RAMSTAGE if HAVE_ASAN_IN_RAMSTAGE
391 depends on COMPILER_GCC
392 help
393 Enable address sanitizer - runtime memory debugger,
394 designed to find out-of-bounds accesses and use-after-scope bugs.
395
396 This feature consumes up to 1/8 of available memory and brings about
397 ~1.5x performance slowdown.
398
399 If unsure, say N.
400
401 if ASAN
402 comment "Before using this feature, make sure that "
403 comment "asan_shadow_offset_callback patch is applied to GCC."
404 endif
405
406 choice
407 prompt "Stage Cache for ACPI S3 resume"
408 default NO_STAGE_CACHE if !HAVE_ACPI_RESUME || MAINBOARD_DISABLE_STAGE_CACHE
409 default TSEG_STAGE_CACHE if SMM_TSEG
410
411 config NO_STAGE_CACHE
412 bool "Disabled"
413 help
414 Do not save any component in stage cache for resume path. On resume,
415 all components would be read back from CBFS again.
416
417 config TSEG_STAGE_CACHE
418 bool "TSEG"
419 depends on SMM_TSEG
420 help
421 The option enables stage cache support for platform. Platform
422 can stash copies of postcar, ramstage and raw runtime data
423 inside SMM TSEG, to be restored on S3 resume path.
424
425 config CBMEM_STAGE_CACHE
426 bool "CBMEM"
427 depends on !SMM_TSEG
428 help
429 The option enables stage cache support for platform. Platform
430 can stash copies of postcar, ramstage and raw runtime data
431 inside CBMEM.
432
433 While the approach is faster than reloading stages from boot media
434 it is also a possible attack scenario via which OS can possibly
435 circumvent SMM locks and SPI write protections.
436
437 If unsure, select 'N'
438
439 endchoice
440
441 config MAINBOARD_DISABLE_STAGE_CACHE
442 bool
443 help
444 Selected by mainboards which wish to disable the stage cache.
445 E.g. mainboards which don't use S3 resume in the field may wish to
446 disable it to save boot time at the cost of increasing S3 resume time.
447
448 config UPDATE_IMAGE
449 bool "Update existing coreboot.rom image"
450 help
451 If this option is enabled, no new coreboot.rom file
452 is created. Instead it is expected that there already
453 is a suitable file for further processing.
454 The bootblock will not be modified.
455
456 If unsure, select 'N'
457
458 config BOOTSPLASH_IMAGE
459 bool "Add a bootsplash image"
460 help
461 Select this option if you have a bootsplash image that you would
462 like to add to your ROM.
463
464 This will only add the image to the ROM. To actually run it check
465 options under 'Display' section.
466
467 config BOOTSPLASH_FILE
468 string "Bootsplash path and filename"
469 depends on BOOTSPLASH_IMAGE
470 # Default value set at the end of the file
471 help
472 The path and filename of the file to use as graphical bootsplash
473 screen. The file format has to be JPEG with YCC 4:2:0 color sampling
474 unless converted with "Pre-process bootsplash file with ImageMagick".
475
476 The image can only be displayed by coreboot if it's smaller or has
477 the same size as the framebuffer resolution. Width and height have
478 to be a multiple of 16 pixels.
479
480 Setting these constraints allows a leaner implementation in coreboot.
481 The minimum necessary ImageMagick command line seems to be:
482 $ convert input.img -colorspace YCC -sampling-factor 4:2:0 bootsplash.jpg
483
484 config BOOTSPLASH_CONVERT
485 bool "Pre-process bootsplash file with ImageMagick"
486 depends on BOOTSPLASH_IMAGE
487 help
488 Use ImageMagick (`convert` program) to convert a bootsplash image
489 to the supported JPEG format.
490
491 config BOOTSPLASH_CONVERT_QUALITY
492 int "Bootsplash JPEG target quality (%)"
493 depends on BOOTSPLASH_CONVERT
494 range 1 100
495 # Default value set at the end of the file
496
497 config BOOTSPLASH_CONVERT_RESIZE
498 bool "Resize bootsplash image"
499 depends on BOOTSPLASH_CONVERT
500 help
501 Resize the image to the given resolution. Aspect ratio will be kept,
502 adding black bars as necessary.
503
504 config BOOTSPLASH_CONVERT_RESOLUTION
505 string "Bootsplash image target size"
506 depends on BOOTSPLASH_CONVERT_RESIZE
507 # Default value set at the end of the file
508 help
509 Target image resolution given as <width>x<height>, e.g. 1024x768.
510 Values not divisible by 16 will be rounded down.
511
512 When using coreboot to display the bootsplash image (CONFIG_BOOTSPLASH),
513 set this lower or equal to the minimum resolution you expect.
514
515 config BOOTSPLASH_CONVERT_COLORSWAP
516 bool "Swap red and blue color channels"
517 depends on BOOTSPLASH_CONVERT
518 help
519 The JPEG decoder currently ignores the framebuffer color order.
520 If your colors seem all wrong, try this option.
521
522 config FW_CONFIG
523 bool
524 help
525 Enable support for probing devices with fw_config. This is a simple
526 bitmask broken into fields and options for probing.
527 Select this option in the Mainboard Kconfig.
528
529 config FW_CONFIG_SOURCE_CHROMEEC_CBI
530 bool
531 depends on FW_CONFIG && EC_GOOGLE_CHROMEEC
532 help
533 This option tells coreboot to read the firmware configuration value
534 from the Google Chrome Embedded Controller CBI interface. This source
535 is not tried if FW_CONFIG_SOURCE_CBFS is enabled and the value was
536 found in CBFS.
537 Select this option in the Mainboard Kconfig.
538
539 config FW_CONFIG_SOURCE_CBFS
540 bool "Obtain Firmware Configuration value from CBFS"
541 depends on FW_CONFIG
542 help
543 With this option enabled coreboot will look for the 32bit firmware
544 configuration value in CBFS at the selected prefix with the file name
545 "fw_config". This option gets run if no value is found with CBI, so acts
546 as a FW_CONFIG_SOURCE_CHROMEEC_CBI fallback option.
547
548 config FW_CONFIG_SOURCE_VPD
549 bool "Obtain Firmware Configuration value from VPD"
550 depends on FW_CONFIG && VPD
551 help
552 With this option enabled coreboot will look for the 32bit firmware
553 configuration value in VPD key name "fw_config". This option runs if no
554 FW_CONFIG value is set by either CBI or CBFS.
555
556 config HAVE_RAMPAYLOAD
557 bool
558
559 config RAMPAYLOAD
560 bool "Enable coreboot flow without executing ramstage"
561 default y if ARCH_X86
562 depends on HAVE_RAMPAYLOAD
563 help
564 If this option is enabled, coreboot flow will skip ramstage
565 loading and execution of ramstage to load payload.
566
567 Instead it is expected to load payload from postcar stage itself.
568
569 In this flow coreboot will perform basic x86 initialization
570 (DRAM resource allocation), MTRR programming,
571 Skip PCI enumeration logic and only allocate BAR for fixed devices
572 (bootable devices, TPM over GSPI).
573
574 config HAVE_CONFIGURABLE_RAMSTAGE
575 bool
576
577 config CONFIGURABLE_RAMSTAGE
578 bool "Enable a configurable ramstage."
579 default y if ARCH_X86
580 depends on HAVE_CONFIGURABLE_RAMSTAGE
581 help
582 A configurable ramstage allows you to select which parts of the ramstage
583 to run. Currently, we can only select a minimal PCI scanning step.
584 The minimal PCI scanning will only check those parts that are enabled
585 in the devicetree.cb. By convention none of those devices should be bridges.
586
587 config MINIMAL_PCI_SCANNING
588 bool "Enable minimal PCI scanning"
589 depends on CONFIGURABLE_RAMSTAGE && PCI
590 help
591 If this option is enabled, coreboot will scan only PCI devices
592 marked as mandatory in devicetree.cb
593
594 menu "Software Bill Of Materials (SBOM)"
595
596 source "src/sbom/Kconfig"
597
598 endmenu
599 endmenu
600
601 menu "Mainboard"
602
603 source "src/mainboard/Kconfig"
604
605 config DEVICETREE
606 string
607 default "devicetree.cb"
608 help
609 This symbol allows mainboards to select a different file under their
610 mainboard directory for the devicetree.cb file. This allows the board
611 variants that need different devicetrees to be in the same directory.
612
613 Examples: "devicetree.variant.cb"
614 "variant/devicetree.cb"
615
616 config OVERRIDE_DEVICETREE
617 string
618 default ""
619 help
620 This symbol allows variants to provide an override devicetree file to
621 override the registers and/or add new devices on top of the ones
622 provided by baseboard devicetree using CONFIG_DEVICETREE.
623
624 Examples: "devicetree.variant-override.cb"
625 "variant/devicetree-override.cb"
626
627 config FMDFILE
628 string "fmap description file in fmd format"
629 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
630 default ""
631 help
632 The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE,
633 but in some cases more complex setups are required.
634 When an fmd is specified, it overrides the default format.
635
636 config CBFS_SIZE
637 hex "Size of coreboot owned area in ROM"
638 depends on FMDFILE = ""
639 # Default value set at the end of the file
640 help
641 This is the part of ROM (Read-Only Memory) actually managed by coreboot,
642 located at the end of the ROM on x86 systems and at the start of the ROM
643 everywhere else. It defaults to span the whole ROM on all systems except for
644 Intel systems that use an Intel Flash Descriptor. It can be overridden to
645 make coreboot live alongside other vendor blobs like Intel's IFD (Intel
646 Flash Descriptor), ME (Management Engine), and TXE (Trusted Execution
647 Engine) binaries. This symbol is only used to generate a default FMAP
648 (Flash Memory Map) and is unused when a .fmd file is provided
649 via CONFIG_FMDFILE.
650
651 endmenu
652
653 # load site-local kconfig to allow user specific defaults and overrides
654 source "site-local/Kconfig"
655
656 config SYSTEM_TYPE_ALL_IN_ONE
657 default n
658 bool
659
660 config SYSTEM_TYPE_CONVERTIBLE
661 default n
662 bool
663
664 config SYSTEM_TYPE_DETACHABLE
665 default n
666 bool
667
668 config SYSTEM_TYPE_LAPTOP
669 default n
670 bool
671
672 config SYSTEM_TYPE_MINIPC
673 default n
674 bool
675 help
676 For devices like chromebox, mac-mini etc. These devices
677 without built-in display and operates on AC supply alone.
678
679 config SYSTEM_TYPE_SERVER
680 default n
681 bool
682
683 config SYSTEM_TYPE_TABLET
684 default n
685 bool
686
687 config CBFS_AUTOGEN_ATTRIBUTES
688 default n
689 bool
690 help
691 If this option is selected, every file in cbfs which has a constraint
692 regarding position or alignment will get an additional file attribute
693 which describes this constraint.
694
695 menu "Chipset"
696
697 comment "SoC"
698 source "src/soc/*/*/Kconfig"
699 source "src/soc/*/*/Kconfig.common"
700 comment "CPU"
701 source "src/cpu/Kconfig"
702 comment "Northbridge"
703 source "src/northbridge/*/*/Kconfig"
704 source "src/northbridge/*/*/Kconfig.common"
705 comment "Southbridge"
706 source "src/southbridge/*/*/Kconfig"
707 source "src/southbridge/*/*/Kconfig.common"
708 comment "Super I/O"
709 source "src/superio/*/*/Kconfig"
710 comment "Embedded Controllers"
711 source "src/ec/acpi/Kconfig"
712 source "src/ec/*/*/Kconfig"
713
714 source "src/southbridge/intel/common/firmware/Kconfig"
715 source "src/vendorcode/*/Kconfig"
716
717 source "src/arch/*/Kconfig"
718
719 config CHIPSET_DEVICETREE
720 string
721 default ""
722 help
723 This symbol allows a chipset to provide a set of default settings in
724 a devicetree which are common to all mainboards. This may include
725 devices (including alias names), chip drivers, register settings,
726 and others. This path is relative to the src/ directory.
727
728 Example: "chipset.cb"
729
730 endmenu
731
732 source "src/device/Kconfig"
733
734 menu "Generic Drivers"
735 source "src/drivers/*/Kconfig"
736 source "src/drivers/*/*/Kconfig"
737 source "src/drivers/*/*/*/Kconfig"
738 source "src/commonlib/storage/Kconfig"
739 endmenu
740
741 menu "Security"
742
743 source "src/security/Kconfig"
744 source "src/vendorcode/eltan/security/Kconfig"
745
746 endmenu
747
748 source "src/acpi/Kconfig"
749
750 # This option is for the current boards/chipsets where SPI flash
751 # is not the boot device. Currently nearly all boards/chipsets assume
752 # SPI flash is the boot device.
753 config BOOT_DEVICE_NOT_SPI_FLASH
754 bool
755 default n
756
757 config BOOT_DEVICE_SPI_FLASH
758 bool
759 default y if !BOOT_DEVICE_NOT_SPI_FLASH
760 default n
761
762 config BOOT_DEVICE_MEMORY_MAPPED
763 bool
764 default y if ARCH_X86 && BOOT_DEVICE_SPI_FLASH
765 default n
766 help
767 Inform system if SPI is memory-mapped or not.
768
769 config BOOT_DEVICE_SUPPORTS_WRITES
770 bool
771 default n
772 help
773 Indicate that the platform has writable boot device
774 support.
775
776 config RTC
777 bool
778 default n
779
780 config HEAP_SIZE
781 hex
782 default 0x100000
783
784 config STACK_SIZE
785 hex
786 default 0x2000 if ARCH_X86
787 default 0x0
788
789 config MAX_CPUS
790 int
791 default 1
792
793 source "src/console/Kconfig"
794
795 config ACPI_S1_NOT_SUPPORTED
796 bool
797 default n
798 help
799 Set this to 'y' on platforms that do not support ACPI S1 state.
800
801 config HAVE_ACPI_RESUME
802 bool
803 default n
804
805 config DISABLE_ACPI_HIBERNATE
806 bool
807 default n
808 help
809 Removes S4 from the available sleepstates
810
811 config RESUME_PATH_SAME_AS_BOOT
812 bool
813 default y if ARCH_X86
814 depends on HAVE_ACPI_RESUME
815 help
816 This option indicates that when a system resumes it takes the
817 same path as a regular boot. e.g. an x86 system runs from the
818 reset vector at 0xfffffff0 on both resume and warm/cold boot.
819
820 config NO_MONOTONIC_TIMER
821 def_bool n
822
823 config HAVE_MONOTONIC_TIMER
824 bool
825 depends on !NO_MONOTONIC_TIMER
826 default y
827 help
828 The board/chipset provides a monotonic timer.
829
830 config GENERIC_UDELAY
831 bool
832 depends on HAVE_MONOTONIC_TIMER
833 default y if !ARCH_X86
834 help
835 The board/chipset uses a generic udelay function utilizing the
836 monotonic timer.
837
838 config TIMER_QUEUE
839 def_bool n
840 depends on HAVE_MONOTONIC_TIMER
841 help
842 Provide a timer queue for performing time-based callbacks.
843
844 config COOP_MULTITASKING
845 def_bool n
846 select TIMER_QUEUE
847 depends on ARCH_X86
848 help
849 Cooperative multitasking allows callbacks to be multiplexed on the
850 main thread. With this enabled it allows for multiple execution paths
851 to take place when they have udelay() calls within their code.
852
853 config NUM_THREADS
854 int
855 default 4
856 depends on COOP_MULTITASKING
857 help
858 How many execution threads to cooperatively multitask with.
859
860 config HAVE_MAINBOARD_SPECIFIC_OPTION_BACKEND
861 bool
862 help
863 Selected by mainboards which implement a mainboard-specific mechanism
864 to access the values for runtime-configurable options. For example, a
865 custom BMC interface or an EEPROM with an externally-imposed layout.
866
867 config HAVE_CBFS_FILE_OPTION_BACKEND
868 bool
869 default y if CHROMEOS && PLATFORM_USES_FSP2_0
870 default n
871 help
872 Select this option if the platform uses CBFS file-based option backend
873 for storing configuration values at run time.
874
875 This feature allows for storing and retrieving configuration data
876 within a dedicated file inside the CBFS.
877
878 At present this feature is typically used by ChromeOS devices that
879 use Intel's Firmware Support Package (FSP).
880
881 config HAVE_OPTION_TABLE
882 bool
883 default n
884 help
885 This variable specifies whether a given board has a cmos.layout
886 file containing NVRAM/CMOS bit definitions.
887 It defaults to 'n' but can be selected in mainboard/*/Kconfig.
888
889 config CMOS_LAYOUT_FILE
890 string
891 default "src/mainboard/\$(MAINBOARDDIR)/cmos.layout"
892 depends on HAVE_OPTION_TABLE
893
894 config PCI_IO_CFG_EXT
895 bool
896 default n
897
898 config IOAPIC
899 bool
900 default y if SMP
901 default n
902
903 config USE_WATCHDOG_ON_BOOT
904 bool
905 default n
906
907 config GFXUMA
908 bool
909 default n
910 help
911 Enable Unified Memory Architecture for graphics.
912
913 config HAVE_MP_TABLE
914 bool
915 help
916 This variable specifies whether a given board has MP table support.
917 It is usually set in mainboard/*/Kconfig.
918 Whether or not the MP table is actually generated by coreboot
919 is configurable by the user via GENERATE_MP_TABLE.
920
921 config HAVE_PIRQ_TABLE
922 bool
923 help
924 This variable specifies whether a given board has PIRQ table support.
925 It is usually set in mainboard/*/Kconfig.
926 Whether or not the PIRQ table is actually generated by coreboot
927 is configurable by the user via GENERATE_PIRQ_TABLE.
928
929 config ACPI_NHLT
930 bool
931 default n
932 help
933 Build support for NHLT (non HD Audio) ACPI table generation.
934
935 #These Options are here to avoid "undefined" warnings.
936 #The actual selection and help texts are in the following menu.
937
938 menu "System tables"
939
940 config GENERATE_MP_TABLE
941 prompt "Generate an MP table" if HAVE_MP_TABLE
942 bool
943 depends on !ECAM_MMCONF_SUPPORT || ECAM_MMCONF_BUS_NUMBER <= 256
944 default HAVE_MP_TABLE
945 help
946 Generate an MP table (conforming to the Intel MultiProcessor
947 specification 1.4) for this board.
948
949 If unsure, say Y.
950
951 config GENERATE_PIRQ_TABLE
952 prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE
953 bool
954 default HAVE_PIRQ_TABLE
955 help
956 Generate a PIRQ table for this board.
957
958 If unsure, say Y.
959
960 config GENERATE_SMBIOS_TABLES
961 depends on ARCH_X86 || ARCH_ARM64
962 bool "Generate SMBIOS tables"
963 default n if ARCH_ARM64
964 default y
965 help
966 Generate SMBIOS tables for this board.
967
968 If unsure, say Y.
969
970 config SMBIOS_TYPE41_PROVIDED_BY_DEVTREE
971 bool
972 depends on ARCH_X86
973 help
974 If enabled, only generate SMBIOS Type 41 entries for PCI devices in
975 the devicetree for which Type 41 information is provided, e.g. with
976 the `smbios_dev_info` devicetree syntax. This is useful to manually
977 assign specific instance IDs to onboard devices irrespective of the
978 device traversal order. It is assumed that instance IDs for devices
979 of the same class are unique.
980 When disabled, coreboot autogenerates SMBIOS Type 41 entries for all
981 appropriate PCI devices in the devicetree. Instance IDs are assigned
982 successive numbers from a monotonically increasing counter, with one
983 counter for each device class.
984
985 config SMBIOS_PROVIDED_BY_MOBO
986 bool
987 default n
988
989 if GENERATE_SMBIOS_TABLES
990
991 config BIOS_VENDOR
992 prompt "SMBIOS BIOS Vendor name"
993 string
994 default "coreboot"
995 help
996 The BIOS Vendor name to store in the SMBIOS Type0 table.
997
998 config MAINBOARD_SERIAL_NUMBER
999 prompt "SMBIOS Serial Number" if !SMBIOS_PROVIDED_BY_MOBO
1000 string
1001 default "123456789"
1002 help
1003 The Serial Number to store in SMBIOS structures.
1004
1005 config MAINBOARD_VERSION
1006 prompt "SMBIOS Version Number" if !SMBIOS_PROVIDED_BY_MOBO
1007 string
1008 default "1.0"
1009 help
1010 The Version Number to store in SMBIOS structures.
1011
1012 config MAINBOARD_SMBIOS_MANUFACTURER
1013 prompt "SMBIOS Manufacturer" if !SMBIOS_PROVIDED_BY_MOBO
1014 string
1015 default MAINBOARD_VENDOR
1016 help
1017 Override the default Manufacturer stored in SMBIOS structures.
1018
1019 config MAINBOARD_SMBIOS_PRODUCT_NAME
1020 prompt "SMBIOS Product name" if !SMBIOS_PROVIDED_BY_MOBO
1021 string
1022 default MAINBOARD_PART_NUMBER
1023 help
1024 Override the default Product name stored in SMBIOS structures.
1025
1026 config VPD_SMBIOS_VERSION
1027 bool "Populates SMBIOS type 0 version from the VPD_RO variable 'firmware_version'"
1028 default n
1029 depends on VPD
1030 help
1031 Selecting this option will read firmware_version from
1032 VPD_RO and override SMBIOS type 0 version. One special
1033 scenario of using this feature is to assign a BIOS version
1034 to a coreboot image without the need to rebuild from source.
1035
1036 endif
1037
1038 endmenu
1039
1040 source "payloads/Kconfig"
1041
1042 menu "Debugging"
1043
1044 comment "CPU Debug Settings"
1045 source "src/cpu/*/Kconfig.debug_cpu"
1046
1047 comment "Vendorcode Debug Settings"
1048 source "src/vendorcode/*/*/Kconfig.debug"
1049
1050 comment "BLOB Debug Settings"
1051 source "src/drivers/intel/fsp*/Kconfig.debug_blob"
1052
1053 comment "General Debug Settings"
1054
1055 # TODO: Better help text and detailed instructions.
1056 config GDB_STUB
1057 bool "GDB debugging support"
1058 default n
1059 # FIXME Not implemented in long mode
1060 depends on DRIVERS_UART && !USE_X86_64_SUPPORT
1061 help
1062 If enabled, you will be able to set breakpoints for gdb debugging.
1063 See src/arch/x86/c_start.S for details.
1064
1065 config GDB_WAIT
1066 bool "Wait for a GDB connection in the ramstage"
1067 default n
1068 depends on GDB_STUB
1069 help
1070 If enabled, coreboot will wait for a GDB connection in the ramstage.
1071
1072
1073 config FATAL_ASSERTS
1074 bool "Halt when hitting a BUG() or assertion error"
1075 default n
1076 help
1077 If enabled, coreboot will call hlt() on a BUG() or failed ASSERT().
1078
1079 config HAVE_DEBUG_GPIO
1080 bool
1081
1082 config DEBUG_GPIO
1083 bool "Output verbose GPIO debug messages"
1084 depends on HAVE_DEBUG_GPIO
1085
1086 config DEBUG_CBFS
1087 bool "Output verbose CBFS debug messages"
1088 default n
1089 help
1090 This option enables additional CBFS related debug messages.
1091
1092 config HAVE_DEBUG_RAM_SETUP
1093 def_bool n
1094
1095 config DEBUG_RAM_SETUP
1096 bool "Output verbose RAM init debug messages"
1097 default n
1098 depends on HAVE_DEBUG_RAM_SETUP
1099 help
1100 This option enables additional RAM init related debug messages.
1101 It is recommended to enable this when debugging issues on your
1102 board which might be RAM init related.
1103
1104 Note: This option will increase the size of the coreboot image.
1105
1106 If unsure, say N.
1107
1108 config DEBUG_PIRQ
1109 bool "Check PIRQ table consistency"
1110 default n
1111 depends on GENERATE_PIRQ_TABLE
1112 help
1113 If unsure, say N.
1114
1115 config HAVE_DEBUG_SMBUS
1116 def_bool n
1117
1118 config DEBUG_SMBUS
1119 bool "Output verbose SMBus debug messages"
1120 default n
1121 depends on HAVE_DEBUG_SMBUS
1122 help
1123 This option enables additional SMBus (and SPD) debug messages.
1124
1125 Note: This option will increase the size of the coreboot image.
1126
1127 If unsure, say N.
1128
1129 config DEBUG_SMI
1130 bool "Output verbose SMI debug messages"
1131 default n
1132 depends on HAVE_SMI_HANDLER
1133 select SPI_FLASH_SMM if EM100PRO_SPI_CONSOLE || CONSOLE_SPI_FLASH
1134 help
1135 This option enables additional SMI related debug messages.
1136
1137 Note: This option will increase the size of the coreboot image.
1138
1139 If unsure, say N.
1140
1141 config DEBUG_PERIODIC_SMI
1142 bool "Trigger SMI periodically"
1143 depends on DEBUG_SMI
1144
1145 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
1146 # printk(BIOS_DEBUG, ...) calls.
1147 config DEBUG_MALLOC
1148 prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 || CONSOLE_OVERRIDE_LOGLEVEL
1149 bool
1150 default n
1151 help
1152 This option enables additional malloc related debug messages.
1153
1154 Note: This option will increase the size of the coreboot image.
1155
1156 If unsure, say N.
1157
1158 # Only visible if DEBUG_SPEW (8) is set.
1159 config DEBUG_RESOURCES
1160 bool "Output verbose PCI MEM and IO resource debug messages" if DEFAULT_CONSOLE_LOGLEVEL_8 || CONSOLE_OVERRIDE_LOGLEVEL
1161 default n
1162 help
1163 This option enables additional PCI memory and IO debug messages.
1164 Note: This option will increase the size of the coreboot image.
1165 If unsure, say N.
1166
1167 config DEBUG_CONSOLE_INIT
1168 bool "Debug console initialisation code"
1169 default n
1170 help
1171 With this option printk()'s are attempted before console hardware
1172 initialisation has been completed. Your mileage may vary.
1173
1174 Typically you will need to modify source in console_hw_init() such
1175 that a working console appears before the one you want to debug.
1176
1177 If unsure, say N.
1178
1179 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
1180 # printk(BIOS_DEBUG, ...) calls.
1181 config REALMODE_DEBUG
1182 prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 || CONSOLE_OVERRIDE_LOGLEVEL
1183 bool
1184 default n
1185 depends on PCI_OPTION_ROM_RUN_REALMODE
1186 help
1187 This option enables additional x86emu related debug messages.
1188
1189 Note: This option will increase the time to emulate a ROM.
1190
1191 If unsure, say N.
1192
1193 config X86EMU_DEBUG
1194 bool "Output verbose x86emu debug messages"
1195 default n
1196 depends on PCI_OPTION_ROM_RUN_YABEL
1197 help
1198 This option enables additional x86emu related debug messages.
1199
1200 Note: This option will increase the size of the coreboot image.
1201
1202 If unsure, say N.
1203
1204 if X86EMU_DEBUG
1205
1206 config X86EMU_DEBUG_JMP
1207 bool "Trace JMP/RETF"
1208 default n
1209 help
1210 Print information about JMP and RETF opcodes from x86emu.
1211
1212 Note: This option will increase the size of the coreboot image.
1213
1214 If unsure, say N.
1215
1216 config X86EMU_DEBUG_TRACE
1217 bool "Trace all opcodes"
1218 default n
1219 help
1220 Print _all_ opcodes that are executed by x86emu.
1221
1222 WARNING: This will produce a LOT of output and take a long time.
1223
1224 Note: This option will increase the size of the coreboot image.
1225
1226 If unsure, say N.
1227
1228 config X86EMU_DEBUG_PNP
1229 bool "Log Plug&Play accesses"
1230 default n
1231 help
1232 Print Plug And Play accesses made by option ROMs.
1233
1234 Note: This option will increase the size of the coreboot image.
1235
1236 If unsure, say N.
1237
1238 config X86EMU_DEBUG_DISK
1239 bool "Log Disk I/O"
1240 default n
1241 help
1242 Print Disk I/O related messages.
1243
1244 Note: This option will increase the size of the coreboot image.
1245
1246 If unsure, say N.
1247
1248 config X86EMU_DEBUG_PMM
1249 bool "Log PMM"
1250 default n
1251 help
1252 Print messages related to POST Memory Manager (PMM).
1253
1254 Note: This option will increase the size of the coreboot image.
1255
1256 If unsure, say N.
1257
1258
1259 config X86EMU_DEBUG_VBE
1260 bool "Debug VESA BIOS Extensions"
1261 default n
1262 help
1263 Print messages related to VESA BIOS Extension (VBE) functions.
1264
1265 Note: This option will increase the size of the coreboot image.
1266
1267 If unsure, say N.
1268
1269 config X86EMU_DEBUG_INT10
1270 bool "Redirect INT10 output to console"
1271 default n
1272 help
1273 Let INT10 (i.e. character output) calls print messages to debug output.
1274
1275 Note: This option will increase the size of the coreboot image.
1276
1277 If unsure, say N.
1278
1279 config X86EMU_DEBUG_INTERRUPTS
1280 bool "Log intXX calls"
1281 default n
1282 help
1283 Print messages related to interrupt handling.
1284
1285 Note: This option will increase the size of the coreboot image.
1286
1287 If unsure, say N.
1288
1289 config X86EMU_DEBUG_CHECK_VMEM_ACCESS
1290 bool "Log special memory accesses"
1291 default n
1292 help
1293 Print messages related to accesses to certain areas of the virtual
1294 memory (e.g. BDA (BIOS Data Area) or interrupt vectors)
1295
1296 Note: This option will increase the size of the coreboot image.
1297
1298 If unsure, say N.
1299
1300 config X86EMU_DEBUG_MEM
1301 bool "Log all memory accesses"
1302 default n
1303 help
1304 Print memory accesses made by option ROM.
1305 Note: This also includes accesses to fetch instructions.
1306
1307 Note: This option will increase the size of the coreboot image.
1308
1309 If unsure, say N.
1310
1311 config X86EMU_DEBUG_IO
1312 bool "Log IO accesses"
1313 default n
1314 help
1315 Print I/O accesses made by option ROM.
1316
1317 Note: This option will increase the size of the coreboot image.
1318
1319 If unsure, say N.
1320
1321 config X86EMU_DEBUG_TIMINGS
1322 bool "Output timing information"
1323 default n
1324 depends on HAVE_MONOTONIC_TIMER
1325 help
1326 Print timing information needed by i915tool.
1327
1328 If unsure, say N.
1329
1330 endif
1331
1332 config DEBUG_SPI_FLASH
1333 bool "Output verbose SPI flash debug messages"
1334 default n
1335 depends on SPI_FLASH
1336 help
1337 This option enables additional SPI flash related debug messages.
1338
1339 config DEBUG_IPMI
1340 bool "Output verbose IPMI debug messages"
1341 default n
1342 depends on IPMI_KCS
1343 help
1344 This option enables additional IPMI related debug messages.
1345
1346 if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8
1347 # Only visible with the right southbridge and loglevel.
1348 config DEBUG_INTEL_ME
1349 bool "Verbose logging for Intel Management Engine"
1350 default n
1351 help
1352 Enable verbose logging for Intel Management Engine driver that
1353 is present on Intel 6-series chipsets.
1354 endif
1355
1356 config DEBUG_FUNC
1357 bool "Enable function entry and exit reporting macros" if DEFAULT_CONSOLE_LOGLEVEL_8 || CONSOLE_OVERRIDE_LOGLEVEL
1358 default n
1359 help
1360 This option enables additional function entry and exit debug messages
1361 for select functions.
1362 Note: This option will increase the size of the coreboot image.
1363 If unsure, say N.
1364
1365 config DEBUG_COVERAGE
1366 bool "Debug code coverage"
1367 default n
1368 depends on COVERAGE
1369 help
1370 If enabled, the code coverage hooks in coreboot will output some
1371 information about the coverage data that is dumped.
1372
1373 config DEBUG_BOOT_STATE
1374 bool "Debug boot state machine"
1375 default n
1376 help
1377 Control debugging of the boot state machine. When selected displays
1378 the state boundaries in ramstage.
1379
1380 config DEBUG_ADA_CODE
1381 bool "Compile debug code in Ada sources"
1382 default n
1383 help
1384 Add the compiler switch `-gnata` to compile code guarded by
1385 `pragma Debug`.
1386
1387 config HAVE_EM100_SUPPORT
1388 bool
1389 help
1390 This is enabled by platforms which can support using the EM100.
1391
1392 config EM100
1393 bool "Configure image for EM100 usage"
1394 depends on HAVE_EM100_SUPPORT
1395 help
1396 The Dediprog EM100 SPI emulator allows fast loading of new SPI images
1397 over USB. However it only supports a maximum SPI clock of 20MHz and
1398 single data output. Enable this option to use a 20MHz SPI clock and
1399 disable "Dual Output Fast Read" Support.
1400
1401 On AMD platforms this changes the SPI speed at run-time if the
1402 mainboard code supports this. On supported Intel platforms this works
1403 by changing the settings in the descriptor.bin file.
1404
1405 config DEBUG_ACPICA_COMPATIBLE
1406 bool "Print out ACPI tables in ACPICA compatible format"
1407 depends on HAVE_ACPI_TABLES
1408 help
1409 Select this to print out ACPI tables in an ACPICA compatible
1410 format. Set the console loglevel to verbosity 'SPEW'.
1411 To analyze ACPI tables capture the coreboot log between
1412 "Printing ACPI in ACPICA compatible table" and "Done printing
1413 ACPI in ACPICA compatible table".
1414 Remove the prefix "[SPEW ] " and then issue 'acpixtract -a dump'
1415 to extract all the tables. Then use 'iasl -d' on the .dat files
1416 to decompile the tables.
1417
1418 endmenu
1419
1420 ###############################################################################
1421 # Set variables with no prompt - these can be set anywhere, and putting at
1422 # the end of this file gives the most flexibility.
1423
1424 source "src/lib/Kconfig"
1425
1426 config WARNINGS_ARE_ERRORS
1427 bool
1428 default y
1429
1430 # The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE,
1431 # POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are
1432 # mutually exclusive. One of these options must be selected in the
1433 # mainboard Kconfig if the chipset supports enabling and disabling of
1434 # the power button. Chipset code uses the ENABLE_POWER_BUTTON option set
1435 # in mainboard/Kconfig to know if the button should be enabled or not.
1436
1437 config POWER_BUTTON_DEFAULT_ENABLE
1438 def_bool n
1439 help
1440 Select when the board has a power button which can optionally be
1441 disabled by the user.
1442
1443 config POWER_BUTTON_DEFAULT_DISABLE
1444 def_bool n
1445 help
1446 Select when the board has a power button which can optionally be
1447 enabled by the user, e.g. when the board ships with a jumper over
1448 the power switch contacts.
1449
1450 config POWER_BUTTON_FORCE_ENABLE
1451 def_bool n
1452 help
1453 Select when the board requires that the power button is always
1454 enabled.
1455
1456 config POWER_BUTTON_FORCE_DISABLE
1457 def_bool n
1458 help
1459 Select when the board requires that the power button is always
1460 disabled, e.g. when it has been hardwired to ground.
1461
1462 config POWER_BUTTON_IS_OPTIONAL
1463 bool
1464 default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE
1465 default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE)
1466 help
1467 Internal option that controls ENABLE_POWER_BUTTON visibility.
1468
1469 config REG_SCRIPT
1470 bool
1471 default n
1472 help
1473 Internal option that controls whether we compile in register scripts.
1474
1475 config MAX_REBOOT_CNT
1476 int
1477 default 3
1478 help
1479 Internal option that sets the maximum number of bootblock executions allowed
1480 with the normal image enabled before assuming the normal image is defective
1481 and switching to the fallback image.
1482
1483 config UNCOMPRESSED_RAMSTAGE
1484 bool
1485
1486 config NO_XIP_EARLY_STAGES
1487 bool
1488 default n if ARCH_X86
1489 default y
1490 help
1491 Identify if early stages are eXecute-In-Place(XIP).
1492
1493 config EARLY_CBMEM_LIST
1494 bool
1495 default n
1496 help
1497 Enable display of CBMEM during romstage and postcar.
1498
1499 config RELOCATABLE_MODULES
1500 bool
1501 help
1502 If RELOCATABLE_MODULES is selected then support is enabled for
1503 building relocatable modules in the RAM stage. Those modules can be
1504 loaded anywhere and all the relocations are handled automatically.
1505
1506 config GENERIC_GPIO_LIB
1507 bool
1508 help
1509 If enabled, compile the generic GPIO library. A "generic" GPIO
1510 implies configurability usually found on SoCs, particularly the
1511 ability to control internal pull resistors.
1512
1513 config BOOTBLOCK_CUSTOM
1514 # To be selected by arch, SoC or mainboard if it does not want use the normal
1515 # src/lib/bootblock.c#main() C entry point.
1516 bool
1517
1518 config BOOTBLOCK_IN_CBFS
1519 bool
1520 default y if ARCH_X86
1521 help
1522 Select this on platforms that have a top aligned bootblock inside cbfs.
1523
1524 config MEMLAYOUT_LD_FILE
1525 string
1526 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/memlayout.ld"
1527 help
1528 This variable allows SoC/mainboard to supply in a custom linker file
1529 if required. This determines the linker file used for all the stages
1530 (bootblock, romstage, verstage, ramstage, postcar) in
1531 src/arch/${ARCH}/Makefile.mk.
1532
1533 ###############################################################################
1534 # Set default values for symbols created before mainboards. This allows the
1535 # option to be displayed in the general menu, but the default to be loaded in
1536 # the mainboard if desired.
1537 config COMPRESS_PRERAM_STAGES
1538 depends on (HAVE_ROMSTAGE || HAVE_VERSTAGE) && NO_XIP_EARLY_STAGES
1539 default y
1540
1541 config INCLUDE_CONFIG_FILE
1542 default y
1543
1544 config BOOTSPLASH_FILE
1545 depends on BOOTSPLASH_IMAGE
1546 default "bootsplash.jpg"
1547
1548 config BOOTSPLASH_CONVERT_QUALITY
1549 depends on BOOTSPLASH_CONVERT
1550 default 80
1551
1552 config BOOTSPLASH_CONVERT_RESOLUTION
1553 depends on BOOTSPLASH_CONVERT_RESIZE
1554 default "1024x768"
1555
1556 config CBFS_SIZE
1557 default ROM_SIZE
1558
1559 config HAVE_BOOTBLOCK
1560 bool
1561 default y
1562
1563 config HAVE_VERSTAGE
1564 bool
1565 depends on VBOOT_SEPARATE_VERSTAGE
1566 default y
1567
1568 config HAVE_ROMSTAGE
1569 bool
1570 depends on SEPARATE_ROMSTAGE
1571 default y
1572
1573 config HAVE_RAMSTAGE
1574 bool
1575 default n if RAMPAYLOAD
1576 default y
1577
1578 config SEPARATE_ROMSTAGE
1579 default y
1580
1581 config POSTPONE_SPI_ACCESS
1582 bool
1583 help
1584 Enable this option to postpone SPI access to later boot phase
1585 (BS_PAYLOAD_BOOT) to prevent flash write access delays caused by
1586 simultaneous accesses from other SPI masters like CSE. This symptom
1587 was found in Intel SoCs (Panther Lake and Wildcat Lake) but it can be
1588 used other SOCs.