Kconfig 9.4 KB

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