Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. menu "Library routines"
  2. config BCH
  3. bool "Enable Software based BCH ECC"
  4. help
  5. Enables software based BCH ECC algorithm present in lib/bch.c
  6. This is used by SoC platforms which do not have built-in ELM
  7. hardware engine required for BCH ECC correction.
  8. config CC_OPTIMIZE_LIBS_FOR_SPEED
  9. bool "Optimize libraries for speed"
  10. help
  11. Enabling this option will pass "-O2" to gcc when compiling
  12. under "lib" directory.
  13. If unsure, say N.
  14. config HAVE_PRIVATE_LIBGCC
  15. bool
  16. config USE_PRIVATE_LIBGCC
  17. bool "Use private libgcc"
  18. depends on HAVE_PRIVATE_LIBGCC
  19. default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
  20. help
  21. This option allows you to use the built-in libgcc implementation
  22. of U-Boot instead of the one provided by the compiler.
  23. If unsure, say N.
  24. config SYS_HZ
  25. int
  26. default 1000
  27. help
  28. The frequency of the timer returned by get_timer().
  29. get_timer() must operate in milliseconds and this option must be
  30. set to 1000.
  31. config USE_TINY_PRINTF
  32. bool "Enable tiny printf() version"
  33. help
  34. This option enables a tiny, stripped down printf version.
  35. This should only be used in space limited environments,
  36. like SPL versions with hard memory limits. This version
  37. reduces the code size by about 2.5KiB on armv7.
  38. The supported format specifiers are %c, %s, %u/%d and %x.
  39. config PANIC_HANG
  40. bool "Do not reset the system on fatal error"
  41. help
  42. Define this option to stop the system in case of a fatal error,
  43. so that you have to reset it manually. This is probably NOT a good
  44. idea for an embedded system where you want the system to reboot
  45. automatically as fast as possible, but it may be useful during
  46. development since you can try to debug the conditions that lead to
  47. the situation.
  48. config REGEX
  49. bool "Enable regular expression support"
  50. default n if ARCH_SUNXI
  51. default y if NET
  52. help
  53. If this variable is defined, U-Boot is linked against the
  54. SLRE (Super Light Regular Expression) library, which adds
  55. regex support to some commands, for example "env grep" and
  56. "setexpr".
  57. config LIB_RAND
  58. bool "Pseudo-random library support "
  59. help
  60. This library provides pseudo-random number generator functions.
  61. config SPL_TINY_MEMSET
  62. bool "Use a very small memset() in SPL"
  63. help
  64. The faster memset() is the arch-specific one (if available) enabled
  65. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  66. better performance by writing a word at a time. But in very
  67. size-constrained envrionments even this may be too big. Enable this
  68. option to reduce code size slightly at the cost of some speed.
  69. config TPL_TINY_MEMSET
  70. bool "Use a very small memset() in TPL"
  71. help
  72. The faster memset() is the arch-specific one (if available) enabled
  73. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  74. better performance by writing a word at a time. But in very
  75. size-constrained envrionments even this may be too big. Enable this
  76. option to reduce code size slightly at the cost of some speed.
  77. config RBTREE
  78. bool
  79. config BITREVERSE
  80. bool "Bit reverse library from Linux"
  81. source lib/dhry/Kconfig
  82. menu "Security support"
  83. config AES
  84. bool "Support the AES algorithm"
  85. help
  86. This provides a means to encrypt and decrypt data using the AES
  87. (Advanced Encryption Standard). This algorithm uses a symetric key
  88. and is widely used as a streaming cipher. Different key lengths are
  89. supported by the algorithm but only a 128-bit key is supported at
  90. present.
  91. source lib/rsa/Kconfig
  92. config TPM
  93. bool "Trusted Platform Module (TPM) Support"
  94. depends on DM
  95. help
  96. This enables support for TPMs which can be used to provide security
  97. features for your board. The TPM can be connected via LPC or I2C
  98. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  99. command to interactive the TPM. Driver model support is provided
  100. for the low-level TPM interface, but only one TPM is supported at
  101. a time by the TPM library.
  102. endmenu
  103. menu "Hashing Support"
  104. config SHA1
  105. bool "Enable SHA1 support"
  106. help
  107. This option enables support of hashing using SHA1 algorithm.
  108. The hash is calculated in software.
  109. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  110. (digest).
  111. config SHA256
  112. bool "Enable SHA256 support"
  113. help
  114. This option enables support of hashing using SHA256 algorithm.
  115. The hash is calculated in software.
  116. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  117. (digest).
  118. config SHA_HW_ACCEL
  119. bool "Enable hashing using hardware"
  120. help
  121. This option enables hardware acceleration
  122. for SHA1/SHA256 hashing.
  123. This affects the 'hash' command and also the
  124. hash_lookup_algo() function.
  125. config SHA_PROG_HW_ACCEL
  126. bool "Enable Progressive hashing support using hardware"
  127. depends on SHA_HW_ACCEL
  128. help
  129. This option enables hardware-acceleration for
  130. SHA1/SHA256 progressive hashing.
  131. Data can be streamed in a block at a time and the hashing
  132. is performed in hardware.
  133. config MD5
  134. bool
  135. config CRC32C
  136. bool
  137. endmenu
  138. menu "Compression Support"
  139. config LZ4
  140. bool "Enable LZ4 decompression support"
  141. help
  142. If this option is set, support for LZ4 compressed images
  143. is included. The LZ4 algorithm can run in-place as long as the
  144. compressed image is loaded to the end of the output buffer, and
  145. trades lower compression ratios for much faster decompression.
  146. NOTE: This implements the release version of the LZ4 frame
  147. format as generated by default by the 'lz4' command line tool.
  148. This is not the same as the outdated, less efficient legacy
  149. frame format currently (2015) implemented in the Linux kernel
  150. (generated by 'lz4 -l'). The two formats are incompatible.
  151. config LZMA
  152. bool "Enable LZMA decompression support"
  153. help
  154. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  155. a dictionary compression algorithm that provides a high compression
  156. ratio and fairly fast decompression speed. See also
  157. CONFIG_CMD_LZMADEC which provides a decode command.
  158. config LZO
  159. bool "Enable LZO decompression support"
  160. help
  161. This enables support for LZO compression algorithm.r
  162. config SPL_LZO
  163. bool "Enable LZO decompression support in SPL"
  164. help
  165. This enables support for LZO compression algorithm in the SPL.
  166. config SPL_GZIP
  167. bool "Enable gzip decompression support for SPL build"
  168. select SPL_ZLIB
  169. help
  170. This enables support for GZIP compression altorithm for SPL boot.
  171. config SPL_ZLIB
  172. bool
  173. help
  174. This enables compression lib for SPL boot.
  175. endmenu
  176. config ERRNO_STR
  177. bool "Enable function for getting errno-related string message"
  178. help
  179. The function errno_str(int errno), returns a pointer to the errno
  180. corresponding text message:
  181. - if errno is null or positive number - a pointer to "Success" message
  182. - if errno is negative - a pointer to errno related message
  183. config OF_LIBFDT
  184. bool "Enable the FDT library"
  185. default y if OF_CONTROL
  186. help
  187. This enables the FDT library (libfdt). It provides functions for
  188. accessing binary device tree images in memory, such as adding and
  189. removing nodes and properties, scanning through the tree and finding
  190. particular compatible nodes. The library operates on a flattened
  191. version of the device tree.
  192. config OF_LIBFDT_OVERLAY
  193. bool "Enable the FDT library overlay support"
  194. help
  195. This enables the FDT library (libfdt) overlay support.
  196. config SPL_OF_LIBFDT
  197. bool "Enable the FDT library for SPL"
  198. default y if SPL_OF_CONTROL
  199. help
  200. This enables the FDT library (libfdt). It provides functions for
  201. accessing binary device tree images in memory, such as adding and
  202. removing nodes and properties, scanning through the tree and finding
  203. particular compatible nodes. The library operates on a flattened
  204. version of the device tree.
  205. config FDT_FIXUP_PARTITIONS
  206. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  207. depends on OF_LIBFDT
  208. default n
  209. help
  210. Allow overwriting defined partitions in the device tree blob
  211. using partition info defined in the 'mtdparts' environment
  212. variable.
  213. menu "System tables"
  214. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  215. config GENERATE_SMBIOS_TABLE
  216. bool "Generate an SMBIOS (System Management BIOS) table"
  217. default y
  218. depends on X86 || EFI_LOADER
  219. help
  220. The System Management BIOS (SMBIOS) specification addresses how
  221. motherboard and system vendors present management information about
  222. their products in a standard format by extending the BIOS interface
  223. on Intel architecture systems.
  224. Check http://www.dmtf.org/standards/smbios for details.
  225. config SMBIOS_MANUFACTURER
  226. string "SMBIOS Manufacturer"
  227. depends on GENERATE_SMBIOS_TABLE
  228. default SYS_VENDOR
  229. help
  230. The board manufacturer to store in SMBIOS structures.
  231. Change this to override the default one (CONFIG_SYS_VENDOR).
  232. config SMBIOS_PRODUCT_NAME
  233. string "SMBIOS Product Name"
  234. depends on GENERATE_SMBIOS_TABLE
  235. default SYS_BOARD
  236. help
  237. The product name to store in SMBIOS structures.
  238. Change this to override the default one (CONFIG_SYS_BOARD).
  239. endmenu
  240. source lib/efi/Kconfig
  241. source lib/efi_loader/Kconfig
  242. endmenu