2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
5 ## Copyright (C) 2009-2010 coresystems GmbH
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; version 2 of the License.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
17 mainmenu "coreboot configuration"
26 string "Local version string"
28 Append an extra string to the end of the coreboot version.
30 This can be useful if, for instance, you want to append the
31 respective board's hostname or some other identifying string to
32 the coreboot version number, so that you can easily distinguish
33 boot logs of different boards from each other.
35 config CONFIGURABLE_CBFS_PREFIX
38 Select this to prompt to use to configure the prefix for cbfs files.
41 prompt "CBFS prefix to use"
42 depends on CONFIGURABLE_CBFS_PREFIX
43 default CBFS_PREFIX_FALLBACK
45 config CBFS_PREFIX_FALLBACK
48 config CBFS_PREFIX_NORMAL
51 config CBFS_PREFIX_DIY
52 bool "Define your own cbfs prefix"
57 string "CBFS prefix to use" if CBFS_PREFIX_DIY
58 default "fallback" if !CONFIGURABLE_CBFS_PREFIX || CBFS_PREFIX_FALLBACK
59 default "normal" if CBFS_PREFIX_NORMAL
61 Select the prefix to all files put into the image. It's "fallback"
62 by default, "normal" is a common alternative.
65 prompt "Compiler to use"
68 This option allows you to select the compiler used for building
70 You must build the coreboot crosscompiler for the board that you
73 To build all the GCC crosscompilers (takes a LONG time), run:
76 For help on individual architectures, run the command:
82 Use the GNU Compiler Collection (GCC) to build coreboot.
84 For details see http://gcc.gnu.org.
86 config COMPILER_LLVM_CLANG
87 bool "LLVM/clang (TESTING ONLY - Not currently working)"
89 Use LLVM/clang to build coreboot. To use this, you must build the
90 coreboot version of the clang compiler. Run the command
92 Note that this option is not currently working correctly and should
93 really only be selected if you're trying to work on getting clang
96 For details see http://clang.llvm.org.
101 bool "Allow building with any toolchain"
104 Many toolchains break when building coreboot since it uses quite
105 unusual linker features. Unless developers explicitely request it,
106 we'll have to assume that they use their distro compiler by mistake.
107 Make sure that using patched compilers is a conscious decision.
110 bool "Use ccache to speed up (re)compilation"
113 Enables the use of ccache for faster builds.
115 Requires the ccache utility in your system $PATH.
117 For details see https://ccache.samba.org.
120 bool "Generate flashmap descriptor parser using flex and bison"
123 Enable this option if you are working on the flashmap descriptor
124 parser and made changes to fmd_scanner.l or fmd_parser.y.
126 Otherwise, say N to use the provided pregenerated scanner/parser.
128 config UTIL_GENPARSER
129 bool "Generate SCONFIG & BINCFG parser using flex and bison"
132 Enable this option if you are working on the sconfig device tree
133 parser or bincfg and made changes to the .l or .y files.
135 Otherwise, say N to use the provided pregenerated scanner/parser.
137 config USE_OPTION_TABLE
138 bool "Use CMOS for configuration values"
139 depends on HAVE_OPTION_TABLE
141 Enable this option if coreboot shall read options from the "CMOS"
142 NVRAM instead of using hard-coded values.
144 config STATIC_OPTION_TABLE
145 bool "Load default configuration values into CMOS on each boot"
146 depends on USE_OPTION_TABLE
148 Enable this option to reset "CMOS" NVRAM values to default on
149 every boot. Use this if you want the NVRAM configuration to
150 never be modified from its default values.
152 config COMPRESS_RAMSTAGE
153 bool "Compress ramstage with LZMA"
154 depends on HAVE_RAMSTAGE
155 # Default value set at the end of the file
157 Compress ramstage to save memory in the flash image.
159 config COMPRESS_PRERAM_STAGES
160 bool "Compress romstage and verstage with LZ4"
161 depends on !ARCH_X86 && (HAVE_ROMSTAGE || HAVE_VERSTAGE)
162 # Default value set at the end of the file
164 Compress romstage and (if it exists) verstage with LZ4 to save flash
165 space and speed up boot, since the time for reading the image from SPI
166 (and in the vboot case verifying it) is usually much greater than the
167 time spent decompressing. Doesn't work for XIP stages (assume all
168 ARCH_X86 for now) for obvious reasons.
170 config COMPRESS_BOOTBLOCK
172 depends on HAVE_BOOTBLOCK
174 This option can be used to compress the bootblock with LZ4 and attach
175 a small self-decompression stub to its front. This can drastically
176 reduce boot time on platforms where the bootblock is loaded over a
177 very slow connection and bootblock size trumps all other factors for
178 speed. Since using this option usually requires changes to the
179 SoC memlayout and possibly extra support code, it should not be
180 user-selectable. (There's no real point in offering this to the user
181 anyway... if it works and saves boot time, you would always want it.)
183 config INCLUDE_CONFIG_FILE
184 bool "Include the coreboot .config file into the ROM image"
185 # Default value set at the end of the file
187 Include the .config file that was used to compile coreboot
188 in the (CBFS) ROM image. This is useful if you want to know which
189 options were used to build a specific coreboot.rom image.
191 Saying Y here will increase the image size by 2-3KB.
193 You can use the following command to easily list the options:
195 grep -a CONFIG_ coreboot.rom
197 Alternatively, you can also use cbfstool to print the image
198 contents (including the raw 'config' item we're looking for).
202 $ cbfstool coreboot.rom print
203 coreboot.rom: 4096 kB, bootblocksize 1008, romsize 4194304,
207 Name Offset Type Size
208 cmos_layout.bin 0x0 cmos layout 1159
209 fallback/romstage 0x4c0 stage 339756
210 fallback/ramstage 0x53440 stage 186664
211 fallback/payload 0x80dc0 payload 51526
212 config 0x8d740 raw 3324
213 (empty) 0x8e480 null 3610440
215 config COLLECT_TIMESTAMPS
216 bool "Create a table of timestamps collected during boot"
217 default y if ARCH_X86
219 Make coreboot create a table of timer-ID/timer-value pairs to
220 allow measuring time spent at different phases of the boot process.
222 config TIMESTAMPS_ON_CONSOLE
223 bool "Print the timestamp values on the console"
225 depends on COLLECT_TIMESTAMPS
227 Print the timestamps to the debug console if enabled at level spew.
230 bool "Allow use of binary-only repository"
232 This draws in the blobs repository, which contains binary files that
233 might be required for some chipsets or boards.
234 This flag ensures that a "Free" option remains available for users.
237 bool "Allow AMD blobs repository (with license agreement)"
240 This draws in the amd_blobs repository, which contains binary files
241 distributed by AMD, including VBIOS, PSP bootloaders, SMU firmwares,
242 etc. Selecting this item to download or clone the repo implies your
243 agreement to the AMD license agreement. A copy of the license text
244 may be reviewed by reading Documentation/soc/amd/amdblobs_license.md,
245 and your copy of the license is present in the repo once downloaded.
247 Note that for some products, omitting PSP, SMU images, or other items
248 may result in a nonbooting coreboot.rom.
251 bool "Code coverage support"
252 depends on COMPILER_GCC
254 Add code coverage support for coreboot. This will store code
255 coverage information in CBMEM for extraction from user space.
259 bool "Undefined behavior sanitizer support"
262 Instrument the code with checks for undefined behavior. If unsure,
263 say N because it adds a small performance penalty and may abort
264 on code that happens to work in spite of the UB.
266 config NO_RELOCATABLE_RAMSTAGE
268 default n if ARCH_X86
271 config RELOCATABLE_RAMSTAGE
273 default !NO_RELOCATABLE_RAMSTAGE
274 select RELOCATABLE_MODULES
276 The reloctable ramstage support allows for the ramstage to be built
277 as a relocatable module. The stage loader can identify a place
278 out of the OS way so that copying memory is unnecessary during an S3
279 wake. When selecting this option the romstage is responsible for
280 determing a stack location to use for loading the ramstage.
282 config TSEG_STAGE_CACHE
285 depends on !NO_STAGE_CACHE && SMM_TSEG
287 The option enables stage cache support for platform. Platform
288 can stash copies of postcar, ramstage and raw runtime data
289 inside SMM TSEG, to be restored on S3 resume path.
291 config CBMEM_STAGE_CACHE
292 bool "Cache stages in CBMEM"
293 depends on !NO_STAGE_CACHE && !TSEG_STAGE_CACHE
295 The option enables stage cache support for platform. Platform
296 can stash copies of postcar, ramstage and raw runtime data
299 While the approach is faster than reloading stages from boot media
300 it is also a possible attack scenario via which OS can possibly
301 circumvent SMM locks and SPI write protections.
303 If unsure, select 'N'
306 bool "Update existing coreboot.rom image"
308 If this option is enabled, no new coreboot.rom file
309 is created. Instead it is expected that there already
310 is a suitable file for further processing.
311 The bootblock will not be modified.
313 If unsure, select 'N'
315 config BOOTSPLASH_IMAGE
316 bool "Add a bootsplash image"
318 Select this option if you have a bootsplash image that you would
319 like to add to your ROM.
321 This will only add the image to the ROM. To actually run it check
322 options under 'Display' section.
324 config BOOTSPLASH_FILE
325 string "Bootsplash path and filename"
326 depends on BOOTSPLASH_IMAGE
327 # Default value set at the end of the file
329 The path and filename of the file to use as graphical bootsplash
330 screen. The file format has to be jpg.
332 config HAVE_RAMPAYLOAD
336 bool "Enable coreboot flow without executing ramstage"
337 default y if ARCH_X86
338 depends on HAVE_RAMPAYLOAD
340 If this option is enabled, coreboot flow will skip ramstage
341 loading and execution of ramstage to load payload.
343 Instead it is expected to load payload from postcar stage itself.
345 In this flow coreboot will perform basic x86 initialization
346 (DRAM resource allocation), MTRR programming,
347 Skip PCI enumeration logic and only allocate BAR for fixed devices
348 (bootable devices, TPM over GSPI).
354 source "src/mainboard/Kconfig"
358 default "devicetree.cb"
360 This symbol allows mainboards to select a different file under their
361 mainboard directory for the devicetree.cb file. This allows the board
362 variants that need different devicetrees to be in the same directory.
364 Examples: "devicetree.variant.cb"
365 "variant/devicetree.cb"
367 config OVERRIDE_DEVICETREE
371 This symbol allows variants to provide an override devicetree file to
372 override the registers and/or add new devices on top of the ones
373 provided by baseboard devicetree using CONFIG_DEVICETREE.
375 Examples: "devicetree.variant-override.cb"
376 "variant/devicetree-override.cb"
379 string "fmap description file in fmd format"
380 default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
383 The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE,
384 but in some cases more complex setups are required.
385 When an fmd is specified, it overrides the default format.
388 hex "Size of CBFS filesystem in ROM"
389 depends on FMDFILE = ""
390 # Default value set at the end of the file
392 This is the part of the ROM actually managed by CBFS, located at the
393 end of the ROM (passed through cbfstool -o) on x86 and at at the start
394 of the ROM (passed through cbfstool -s) everywhere else. It defaults
395 to span the whole ROM on all but Intel systems that use an Intel Firmware
396 Descriptor. It can be overridden to make coreboot live alongside other
397 components like ChromeOS's vboot/FMAP or Intel's IFD / ME / TXE
398 binaries. This symbol should only be used to generate a default FMAP and
399 is unused when a non-default fmd file is provided via CONFIG_FMDFILE.
403 # load site-local kconfig to allow user specific defaults and overrides
404 source "site-local/Kconfig"
406 config SYSTEM_TYPE_LAPTOP
410 config SYSTEM_TYPE_TABLET
414 config SYSTEM_TYPE_DETACHABLE
418 config SYSTEM_TYPE_CONVERTIBLE
422 config CBFS_AUTOGEN_ATTRIBUTES
426 If this option is selected, every file in cbfs which has a constraint
427 regarding position or alignment will get an additional file attribute
428 which describes this constraint.
433 source "src/soc/*/Kconfig"
435 source "src/cpu/Kconfig"
436 comment "Northbridge"
437 source "src/northbridge/*/*/Kconfig"
438 comment "Southbridge"
439 source "src/southbridge/*/*/Kconfig"
441 source "src/superio/*/*/Kconfig"
442 comment "Embedded Controllers"
443 source "src/ec/acpi/Kconfig"
444 source "src/ec/*/*/Kconfig"
446 source "src/southbridge/intel/common/firmware/Kconfig"
447 source "src/vendorcode/*/Kconfig"
449 source "src/arch/*/Kconfig"
453 source "src/device/Kconfig"
455 menu "Generic Drivers"
456 source "src/drivers/*/Kconfig"
457 source "src/drivers/*/*/Kconfig"
458 source "src/commonlib/storage/Kconfig"
463 source "src/security/Kconfig"
464 source "src/vendorcode/eltan/security/Kconfig"
468 source "src/acpi/Kconfig"
470 # This option is for the current boards/chipsets where SPI flash
471 # is not the boot device. Currently nearly all boards/chipsets assume
472 # SPI flash is the boot device.
473 config BOOT_DEVICE_NOT_SPI_FLASH
477 config BOOT_DEVICE_SPI_FLASH
479 default y if !BOOT_DEVICE_NOT_SPI_FLASH
482 config BOOT_DEVICE_MEMORY_MAPPED
484 default y if ARCH_X86 && BOOT_DEVICE_SPI_FLASH
487 Inform system if SPI is memory-mapped or not.
489 config BOOT_DEVICE_SUPPORTS_WRITES
493 Indicate that the platform has writable boot device
502 default 0x100000 if FLATTENED_DEVICE_TREE
507 default 0x1000 if ARCH_X86
514 source "src/console/Kconfig"
516 config HAVE_ACPI_RESUME
519 depends on RELOCATABLE_RAMSTAGE
521 config RESUME_PATH_SAME_AS_BOOT
523 default y if ARCH_X86
524 depends on HAVE_ACPI_RESUME
526 This option indicates that when a system resumes it takes the
527 same path as a regular boot. e.g. an x86 system runs from the
528 reset vector at 0xfffffff0 on both resume and warm/cold boot.
530 config NO_MONOTONIC_TIMER
533 config HAVE_MONOTONIC_TIMER
535 depends on !NO_MONOTONIC_TIMER
538 The board/chipset provides a monotonic timer.
540 config GENERIC_UDELAY
542 depends on HAVE_MONOTONIC_TIMER
543 default y if !ARCH_X86
545 The board/chipset uses a generic udelay function utilizing the
550 depends on HAVE_MONOTONIC_TIMER
552 Provide a timer queue for performing time-based callbacks.
554 config COOP_MULTITASKING
556 depends on TIMER_QUEUE && ARCH_X86
558 Cooperative multitasking allows callbacks to be multiplexed on the
559 main thread of ramstage. With this enabled it allows for multiple
560 execution paths to take place when they have udelay() calls within
566 depends on COOP_MULTITASKING
568 How many execution threads to cooperatively multitask with.
570 config HAVE_OPTION_TABLE
574 This variable specifies whether a given board has a cmos.layout
575 file containing NVRAM/CMOS bit definitions.
576 It defaults to 'n' but can be selected in mainboard/*/Kconfig.
578 config PCI_IO_CFG_EXT
586 config USE_WATCHDOG_ON_BOOT
594 Enable Unified Memory Architecture for graphics.
596 config HAVE_ACPI_TABLES
599 This variable specifies whether a given board has ACPI table support.
600 It is usually set in mainboard/*/Kconfig.
605 This variable specifies whether a given board has MP table support.
606 It is usually set in mainboard/*/Kconfig.
607 Whether or not the MP table is actually generated by coreboot
608 is configurable by the user via GENERATE_MP_TABLE.
610 config HAVE_PIRQ_TABLE
613 This variable specifies whether a given board has PIRQ table support.
614 It is usually set in mainboard/*/Kconfig.
615 Whether or not the PIRQ table is actually generated by coreboot
616 is configurable by the user via GENERATE_PIRQ_TABLE.
626 Build support for NHLT (non HD Audio) ACPI table generation.
630 depends on HAVE_ACPI_TABLES
632 Build an ACPI Boot Error Record Table.
634 #These Options are here to avoid "undefined" warnings.
635 #The actual selection and help texts are in the following menu.
639 config GENERATE_MP_TABLE
640 prompt "Generate an MP table" if HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
642 default HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
644 Generate an MP table (conforming to the Intel MultiProcessor
645 specification 1.4) for this board.
649 config GENERATE_PIRQ_TABLE
650 prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE
652 default HAVE_PIRQ_TABLE
654 Generate a PIRQ table for this board.
658 config GENERATE_SMBIOS_TABLES
660 bool "Generate SMBIOS tables"
663 Generate SMBIOS tables for this board.
667 config SMBIOS_PROVIDED_BY_MOBO
671 config MAINBOARD_SERIAL_NUMBER
672 prompt "SMBIOS Serial Number" if !SMBIOS_PROVIDED_BY_MOBO
674 depends on GENERATE_SMBIOS_TABLES
677 The Serial Number to store in SMBIOS structures.
679 config MAINBOARD_VERSION
680 prompt "SMBIOS Version Number" if !SMBIOS_PROVIDED_BY_MOBO
682 depends on GENERATE_SMBIOS_TABLES
685 The Version Number to store in SMBIOS structures.
687 config MAINBOARD_SMBIOS_MANUFACTURER
688 prompt "SMBIOS Manufacturer" if !SMBIOS_PROVIDED_BY_MOBO
690 depends on GENERATE_SMBIOS_TABLES
691 default MAINBOARD_VENDOR
693 Override the default Manufacturer stored in SMBIOS structures.
695 config MAINBOARD_SMBIOS_PRODUCT_NAME
696 prompt "SMBIOS Product name" if !SMBIOS_PROVIDED_BY_MOBO
698 depends on GENERATE_SMBIOS_TABLES
699 default MAINBOARD_PART_NUMBER
701 Override the default Product name stored in SMBIOS structures.
703 config SMBIOS_ENCLOSURE_TYPE
705 depends on GENERATE_SMBIOS_TABLES
706 default 0x09 if SYSTEM_TYPE_LAPTOP
707 default 0x1e if SYSTEM_TYPE_TABLET
708 default 0x1f if SYSTEM_TYPE_CONVERTIBLE
709 default 0x20 if SYSTEM_TYPE_DETACHABLE
712 System Enclosure or Chassis Types as defined in SMBIOS specification.
713 The default value is SMBIOS_ENCLOSURE_DESKTOP (0x03) but laptop,
714 convertible, or tablet enclosure will be used if the appropriate
715 system type is selected.
719 source "payloads/Kconfig"
723 comment "CPU Debug Settings"
724 source "src/cpu/*/Kconfig.debug_cpu"
726 comment "BLOB Debug Settings"
727 source "src/drivers/intel/fsp*/Kconfig.debug_blob"
729 comment "General Debug Settings"
731 # TODO: Better help text and detailed instructions.
733 bool "GDB debugging support"
735 depends on CONSOLE_SERIAL
737 If enabled, you will be able to set breakpoints for gdb debugging.
738 See src/arch/x86/lib/c_start.S for details.
741 bool "Wait for a GDB connection in the ramstage"
745 If enabled, coreboot will wait for a GDB connection in the ramstage.
749 bool "Halt when hitting a BUG() or assertion error"
752 If enabled, coreboot will call hlt() on a BUG() or failed ASSERT().
754 config HAVE_DEBUG_GPIO
758 bool "Output verbose GPIO debug messages"
759 depends on HAVE_DEBUG_GPIO
762 bool "Output verbose CBFS debug messages"
765 This option enables additional CBFS related debug messages.
767 config HAVE_DEBUG_RAM_SETUP
770 config DEBUG_RAM_SETUP
771 bool "Output verbose RAM init debug messages"
773 depends on HAVE_DEBUG_RAM_SETUP
775 This option enables additional RAM init related debug messages.
776 It is recommended to enable this when debugging issues on your
777 board which might be RAM init related.
779 Note: This option will increase the size of the coreboot image.
784 bool "Check PIRQ table consistency"
786 depends on GENERATE_PIRQ_TABLE
790 config HAVE_DEBUG_SMBUS
794 bool "Output verbose SMBus debug messages"
796 depends on HAVE_DEBUG_SMBUS
798 This option enables additional SMBus (and SPD) debug messages.
800 Note: This option will increase the size of the coreboot image.
805 bool "Output verbose SMI debug messages"
807 depends on HAVE_SMI_HANDLER
808 select SPI_FLASH_SMM if SPI_CONSOLE || CONSOLE_SPI_FLASH
810 This option enables additional SMI related debug messages.
812 Note: This option will increase the size of the coreboot image.
816 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
817 # printk(BIOS_DEBUG, ...) calls.
819 prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
823 This option enables additional malloc related debug messages.
825 Note: This option will increase the size of the coreboot image.
829 config DEBUG_CONSOLE_INIT
830 bool "Debug console initialisation code"
833 With this option printk()'s are attempted before console hardware
834 initialisation has been completed. Your mileage may vary.
836 Typically you will need to modify source in console_hw_init() such
837 that a working console appears before the one you want to debug.
841 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
842 # printk(BIOS_DEBUG, ...) calls.
843 config REALMODE_DEBUG
844 prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
847 depends on PCI_OPTION_ROM_RUN_REALMODE
849 This option enables additional x86emu related debug messages.
851 Note: This option will increase the time to emulate a ROM.
856 bool "Output verbose x86emu debug messages"
858 depends on PCI_OPTION_ROM_RUN_YABEL
860 This option enables additional x86emu related debug messages.
862 Note: This option will increase the size of the coreboot image.
866 config X86EMU_DEBUG_JMP
867 bool "Trace JMP/RETF"
869 depends on X86EMU_DEBUG
871 Print information about JMP and RETF opcodes from x86emu.
873 Note: This option will increase the size of the coreboot image.
877 config X86EMU_DEBUG_TRACE
878 bool "Trace all opcodes"
880 depends on X86EMU_DEBUG
882 Print _all_ opcodes that are executed by x86emu.
884 WARNING: This will produce a LOT of output and take a long time.
886 Note: This option will increase the size of the coreboot image.
890 config X86EMU_DEBUG_PNP
891 bool "Log Plug&Play accesses"
893 depends on X86EMU_DEBUG
895 Print Plug And Play accesses made by option ROMs.
897 Note: This option will increase the size of the coreboot image.
901 config X86EMU_DEBUG_DISK
904 depends on X86EMU_DEBUG
906 Print Disk I/O related messages.
908 Note: This option will increase the size of the coreboot image.
912 config X86EMU_DEBUG_PMM
915 depends on X86EMU_DEBUG
917 Print messages related to POST Memory Manager (PMM).
919 Note: This option will increase the size of the coreboot image.
924 config X86EMU_DEBUG_VBE
925 bool "Debug VESA BIOS Extensions"
927 depends on X86EMU_DEBUG
929 Print messages related to VESA BIOS Extension (VBE) functions.
931 Note: This option will increase the size of the coreboot image.
935 config X86EMU_DEBUG_INT10
936 bool "Redirect INT10 output to console"
938 depends on X86EMU_DEBUG
940 Let INT10 (i.e. character output) calls print messages to debug output.
942 Note: This option will increase the size of the coreboot image.
946 config X86EMU_DEBUG_INTERRUPTS
947 bool "Log intXX calls"
949 depends on X86EMU_DEBUG
951 Print messages related to interrupt handling.
953 Note: This option will increase the size of the coreboot image.
957 config X86EMU_DEBUG_CHECK_VMEM_ACCESS
958 bool "Log special memory accesses"
960 depends on X86EMU_DEBUG
962 Print messages related to accesses to certain areas of the virtual
963 memory (e.g. BDA (BIOS Data Area) or interrupt vectors)
965 Note: This option will increase the size of the coreboot image.
969 config X86EMU_DEBUG_MEM
970 bool "Log all memory accesses"
972 depends on X86EMU_DEBUG
974 Print memory accesses made by option ROM.
975 Note: This also includes accesses to fetch instructions.
977 Note: This option will increase the size of the coreboot image.
981 config X86EMU_DEBUG_IO
982 bool "Log IO accesses"
984 depends on X86EMU_DEBUG
986 Print I/O accesses made by option ROM.
988 Note: This option will increase the size of the coreboot image.
992 config X86EMU_DEBUG_TIMINGS
993 bool "Output timing information"
995 depends on X86EMU_DEBUG && HAVE_MONOTONIC_TIMER
997 Print timing information needed by i915tool.
1001 config DEBUG_SPI_FLASH
1002 bool "Output verbose SPI flash debug messages"
1004 depends on SPI_FLASH
1006 This option enables additional SPI flash related debug messages.
1008 if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8
1009 # Only visible with the right southbridge and loglevel.
1010 config DEBUG_INTEL_ME
1011 bool "Verbose logging for Intel Management Engine"
1014 Enable verbose logging for Intel Management Engine driver that
1015 is present on Intel 6-series chipsets.
1019 bool "Trace function calls"
1022 If enabled, every function will print information to console once
1023 the function is entered. The syntax is ~0xaaaabbbb(0xccccdddd)
1024 the 0xaaaabbbb is the actual function and 0xccccdddd is EIP
1025 of calling function. Please note some printk related functions
1026 are omitted from trace to have good looking console dumps.
1028 config DEBUG_COVERAGE
1029 bool "Debug code coverage"
1033 If enabled, the code coverage hooks in coreboot will output some
1034 information about the coverage data that is dumped.
1036 config DEBUG_BOOT_STATE
1037 bool "Debug boot state machine"
1040 Control debugging of the boot state machine. When selected displays
1041 the state boundaries in ramstage.
1043 config DEBUG_ADA_CODE
1044 bool "Compile debug code in Ada sources"
1047 Add the compiler switch `-gnata` to compile code guarded by
1050 config HAVE_EM100_SUPPORT
1051 bool "Platform can support the Dediprog EM100 SPI emulator"
1053 This is enabled by platforms which can support using the EM100.
1056 bool "Configure image for EM100 usage"
1057 depends on HAVE_EM100_SUPPORT
1059 The Dediprog EM100 SPI emulator allows fast loading of new SPI images
1060 over USB. However it only supports a maximum SPI clock of 20MHz and
1061 single data output. Enable this option to use a 20MHz SPI clock and
1062 disable "Dual Output Fast Read" Support.
1064 On AMD platforms this changes the SPI speed at run-time if the
1065 mainboard code supports this. On supported Intel platforms this works
1066 by changing the settings in the descriptor.bin file.
1071 ###############################################################################
1072 # Set variables with no prompt - these can be set anywhere, and putting at
1073 # the end of this file gives the most flexibility.
1075 source "src/lib/Kconfig"
1077 config ENABLE_APIC_EXT_ID
1081 config WARNINGS_ARE_ERRORS
1085 # The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE,
1086 # POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are
1087 # mutually exclusive. One of these options must be selected in the
1088 # mainboard Kconfig if the chipset supports enabling and disabling of
1089 # the power button. Chipset code uses the ENABLE_POWER_BUTTON option set
1090 # in mainboard/Kconfig to know if the button should be enabled or not.
1092 config POWER_BUTTON_DEFAULT_ENABLE
1095 Select when the board has a power button which can optionally be
1096 disabled by the user.
1098 config POWER_BUTTON_DEFAULT_DISABLE
1101 Select when the board has a power button which can optionally be
1102 enabled by the user, e.g. when the board ships with a jumper over
1103 the power switch contacts.
1105 config POWER_BUTTON_FORCE_ENABLE
1108 Select when the board requires that the power button is always
1111 config POWER_BUTTON_FORCE_DISABLE
1114 Select when the board requires that the power button is always
1115 disabled, e.g. when it has been hardwired to ground.
1117 config POWER_BUTTON_IS_OPTIONAL
1119 default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE
1120 default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE)
1122 Internal option that controls ENABLE_POWER_BUTTON visibility.
1128 Internal option that controls whether we compile in register scripts.
1130 config MAX_REBOOT_CNT
1134 Internal option that sets the maximum number of bootblock executions allowed
1135 with the normal image enabled before assuming the normal image is defective
1136 and switching to the fallback image.
1138 config UNCOMPRESSED_RAMSTAGE
1141 config NO_XIP_EARLY_STAGES
1143 default n if ARCH_X86
1146 Identify if early stages are eXecute-In-Place(XIP).
1148 config EARLY_CBMEM_LIST
1152 Enable display of CBMEM during romstage and postcar.
1154 config RELOCATABLE_MODULES
1157 If RELOCATABLE_MODULES is selected then support is enabled for
1158 building relocatable modules in the RAM stage. Those modules can be
1159 loaded anywhere and all the relocations are handled automatically.
1161 config NO_STAGE_CACHE
1163 default y if !HAVE_ACPI_RESUME || !RELOCATABLE_RAMSTAGE
1165 Do not save any component in stage cache for resume path. On resume,
1166 all components would be read back from CBFS again.
1168 config GENERIC_GPIO_LIB
1171 If enabled, compile the generic GPIO library. A "generic" GPIO
1172 implies configurability usually found on SoCs, particularly the
1173 ability to control internal pull resistors.
1175 config BOOTBLOCK_CUSTOM
1176 # To be selected by arch, SoC or mainboard if it does not want use the normal
1177 # src/lib/bootblock.c#main() C entry point.
1180 config ROMCC_BOOTBLOCK
1183 ###############################################################################
1184 # Set default values for symbols created before mainboards. This allows the
1185 # option to be displayed in the general menu, but the default to be loaded in
1186 # the mainboard if desired.
1187 config COMPRESS_RAMSTAGE
1188 default y if !UNCOMPRESSED_RAMSTAGE
1190 config COMPRESS_PRERAM_STAGES
1191 depends on !ARCH_X86
1194 config INCLUDE_CONFIG_FILE
1197 config BOOTSPLASH_FILE
1198 depends on BOOTSPLASH_IMAGE
1199 default "bootsplash.jpg"
1204 config HAVE_BOOTBLOCK
1208 config HAVE_VERSTAGE
1210 depends on VBOOT_SEPARATE_VERSTAGE
1213 config HAVE_ROMSTAGE
1217 config HAVE_RAMSTAGE
1219 default n if RAMPAYLOAD