Kconfig 10 KB

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