1 ## SPDX-License-Identifier: GPL-2.0-only
5 ## Copyright (C) 2008 Advanced Micro Devices, Inc.
6 ## Copyright (C) 2008 coresystems GmbH
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted provided that the following conditions
11 ## 1. Redistributions of source code must retain the above copyright
12 ## notice, this list of conditions and the following disclaimer.
13 ## 2. Redistributions in binary form must reproduce the above copyright
14 ## notice, this list of conditions and the following disclaimer in the
15 ## documentation and/or other materials provided with the distribution.
16 ## 3. The name of the author may not be used to endorse or promote products
17 ## derived from this software without specific prior written permission.
19 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20 ## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 ## ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 ## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 ## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 ## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 ## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 ## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 mainmenu "Libpayload Configuration"
34 menu "Generic Options"
37 bool "GPLv2-licensed Options"
41 Prompt for options that will build code licensed under the GNU General
42 Public License (version 2). This will subject the whole payload to the
43 terms of this license (including its provision to release all sources,
44 please see the LICENSE_GPL file for details).
47 bool "Experimental Options"
50 Prompt for experimental functionality. Attention: This is not likely
51 to work without problems
54 bool "Developer Options"
57 Prompt for developer options. These options are only interesting for
58 libpayload developers.
61 bool "ChromeOS Options"
64 Select configuration defaults appropriate for ChromeOS boards.
67 prompt "Compiler to use"
70 This option allows you to select the compiler.
75 Use the GNU Compiler Collection (GCC).
77 config COMPILER_LLVM_CLANG
85 bool "Use link time optimization (LTO)"
87 depends on COMPILER_GCC
89 Compile with link time optimization. This can often decrease the
90 final binary size, but may increase compilation time.
93 bool "Remote GDB stub"
97 Enable Remote GDB debugging support.
99 config MEMMAP_RAM_ONLY
100 bool "Only consider RAM entries in memory map for further processing"
105 menu "Architecture Options"
108 prompt "Target Architecture"
114 Support the ARM architecture
119 Support the x86 architecture
124 Support the ARM64 architecture
127 bool "Mock architecture (for unit tests)"
129 This enables the mock architecture (for unit tests) that is intended
130 to be used for testing purposes, to either test payloads or libpayload itself.
131 It provides necessary headers, but requires mocking (providing implementation
132 for) arch-specific functions.
137 bool "Multiboot header support"
139 default y if !CHROMEOS
145 This is the heap size (malloc'able size) available
148 If unsure, set to 131072 (128K)
154 This is the stack size available to the payload.
156 If unsure, set to 16384 (16K)
160 default 0x04000000 if ARCH_ARM
161 default 0x80100000 if ARCH_ARM64
162 default 0x00100000 if ARCH_X86
163 default 0x00000000 if ARCH_MOCK
165 This is the base address for the payload.
167 If unsure, set to 0x00100000 on x86,
168 0x04000000 on ARM or 0x80100000 on ARM64.
172 menu "Standard Libraries"
175 bool "Enable C library support"
179 bool "Build a curses library"
180 default y if !CHROMEOS
183 prompt "Curses implementation"
190 TinyCurses was the first curses implementation for libpayload.
191 It features low memory consumption, static allocation of larger
192 data structures (so few or no memory allocation calls) and a
198 libpayload's PDCurses port provides a full features curses
199 implementation, including libpanel, libmenu and libform (which
200 are taken from ncurses).
201 It requires more system resources, in particularily heap memory.
205 source "libcbfs/Kconfig"
211 LZMA decoder implementation, usable eg. by CBFS,
218 Decoder implementation for the LZ4 compression algorithm.
219 Adds standalone functions (CBFS support coming soon).
221 source "vboot/Kconfig"
225 menu "Console Options"
227 config SKIP_CONSOLE_INIT
228 bool "Skip initializing the consoles at startup"
229 default y if CHROMEOS
232 Normally, libpayload will initialize console input/output on startup
233 before the payload itself gets control. This option disables that
234 behavior and leaves console initialization up to the payload.
237 bool "Send output to the in memory CBMEM console"
240 config SERIAL_CONSOLE
241 bool "See output on the serial port console"
244 config 8250_SERIAL_CONSOLE
245 bool "8250-compatible serial port driver (including IO and MMIO)"
246 depends on SERIAL_CONSOLE
247 default y if ARCH_X86
249 config S5P_SERIAL_CONSOLE
250 bool "Exynos SOC, S5P compatible serial port driver"
251 depends on SERIAL_CONSOLE
254 config IPQ806X_SERIAL_CONSOLE
255 bool "IPQ806x SOC compatible serial port driver"
256 depends on SERIAL_CONSOLE
259 config IPQ40XX_SERIAL_CONSOLE
260 bool "IPQ40xx SOC compatible serial port driver"
261 depends on SERIAL_CONSOLE
264 config QCS405_SERIAL_CONSOLE
265 bool "QCS405 SOC compatible serial port driver"
266 depends on SERIAL_CONSOLE
269 config QUALCOMM_QUPV3_SERIAL_CONSOLE
270 bool "Qualcomm QUPV3 serial port driver"
271 depends on SERIAL_CONSOLE
274 config PL011_SERIAL_CONSOLE
275 bool "PL011 compatible serial port driver"
276 depends on 8250_SERIAL_CONSOLE
280 ## This default is currently not used on non-x86 systems.
281 hex "Default I/O base for the serial port (default 0x3f8)"
282 depends on SERIAL_CONSOLE && ARCH_X86
285 config SERIAL_SET_SPEED
286 bool "Override the serial console baud rate"
288 depends on SERIAL_CONSOLE
290 config SERIAL_BAUD_RATE
291 int "Serial console baud rate (default 115200)"
292 depends on SERIAL_SET_SPEED
295 config SERIAL_ACS_FALLBACK
296 bool "Use plain ASCII characters for ACS"
298 depends on SERIAL_CONSOLE
300 The alternate character set (ACS) is used for drawing lines and
301 displaying a couple of other special graphics characters. The
302 ACS characters generally look good on screen, but can be difficult
303 to cut and paste from a terminal window to a text editor.
305 Say 'y' here if you want to always use plain ASCII characters to
306 approximate the appearance of ACS characters on the serial port
310 bool "See output on a video console"
313 config VGA_VIDEO_CONSOLE
314 bool "VGA video console driver"
315 depends on ARCH_X86 && VIDEO_CONSOLE
316 default y if !CHROMEOS
318 config GEODELX_VIDEO_CONSOLE
319 bool "Geode LX video console driver"
320 depends on ARCH_X86 && VIDEO_CONSOLE
323 config COREBOOT_VIDEO_CONSOLE
324 bool "coreboot video console driver"
325 depends on VIDEO_CONSOLE && !GEODELX_VIDEO_CONSOLE
326 default y if CHROMEOS
329 Say Y here if coreboot switched to a graphics mode and
330 your payload wants to use it.
332 config COREBOOT_VIDEO_CENTERED
333 bool "Center a classic 80x25 console on bigger screens"
334 depends on COREBOOT_VIDEO_CONSOLE
336 Say 'y' here if your payload is hardcoded to a 80x25 console. Otherwise
337 its output would look squeezed into the upper-left corner of the screen.
339 config FONT_SCALE_FACTOR
340 int "Scale factor for the included font"
341 depends on GEODELX_VIDEO_CONSOLE || COREBOOT_VIDEO_CONSOLE
344 By default (value of 0), the scale factor is automatically
345 calculated to ensure at least 130 columns (when possible).
347 config CBGFX_FAST_RESAMPLE
348 bool "CBGFX: use faster (less pretty) image scaling"
351 When payloads use the CBGFX library to draw .BMPs on the screen,
352 they will be resampled with an anti-aliasing filter to scale to the
353 requested output size. The default implementation should normally be
354 fast enough, but if desired this option can make it about 50-100%
355 faster at the cost of quality. (It changes the 'a' parameter in the
356 Lanczos resampling algorithm from 3 to 2.)
358 Only affects .BMPs that aren't already provided at the right size.
361 bool "A common PC i8042 driver"
362 default y if PC_KEYBOARD || PC_MOUSE
365 To be used by PC_KEYBOARD and PC_MOUSE.
368 bool "Allow input from a PC mouse"
369 default n if CHROMEOS
370 default y if ARCH_X86 # uses IO
373 PS/2 mouse driver on top of PC_I8042.
376 bool "Allow input from a PC keyboard"
377 default y if ARCH_X86 # uses IO
380 config PC_KEYBOARD_LAYOUT_US
381 bool "English (US) keyboard layout"
382 depends on PC_KEYBOARD
385 config PC_KEYBOARD_LAYOUT_DE
386 bool "German keyboard layout"
387 depends on PC_KEYBOARD
390 config PC_KEYBOARD_TRANSLATION
391 bool "Enable or Disable translation in PC keyboard set 2 on exit"
392 depends on PC_KEYBOARD
400 bool "Support for PCI devices"
401 default y if ARCH_X86
405 bool "Support for PCI devices with port IO"
406 depends on PCI && IO_ADDRESS_SPACE
407 default y if ARCH_X86
411 bool "Support for PCIe devices on MediaTek platforms"
412 depends on PCI && !PCI_IO_OPS
416 bool "Support for PCIe devices on Qualcomm platforms"
417 depends on PCI && !PCI_IO_OPS
421 bool "Support for reading/writing NVRAM bytes"
422 depends on ARCH_X86 # for now
426 bool "Support for mouse cursor handling"
427 default y if PC_MOUSE
430 Provides a common interface for various mouse cursor drivers.
431 * Supports up to 32 buttons.
432 * Supports 3 axis mice.
433 * Applies simple cursor acceleration.
434 * Allows to set cursor acceleration and cursor speed.
436 config RTC_PORT_EXTENDED_VIA
437 bool "Extended RTC ports are 0x74/0x75"
440 For recent chipsets with 256 NVRAM bytes, you have to access the
441 upper 128 bytes (128-255) using two different I/O ports,
444 On some chipsets this can be a different set of ports, though.
445 The VIA VT8237R for example only recognizes the ports 0x74/0x75
446 for accessing the high 128 NVRAM bytes (as seems to be the case for
447 multiple VIA chipsets).
449 If you want to read or write CMOS bytes on computers with one of
450 these chipsets, say 'y' here.
453 bool "Support for PC speaker"
455 default y if !CHROMEOS
457 source "drivers/timer/Kconfig"
458 source "drivers/storage/Kconfig"
459 source "drivers/usb/Kconfig"
467 bool "Debug memory allocator"
470 Select this option if you want to debug the memory allocator. This
471 option logs all uses of the following functions:
473 void free(void *ptr);
474 void *malloc(size_t size);
475 void *calloc(size_t nmemb, size_t size);
476 void *realloc(void *ptr, size_t size);
477 void *memalign(size_t align, size_t size);
479 Say N here unless you are debugging memory allocator problems.
491 config IO_ADDRESS_SPACE
495 This option is turned on if the target system has a separate
496 IO address space. This is typically only the case on x86.
498 source "arch/arm/Kconfig"
499 source "arch/arm64/Kconfig"
500 source "arch/x86/Kconfig"
501 source "arch/mock/Kconfig"