Kconfig 12 KB

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