1 menu "Library routines"
4 bool "Enable support for non-identity virtual-physical mappings"
6 Enables helper code for implementing non-identity virtual-physical
7 memory mappings for 32bit CPUs.
9 config SYS_NUM_ADDR_MAP
10 int "Size of the address-map table"
14 Sets the number of entries in the virtual-physical mapping table.
17 bool "Enable Software based BCH ECC"
19 Enables software based BCH ECC algorithm present in lib/bch.c
20 This is used by SoC platforms which do not have built-in ELM
21 hardware engine required for BCH ECC correction.
24 bool "Allow access to binman information in the device tree"
25 depends on BINMAN && OF_CONTROL
28 This enables U-Boot to access information about binman entries,
29 stored in the device tree in a binman node. Typical uses are to
30 locate entries in the firmware image. See binman.h for the available
33 config CC_OPTIMIZE_LIBS_FOR_SPEED
34 bool "Optimize libraries for speed"
36 Enabling this option will pass "-O2" to gcc when compiling
37 under "lib" directory.
41 config DYNAMIC_CRC_TABLE
42 bool "Enable Dynamic tables for CRC"
44 Enable this option to calculate entries for CRC tables at runtime.
45 This can be helpful when reducing the size of the build image
47 config HAVE_ARCH_IOMAP
50 Enable this option if architecture provides io{read,write}{8,16,32}
51 I/O accessor functions.
53 config HAVE_PRIVATE_LIBGCC
66 select SPL_STRTO if !SPL_USE_TINY_PRINTF
71 select TPL_STRTO if !TPL_USE_TINY_PRINTF
96 config IMAGE_SPARSE_FILLBUF_SIZE
97 hex "Android sparse image CHUNK_TYPE_FILL buffer size"
99 depends on IMAGE_SPARSE
101 Set the size of the fill buffer used when processing CHUNK_TYPE_FILL
104 config USE_PRIVATE_LIBGCC
105 bool "Use private libgcc"
106 depends on HAVE_PRIVATE_LIBGCC
107 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
109 This option allows you to use the built-in libgcc implementation
110 of U-Boot instead of the one provided by the compiler.
117 The frequency of the timer returned by get_timer().
118 get_timer() must operate in milliseconds and this option must be
121 config SPL_USE_TINY_PRINTF
122 bool "Enable tiny printf() version in SPL"
126 This option enables a tiny, stripped down printf version.
127 This should only be used in space limited environments,
128 like SPL versions with hard memory limits. This version
129 reduces the code size by about 2.5KiB on armv7.
131 The supported format specifiers are %c, %s, %u/%d and %x.
133 config TPL_USE_TINY_PRINTF
134 bool "Enable tiny printf() version in TPL"
136 default y if SPL_USE_TINY_PRINTF
138 This option enables a tiny, stripped down printf version.
139 This should only be used in space limited environments,
140 like SPL versions with hard memory limits. This version
141 reduces the code size by about 2.5KiB on armv7.
143 The supported format specifiers are %c, %s, %u/%d and %x.
146 bool "Do not reset the system on fatal error"
148 Define this option to stop the system in case of a fatal error,
149 so that you have to reset it manually. This is probably NOT a good
150 idea for an embedded system where you want the system to reboot
151 automatically as fast as possible, but it may be useful during
152 development since you can try to debug the conditions that lead to
156 bool "Enable regular expression support"
159 If this variable is defined, U-Boot is linked against the
160 SLRE (Super Light Regular Expression) library, which adds
161 regex support to some commands, for example "env grep" and
165 prompt "Pseudo-random library support type"
166 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
167 RNG_SANDBOX || UT_LIB && AES
170 Select the library to provide pseudo-random number generator
171 functions. LIB_HW_RAND supports certain hardware engines that
172 provide this functionality. If in doubt, select LIB_RAND.
175 bool "Pseudo-random library support"
178 bool "HW Engine for random library support"
182 config SPL_TINY_MEMSET
183 bool "Use a very small memset() in SPL"
185 The faster memset() is the arch-specific one (if available) enabled
186 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
187 better performance by writing a word at a time. But in very
188 size-constrained environments even this may be too big. Enable this
189 option to reduce code size slightly at the cost of some speed.
191 config TPL_TINY_MEMSET
192 bool "Use a very small memset() in TPL"
194 The faster memset() is the arch-specific one (if available) enabled
195 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
196 better performance by writing a word at a time. But in very
197 size-constrained environments even this may be too big. Enable this
198 option to reduce code size slightly at the cost of some speed.
204 bool "Bit reverse library from Linux"
207 bool "Support for tracing of function calls and timing"
210 Enables function tracing within U-Boot. This allows recording of call
211 traces including timing information. The command can write data to
212 memory for exporting for analysis (e.g. using bootchart).
213 See doc/README.trace for full details.
215 config TRACE_BUFFER_SIZE
216 hex "Size of trace buffer in U-Boot"
220 Sets the size of the trace buffer in U-Boot. This is allocated from
221 memory during relocation. If this buffer is too small, the trace
222 history will be truncated, with later records omitted.
224 If early trace is enabled (i.e. before relocation), this buffer must
225 be large enough to include all the data from the early trace buffer as
226 well, since this is copied over to the main buffer during relocation.
228 A trace record is emitted for each function call and each record is
229 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
230 the size is too small then 'trace stats' will show a message saying
231 how many records were dropped due to buffer overflow.
233 config TRACE_CALL_DEPTH_LIMIT
234 int "Trace call depth limit"
238 Sets the maximum call depth up to which function calls are recorded.
241 bool "Enable tracing before relocation"
244 Sometimes it is helpful to trace execution of U-Boot before
245 relocation. This is possible by using a arch-specific, fixed buffer
246 position in memory. Enable this option to start tracing as early as
247 possible after U-Boot starts.
249 config TRACE_EARLY_SIZE
250 hex "Size of early trace buffer in U-Boot"
251 depends on TRACE_EARLY
254 Sets the size of the early trace buffer in bytes. This is used to hold
255 tracing information before relocation.
257 config TRACE_EARLY_CALL_DEPTH_LIMIT
258 int "Early trace call depth limit"
259 depends on TRACE_EARLY
262 Sets the maximum call depth up to which function calls are recorded
263 during early tracing.
265 config TRACE_EARLY_ADDR
266 hex "Address of early trace buffer in U-Boot"
267 depends on TRACE_EARLY
270 Sets the address of the early trace buffer in U-Boot. This memory
271 must be accessible before relocation.
273 A trace record is emitted for each function call and each record is
274 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
275 the size is too small then the message which says the amount of early
276 data being coped will the the same as the
278 source lib/dhry/Kconfig
280 menu "Security support"
283 bool "Support the AES algorithm"
285 This provides a means to encrypt and decrypt data using the AES
286 (Advanced Encryption Standard). This algorithm uses a symetric key
287 and is widely used as a streaming cipher. Different key lengths are
288 supported by the algorithm but only a 128-bit key is supported at
291 source lib/rsa/Kconfig
292 source lib/crypto/Kconfig
295 bool "Trusted Platform Module (TPM) Support"
298 This enables support for TPMs which can be used to provide security
299 features for your board. The TPM can be connected via LPC or I2C
300 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
301 command to interactive the TPM. Driver model support is provided
302 for the low-level TPM interface, but only one TPM is supported at
303 a time by the TPM library.
306 bool "Trusted Platform Module (TPM) Support in SPL"
309 This enables support for TPMs which can be used to provide security
310 features for your board. The TPM can be connected via LPC or I2C
311 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
312 command to interactive the TPM. Driver model support is provided
313 for the low-level TPM interface, but only one TPM is supported at
314 a time by the TPM library.
317 bool "Trusted Platform Module (TPM) Support in TPL"
320 This enables support for TPMs which can be used to provide security
321 features for your board. The TPM can be connected via LPC or I2C
322 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
323 command to interactive the TPM. Driver model support is provided
324 for the low-level TPM interface, but only one TPM is supported at
325 a time by the TPM library.
329 menu "Android Verified Boot"
332 bool "Android Verified Boot 2.0 support"
333 depends on ANDROID_BOOT_IMAGE
336 This enables support of Android Verified Boot 2.0 which can be used
337 to assure the end user of the integrity of the software running on a
338 device. Introduces such features as boot chain of trust, rollback
343 menu "Hashing Support"
346 bool "Enable SHA1 support"
348 This option enables support of hashing using SHA1 algorithm.
349 The hash is calculated in software.
350 The SHA1 algorithm produces a 160-bit (20-byte) hash value
354 bool "Enable SHA256 support"
356 This option enables support of hashing using SHA256 algorithm.
357 The hash is calculated in software.
358 The SHA256 algorithm produces a 256-bit (32-byte) hash value
362 bool "Enable SHA512 algorithm"
364 This option enables support of internal SHA512 algorithm.
367 bool "Enable SHA512 support"
368 depends on SHA512_ALGO
370 This option enables support of hashing using SHA512 algorithm.
371 The hash is calculated in software.
372 The SHA512 algorithm produces a 512-bit (64-byte) hash value
376 bool "Enable SHA384 support"
377 depends on SHA512_ALGO
379 This option enables support of hashing using SHA384 algorithm.
380 The hash is calculated in software.
381 The SHA384 algorithm produces a 384-bit (48-byte) hash value
385 bool "Enable hashing using hardware"
387 This option enables hardware acceleration
388 for SHA1/SHA256 hashing.
389 This affects the 'hash' command and also the
390 hash_lookup_algo() function.
392 config SHA_PROG_HW_ACCEL
393 bool "Enable Progressive hashing support using hardware"
394 depends on SHA_HW_ACCEL
396 This option enables hardware-acceleration for
397 SHA1/SHA256 progressive hashing.
398 Data can be streamed in a block at a time and the hashing
399 is performed in hardware.
402 bool "Support MD5 algorithm"
404 This option enables MD5 support. MD5 is an algorithm designed
405 in 1991 that produces a 16-byte digest (or checksum) from its input
406 data. It has a number of vulnerabilities which preclude its use in
407 security applications, but it can be useful for providing a quick
408 checksum of a block of data.
411 bool "Support MD5 algorithm in SPL"
413 This option enables MD5 support in SPL. MD5 is an algorithm designed
414 in 1991 that produces a 16-byte digest (or checksum) from its input
415 data. It has a number of vulnerabilities which preclude its use in
416 security applications, but it can be useful for providing a quick
417 checksum of a block of data.
427 menu "Compression Support"
430 bool "Enable LZ4 decompression support"
432 If this option is set, support for LZ4 compressed images
433 is included. The LZ4 algorithm can run in-place as long as the
434 compressed image is loaded to the end of the output buffer, and
435 trades lower compression ratios for much faster decompression.
437 NOTE: This implements the release version of the LZ4 frame
438 format as generated by default by the 'lz4' command line tool.
439 This is not the same as the outdated, less efficient legacy
440 frame format currently (2015) implemented in the Linux kernel
441 (generated by 'lz4 -l'). The two formats are incompatible.
444 bool "Enable LZMA decompression support"
446 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
447 a dictionary compression algorithm that provides a high compression
448 ratio and fairly fast decompression speed. See also
449 CONFIG_CMD_LZMADEC which provides a decode command.
452 bool "Enable LZO decompression support"
454 This enables support for LZO compression algorithm.r
457 bool "Enable gzip decompression support"
461 This enables support for GZIP compression algorithm.
463 config GZIP_COMPRESSED
468 bool "Enable bzip2 decompression support"
470 This enables support for BZIP2 compression algorithm.
476 This enables ZLIB compression lib.
479 bool "Enable Zstandard decompression support"
482 This enables Zstandard decompression library.
485 bool "Enable LZ4 decompression support in SPL"
487 This enables support for the LZ4 decompression algorithm in SPL. LZ4
488 is a lossless data compression algorithm that is focused on
489 fast compression and decompression speed. It belongs to the LZ77
490 family of byte-oriented compression schemes.
493 bool "Enable LZMA decompression support for SPL build"
495 This enables support for LZMA compression algorithm for SPL boot.
498 bool "Enable LZO decompression support in SPL"
500 This enables support for LZO compression algorithm in the SPL.
503 bool "Enable gzip decompression support for SPL build"
506 This enables support for GZIP compression altorithm for SPL boot.
511 This enables compression lib for SPL boot.
514 bool "Enable Zstandard decompression support in SPL"
517 This enables Zstandard decompression library in the SPL.
522 bool "Enable function for getting errno-related string message"
524 The function errno_str(int errno), returns a pointer to the errno
525 corresponding text message:
526 - if errno is null or positive number - a pointer to "Success" message
527 - if errno is negative - a pointer to errno related message
530 bool "Enable hexdump"
532 This enables functions for printing dumps of binary data.
535 bool "Enable the FDT library"
536 default y if OF_CONTROL
538 This enables the FDT library (libfdt). It provides functions for
539 accessing binary device tree images in memory, such as adding and
540 removing nodes and properties, scanning through the tree and finding
541 particular compatible nodes. The library operates on a flattened
542 version of the device tree.
544 config OF_LIBFDT_ASSUME_MASK
545 hex "Mask of conditions to assume for libfdt"
546 depends on OF_LIBFDT || FIT
549 Use this to change the assumptions made by libfdt about the
550 device tree it is working with. A value of 0 means that no assumptions
551 are made, and libfdt is able to deal with malicious data. A value of
552 0xff means all assumptions are made and any invalid data may cause
553 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
555 config OF_LIBFDT_OVERLAY
556 bool "Enable the FDT library overlay support"
558 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
560 This enables the FDT library (libfdt) overlay support.
563 bool "Enable the FDT library for SPL"
564 default y if SPL_OF_CONTROL
566 This enables the FDT library (libfdt). It provides functions for
567 accessing binary device tree images in memory, such as adding and
568 removing nodes and properties, scanning through the tree and finding
569 particular compatible nodes. The library operates on a flattened
570 version of the device tree.
572 config SPL_OF_LIBFDT_ASSUME_MASK
573 hex "Mask of conditions to assume for libfdt"
574 depends on SPL_OF_LIBFDT || FIT
577 Use this to change the assumptions made by libfdt in SPL about the
578 device tree it is working with. A value of 0 means that no assumptions
579 are made, and libfdt is able to deal with malicious data. A value of
580 0xff means all assumptions are made and any invalid data may cause
581 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
584 bool "Enable the FDT library for TPL"
585 default y if TPL_OF_CONTROL
587 This enables the FDT library (libfdt). It provides functions for
588 accessing binary device tree images in memory, such as adding and
589 removing nodes and properties, scanning through the tree and finding
590 particular compatible nodes. The library operates on a flattened
591 version of the device tree.
593 config TPL_OF_LIBFDT_ASSUME_MASK
594 hex "Mask of conditions to assume for libfdt"
595 depends on TPL_OF_LIBFDT || FIT
598 Use this to change the assumptions made by libfdt in TPL about the
599 device tree it is working with. A value of 0 means that no assumptions
600 are made, and libfdt is able to deal with malicious data. A value of
601 0xff means all assumptions are made and any invalid data may cause
602 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
604 config FDT_FIXUP_PARTITIONS
605 bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
607 depends on CMD_MTDPARTS
609 Allow overwriting defined partitions in the device tree blob
610 using partition info defined in the 'mtdparts' environment
614 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
616 config GENERATE_SMBIOS_TABLE
617 bool "Generate an SMBIOS (System Management BIOS) table"
619 depends on X86 || EFI_LOADER
621 The System Management BIOS (SMBIOS) specification addresses how
622 motherboard and system vendors present management information about
623 their products in a standard format by extending the BIOS interface
624 on Intel architecture systems.
626 Check http://www.dmtf.org/standards/smbios for details.
628 config SMBIOS_MANUFACTURER
629 string "SMBIOS Manufacturer"
630 depends on GENERATE_SMBIOS_TABLE
633 The board manufacturer to store in SMBIOS structures.
634 Change this to override the default one (CONFIG_SYS_VENDOR).
636 config SMBIOS_PRODUCT_NAME
637 string "SMBIOS Product Name"
638 depends on GENERATE_SMBIOS_TABLE
641 The product name to store in SMBIOS structures.
642 Change this to override the default one (CONFIG_SYS_BOARD).
652 Enable asn1 decoder library.
657 Enable fast lookup object identifier registry.
659 source lib/efi/Kconfig
660 source lib/efi_loader/Kconfig
661 source lib/optee/Kconfig
664 bool "enable fdtdec test"
673 Supoort basic elf loading/validating functions.
674 This supports fir 32 bit and 64 bit versions.