Kconfig 9.8 KB

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