Kconfig 9.4 KB

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