xref: /openbmc/u-boot/lib/Kconfig (revision acd4d3343f6dc0f8a0c62bd4fb4ed5dbbc2ced1b)
1ed36323fSMasahiro Yamadamenu "Library routines"
2ed36323fSMasahiro Yamada
36ef2f901SAdam Fordconfig BCH
46ef2f901SAdam Ford	bool "Enable Software based BCH ECC"
56ef2f901SAdam Ford	help
66ef2f901SAdam Ford	  Enables software based BCH ECC algorithm present in lib/bch.c
76ef2f901SAdam Ford	  This is used by SoC platforms which do not have built-in ELM
86ef2f901SAdam Ford	  hardware engine required for BCH ECC correction.
96ef2f901SAdam Ford
10b0928da6SMasahiro Yamadaconfig CC_OPTIMIZE_LIBS_FOR_SPEED
11b0928da6SMasahiro Yamada	bool "Optimize libraries for speed"
12b0928da6SMasahiro Yamada	help
13b0928da6SMasahiro Yamada	  Enabling this option will pass "-O2" to gcc when compiling
14b0928da6SMasahiro Yamada	  under "lib" directory.
15b0928da6SMasahiro Yamada
16b0928da6SMasahiro Yamada	  If unsure, say N.
17b0928da6SMasahiro Yamada
1845ccec8fSMasahiro Yamadaconfig HAVE_PRIVATE_LIBGCC
1945ccec8fSMasahiro Yamada	bool
2045ccec8fSMasahiro Yamada
2145ccec8fSMasahiro Yamadaconfig USE_PRIVATE_LIBGCC
2245ccec8fSMasahiro Yamada	bool "Use private libgcc"
2345ccec8fSMasahiro Yamada	depends on HAVE_PRIVATE_LIBGCC
2491b86e21SMarek Vasut	default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
2545ccec8fSMasahiro Yamada	help
2645ccec8fSMasahiro Yamada	  This option allows you to use the built-in libgcc implementation
2767976306SMasahiro Yamada	  of U-Boot instead of the one provided by the compiler.
2845ccec8fSMasahiro Yamada	  If unsure, say N.
2945ccec8fSMasahiro Yamada
308c688bc4SMasahiro Yamadaconfig SYS_HZ
318c688bc4SMasahiro Yamada	int
328c688bc4SMasahiro Yamada	default 1000
338c688bc4SMasahiro Yamada	help
348c688bc4SMasahiro Yamada	  The frequency of the timer returned by get_timer().
358c688bc4SMasahiro Yamada	  get_timer() must operate in milliseconds and this option must be
368c688bc4SMasahiro Yamada	  set to 1000.
378c688bc4SMasahiro Yamada
387d9cde10SStefan Roeseconfig USE_TINY_PRINTF
397d9cde10SStefan Roese	bool "Enable tiny printf() version"
407d9cde10SStefan Roese	help
417d9cde10SStefan Roese	  This option enables a tiny, stripped down printf version.
427d9cde10SStefan Roese	  This should only be used in space limited environments,
437d9cde10SStefan Roese	  like SPL versions with hard memory limits. This version
447d9cde10SStefan Roese	  reduces the code size by about 2.5KiB on armv7.
457d9cde10SStefan Roese
467d9cde10SStefan Roese	  The supported format specifiers are %c, %s, %u/%d and %x.
477d9cde10SStefan Roese
487e3caa81SMasahiro Yamadaconfig PANIC_HANG
497e3caa81SMasahiro Yamada	bool "Do not reset the system on fatal error"
507e3caa81SMasahiro Yamada	help
517e3caa81SMasahiro Yamada	  Define this option to stop the system in case of a fatal error,
527e3caa81SMasahiro Yamada	  so that you have to reset it manually. This is probably NOT a good
537e3caa81SMasahiro Yamada	  idea for an embedded system where you want the system to reboot
547e3caa81SMasahiro Yamada	  automatically as fast as possible, but it may be useful during
557e3caa81SMasahiro Yamada	  development since you can try to debug the conditions that lead to
567e3caa81SMasahiro Yamada	  the situation.
577e3caa81SMasahiro Yamada
581a60650cSJoe Hershbergerconfig REGEX
591a60650cSJoe Hershberger	bool "Enable regular expression support"
60*acd4d334SMaxime Ripard	default n if ARCH_SUNXI
61f7848d90SJoe Hershberger	default y if NET
621a60650cSJoe Hershberger	help
631a60650cSJoe Hershberger	  If this variable is defined, U-Boot is linked against the
641a60650cSJoe Hershberger	  SLRE (Super Light Regular Expression) library, which adds
651a60650cSJoe Hershberger	  regex support to some commands, for example "env grep" and
661a60650cSJoe Hershberger	  "setexpr".
671a60650cSJoe Hershberger
689ba9e85fSMichal Simekconfig LIB_RAND
693850dbe8SMasahiro Yamada	bool "Pseudo-random library support "
703850dbe8SMasahiro Yamada	help
713850dbe8SMasahiro Yamada	  This library provides pseudo-random number generator functions.
729ba9e85fSMichal Simek
73ab4458bdSSimon Glassconfig SPL_TINY_MEMSET
74ab4458bdSSimon Glass	bool "Use a very small memset() in SPL"
75ab4458bdSSimon Glass	help
76ab4458bdSSimon Glass	  The faster memset() is the arch-specific one (if available) enabled
77ab4458bdSSimon Glass	  by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
78ab4458bdSSimon Glass	  better performance by writing a word at a time. But in very
79ab4458bdSSimon Glass	  size-constrained envrionments even this may be too big. Enable this
80ab4458bdSSimon Glass	  option to reduce code size slightly at the cost of some speed.
81ab4458bdSSimon Glass
8296b9082cSPhilipp Tomsichconfig TPL_TINY_MEMSET
8396b9082cSPhilipp Tomsich	bool "Use a very small memset() in TPL"
8496b9082cSPhilipp Tomsich	help
8596b9082cSPhilipp Tomsich	  The faster memset() is the arch-specific one (if available) enabled
8696b9082cSPhilipp Tomsich	  by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
8796b9082cSPhilipp Tomsich	  better performance by writing a word at a time. But in very
8896b9082cSPhilipp Tomsich	  size-constrained envrionments even this may be too big. Enable this
8996b9082cSPhilipp Tomsich	  option to reduce code size slightly at the cost of some speed.
9096b9082cSPhilipp Tomsich
91aa049152SBoris Brezillonconfig RBTREE
92aa049152SBoris Brezillon	bool
93aa049152SBoris Brezillon
94da5337a6SNandor Hanconfig BITREVERSE
95da5337a6SNandor Han	bool "Bit reverse library from Linux"
96da5337a6SNandor Han
97d1389403SSimon Glasssource lib/dhry/Kconfig
98d1389403SSimon Glass
99b1a873dfSSimon Glassmenu "Security support"
100b1a873dfSSimon Glass
101b1a873dfSSimon Glassconfig AES
102b1a873dfSSimon Glass	bool "Support the AES algorithm"
103b1a873dfSSimon Glass	help
104b1a873dfSSimon Glass	  This provides a means to encrypt and decrypt data using the AES
105b1a873dfSSimon Glass	  (Advanced Encryption Standard). This algorithm uses a symetric key
106b1a873dfSSimon Glass	  and is widely used as a streaming cipher. Different key lengths are
107b1a873dfSSimon Glass	  supported by the algorithm but only a 128-bit key is supported at
108b1a873dfSSimon Glass	  present.
109b1a873dfSSimon Glass
110d9f23c7fSRuchika Guptasource lib/rsa/Kconfig
111c4beb22fSRuchika Gupta
112a7d660bcSSimon Glassconfig TPM
113a7d660bcSSimon Glass	bool "Trusted Platform Module (TPM) Support"
1142419cd16SSimon Glass	depends on DM
115a7d660bcSSimon Glass	help
116a7d660bcSSimon Glass	  This enables support for TPMs which can be used to provide security
117a7d660bcSSimon Glass	  features for your board. The TPM can be connected via LPC or I2C
118a7d660bcSSimon Glass	  and a sandbox TPM is provided for testing purposes. Use the 'tpm'
119a7d660bcSSimon Glass	  command to interactive the TPM. Driver model support is provided
120a7d660bcSSimon Glass	  for the low-level TPM interface, but only one TPM is supported at
121a7d660bcSSimon Glass	  a time by the TPM library.
122a7d660bcSSimon Glass
123b1a873dfSSimon Glassendmenu
124b1a873dfSSimon Glass
12594e3c8c4Sgaurav ranamenu "Hashing Support"
12694e3c8c4Sgaurav rana
12794e3c8c4Sgaurav ranaconfig SHA1
12894e3c8c4Sgaurav rana	bool "Enable SHA1 support"
12994e3c8c4Sgaurav rana	help
13094e3c8c4Sgaurav rana	  This option enables support of hashing using SHA1 algorithm.
13194e3c8c4Sgaurav rana	  The hash is calculated in software.
13294e3c8c4Sgaurav rana	  The SHA1 algorithm produces a 160-bit (20-byte) hash value
13394e3c8c4Sgaurav rana	  (digest).
13494e3c8c4Sgaurav rana
13594e3c8c4Sgaurav ranaconfig SHA256
13694e3c8c4Sgaurav rana	bool "Enable SHA256 support"
13794e3c8c4Sgaurav rana	help
13894e3c8c4Sgaurav rana	  This option enables support of hashing using SHA256 algorithm.
13994e3c8c4Sgaurav rana	  The hash is calculated in software.
14094e3c8c4Sgaurav rana	  The SHA256 algorithm produces a 256-bit (32-byte) hash value
14194e3c8c4Sgaurav rana	  (digest).
14294e3c8c4Sgaurav rana
14394e3c8c4Sgaurav ranaconfig SHA_HW_ACCEL
14494e3c8c4Sgaurav rana	bool "Enable hashing using hardware"
14594e3c8c4Sgaurav rana	help
14694e3c8c4Sgaurav rana	  This option enables hardware acceleration
14794e3c8c4Sgaurav rana	  for SHA1/SHA256 hashing.
14894e3c8c4Sgaurav rana	  This affects the 'hash' command and also the
14994e3c8c4Sgaurav rana	  hash_lookup_algo() function.
15094e3c8c4Sgaurav rana
15194e3c8c4Sgaurav ranaconfig SHA_PROG_HW_ACCEL
15294e3c8c4Sgaurav rana	bool "Enable Progressive hashing support using hardware"
15394e3c8c4Sgaurav rana	depends on SHA_HW_ACCEL
15494e3c8c4Sgaurav rana	help
15594e3c8c4Sgaurav rana	  This option enables hardware-acceleration for
15694e3c8c4Sgaurav rana	  SHA1/SHA256 progressive hashing.
15794e3c8c4Sgaurav rana	  Data can be streamed in a block at a time and the hashing
15894e3c8c4Sgaurav rana	  is performed in hardware.
159bea79d7dSAndre Przywara
160bea79d7dSAndre Przywaraconfig MD5
161bea79d7dSAndre Przywara	bool
162bea79d7dSAndre Przywara
16385d8bf57SMarek Behúnconfig CRC32C
16485d8bf57SMarek Behún	bool
16585d8bf57SMarek Behún
16694e3c8c4Sgaurav ranaendmenu
16794e3c8c4Sgaurav rana
168027b728dSJulius Wernermenu "Compression Support"
169027b728dSJulius Werner
170027b728dSJulius Wernerconfig LZ4
171027b728dSJulius Werner	bool "Enable LZ4 decompression support"
172027b728dSJulius Werner	help
173027b728dSJulius Werner	  If this option is set, support for LZ4 compressed images
174027b728dSJulius Werner	  is included. The LZ4 algorithm can run in-place as long as the
175027b728dSJulius Werner	  compressed image is loaded to the end of the output buffer, and
176027b728dSJulius Werner	  trades lower compression ratios for much faster decompression.
177027b728dSJulius Werner
178027b728dSJulius Werner	  NOTE: This implements the release version of the LZ4 frame
179027b728dSJulius Werner	  format as generated by default by the 'lz4' command line tool.
180027b728dSJulius Werner	  This is not the same as the outdated, less efficient legacy
181027b728dSJulius Werner	  frame format currently (2015) implemented in the Linux kernel
182027b728dSJulius Werner	  (generated by 'lz4 -l'). The two formats are incompatible.
183027b728dSJulius Werner
184aed998aaSSimon Glassconfig LZMA
185aed998aaSSimon Glass	bool "Enable LZMA decompression support"
186aed998aaSSimon Glass	help
187aed998aaSSimon Glass	  This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
188aed998aaSSimon Glass	  a dictionary compression algorithm that provides a high compression
189aed998aaSSimon Glass	  ratio and fairly fast decompression speed. See also
190aed998aaSSimon Glass	  CONFIG_CMD_LZMADEC which provides a decode command.
191aed998aaSSimon Glass
192173aafbfSBoris Brezillonconfig LZO
193d56b4b19STom Rini	bool "Enable LZO decompression support"
194d56b4b19STom Rini	help
195d56b4b19STom Rini	  This enables support for LZO compression algorithm.r
1967264f292SYork Sun
197f52bdf4bSJean-Jacques Hiblotconfig SPL_LZO
198f52bdf4bSJean-Jacques Hiblot	bool "Enable LZO decompression support in SPL"
199f52bdf4bSJean-Jacques Hiblot	help
200f52bdf4bSJean-Jacques Hiblot	  This enables support for LZO compression algorithm in the SPL.
201f52bdf4bSJean-Jacques Hiblot
2027264f292SYork Sunconfig SPL_GZIP
2037264f292SYork Sun	bool "Enable gzip decompression support for SPL build"
2047264f292SYork Sun	select SPL_ZLIB
2057264f292SYork Sun	help
2067264f292SYork Sun	  This enables support for GZIP compression altorithm for SPL boot.
2077264f292SYork Sun
2087264f292SYork Sunconfig SPL_ZLIB
2097264f292SYork Sun	bool
2107264f292SYork Sun	help
2117264f292SYork Sun	  This enables compression lib for SPL boot.
2127264f292SYork Sun
213027b728dSJulius Wernerendmenu
214027b728dSJulius Werner
2156501ff62SPrzemyslaw Marczakconfig ERRNO_STR
2166501ff62SPrzemyslaw Marczak	bool "Enable function for getting errno-related string message"
2176501ff62SPrzemyslaw Marczak	help
2186501ff62SPrzemyslaw Marczak	  The function errno_str(int errno), returns a pointer to the errno
2196501ff62SPrzemyslaw Marczak	  corresponding text message:
2206501ff62SPrzemyslaw Marczak	  - if errno is null or positive number - a pointer to "Success" message
2216501ff62SPrzemyslaw Marczak	  - if errno is negative - a pointer to errno related message
2226501ff62SPrzemyslaw Marczak
22369e173ebSSimon Glassconfig OF_LIBFDT
22469e173ebSSimon Glass	bool "Enable the FDT library"
22569e173ebSSimon Glass	default y if OF_CONTROL
22669e173ebSSimon Glass	help
22769e173ebSSimon Glass	  This enables the FDT library (libfdt). It provides functions for
22869e173ebSSimon Glass	  accessing binary device tree images in memory, such as adding and
229f1a7ba1dSAnatolij Gustschin	  removing nodes and properties, scanning through the tree and finding
23069e173ebSSimon Glass	  particular compatible nodes. The library operates on a flattened
23169e173ebSSimon Glass	  version of the device tree.
23269e173ebSSimon Glass
233ddf67f71SMaxime Ripardconfig OF_LIBFDT_OVERLAY
234ddf67f71SMaxime Ripard	bool "Enable the FDT library overlay support"
235ddf67f71SMaxime Ripard	help
236ddf67f71SMaxime Ripard	  This enables the FDT library (libfdt) overlay support.
237ddf67f71SMaxime Ripard
238aa34fbc0SSimon Glassconfig SPL_OF_LIBFDT
239aa34fbc0SSimon Glass	bool "Enable the FDT library for SPL"
240aa34fbc0SSimon Glass	default y if SPL_OF_CONTROL
241aa34fbc0SSimon Glass	help
242aa34fbc0SSimon Glass	  This enables the FDT library (libfdt). It provides functions for
243aa34fbc0SSimon Glass	  accessing binary device tree images in memory, such as adding and
244f1a7ba1dSAnatolij Gustschin	  removing nodes and properties, scanning through the tree and finding
245aa34fbc0SSimon Glass	  particular compatible nodes. The library operates on a flattened
246aa34fbc0SSimon Glass	  version of the device tree.
247aa34fbc0SSimon Glass
248ebf7fff2SHeiko Schocherconfig FDT_FIXUP_PARTITIONS
249ebf7fff2SHeiko Schocher	bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
250ebf7fff2SHeiko Schocher	depends on OF_LIBFDT
251ebf7fff2SHeiko Schocher	default n
252ebf7fff2SHeiko Schocher	help
253ebf7fff2SHeiko Schocher	  Allow overwriting defined partitions in the device tree blob
254ebf7fff2SHeiko Schocher	  using partition info defined in the 'mtdparts' environment
255ebf7fff2SHeiko Schocher	  variable.
256ebf7fff2SHeiko Schocher
2574b6dddc2SAlexander Grafmenu "System tables"
258e663b350SAlexander Graf	depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
2594b6dddc2SAlexander Graf
2604b6dddc2SAlexander Grafconfig GENERATE_SMBIOS_TABLE
2614b6dddc2SAlexander Graf	bool "Generate an SMBIOS (System Management BIOS) table"
2624b6dddc2SAlexander Graf	default y
263e663b350SAlexander Graf	depends on X86 || EFI_LOADER
2644b6dddc2SAlexander Graf	help
2654b6dddc2SAlexander Graf	  The System Management BIOS (SMBIOS) specification addresses how
2664b6dddc2SAlexander Graf	  motherboard and system vendors present management information about
2674b6dddc2SAlexander Graf	  their products in a standard format by extending the BIOS interface
2684b6dddc2SAlexander Graf	  on Intel architecture systems.
2694b6dddc2SAlexander Graf
2704b6dddc2SAlexander Graf	  Check http://www.dmtf.org/standards/smbios for details.
2714b6dddc2SAlexander Graf
2724b6dddc2SAlexander Grafconfig SMBIOS_MANUFACTURER
2734b6dddc2SAlexander Graf	string "SMBIOS Manufacturer"
2744b6dddc2SAlexander Graf	depends on GENERATE_SMBIOS_TABLE
2754b6dddc2SAlexander Graf	default SYS_VENDOR
2764b6dddc2SAlexander Graf	help
2774b6dddc2SAlexander Graf	  The board manufacturer to store in SMBIOS structures.
2784b6dddc2SAlexander Graf	  Change this to override the default one (CONFIG_SYS_VENDOR).
2794b6dddc2SAlexander Graf
2804b6dddc2SAlexander Grafconfig SMBIOS_PRODUCT_NAME
2814b6dddc2SAlexander Graf	string "SMBIOS Product Name"
2824b6dddc2SAlexander Graf	depends on GENERATE_SMBIOS_TABLE
2834b6dddc2SAlexander Graf	default SYS_BOARD
2844b6dddc2SAlexander Graf	help
2854b6dddc2SAlexander Graf	  The product name to store in SMBIOS structures.
2864b6dddc2SAlexander Graf	  Change this to override the default one (CONFIG_SYS_BOARD).
2874b6dddc2SAlexander Graf
2884b6dddc2SAlexander Grafendmenu
2894b6dddc2SAlexander Graf
290867a6ac8SSimon Glasssource lib/efi/Kconfig
291ed980b8cSAlexander Grafsource lib/efi_loader/Kconfig
292867a6ac8SSimon Glass
293ed36323fSMasahiro Yamadaendmenu
294