Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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. config SPL_TPM
  152. bool "Trusted Platform Module (TPM) Support in SPL"
  153. depends on SPL_DM
  154. help
  155. This enables support for TPMs which can be used to provide security
  156. features for your board. The TPM can be connected via LPC or I2C
  157. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  158. command to interactive the TPM. Driver model support is provided
  159. for the low-level TPM interface, but only one TPM is supported at
  160. a time by the TPM library.
  161. config TPL_TPM
  162. bool "Trusted Platform Module (TPM) Support in TPL"
  163. depends on TPL_DM
  164. help
  165. This enables support for TPMs which can be used to provide security
  166. features for your board. The TPM can be connected via LPC or I2C
  167. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  168. command to interactive the TPM. Driver model support is provided
  169. for the low-level TPM interface, but only one TPM is supported at
  170. a time by the TPM library.
  171. endmenu
  172. menu "Android Verified Boot"
  173. config LIBAVB
  174. bool "Android Verified Boot 2.0 support"
  175. depends on ANDROID_BOOT_IMAGE
  176. default n
  177. help
  178. This enables support of Android Verified Boot 2.0 which can be used
  179. to assure the end user of the integrity of the software running on a
  180. device. Introduces such features as boot chain of trust, rollback
  181. protection etc.
  182. endmenu
  183. menu "Hashing Support"
  184. config SHA1
  185. bool "Enable SHA1 support"
  186. help
  187. This option enables support of hashing using SHA1 algorithm.
  188. The hash is calculated in software.
  189. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  190. (digest).
  191. config SHA256
  192. bool "Enable SHA256 support"
  193. help
  194. This option enables support of hashing using SHA256 algorithm.
  195. The hash is calculated in software.
  196. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  197. (digest).
  198. config SHA_HW_ACCEL
  199. bool "Enable hashing using hardware"
  200. help
  201. This option enables hardware acceleration
  202. for SHA1/SHA256 hashing.
  203. This affects the 'hash' command and also the
  204. hash_lookup_algo() function.
  205. config SHA_PROG_HW_ACCEL
  206. bool "Enable Progressive hashing support using hardware"
  207. depends on SHA_HW_ACCEL
  208. help
  209. This option enables hardware-acceleration for
  210. SHA1/SHA256 progressive hashing.
  211. Data can be streamed in a block at a time and the hashing
  212. is performed in hardware.
  213. config MD5
  214. bool
  215. config CRC32C
  216. bool
  217. endmenu
  218. menu "Compression Support"
  219. config LZ4
  220. bool "Enable LZ4 decompression support"
  221. help
  222. If this option is set, support for LZ4 compressed images
  223. is included. The LZ4 algorithm can run in-place as long as the
  224. compressed image is loaded to the end of the output buffer, and
  225. trades lower compression ratios for much faster decompression.
  226. NOTE: This implements the release version of the LZ4 frame
  227. format as generated by default by the 'lz4' command line tool.
  228. This is not the same as the outdated, less efficient legacy
  229. frame format currently (2015) implemented in the Linux kernel
  230. (generated by 'lz4 -l'). The two formats are incompatible.
  231. config LZMA
  232. bool "Enable LZMA decompression support"
  233. help
  234. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  235. a dictionary compression algorithm that provides a high compression
  236. ratio and fairly fast decompression speed. See also
  237. CONFIG_CMD_LZMADEC which provides a decode command.
  238. config LZO
  239. bool "Enable LZO decompression support"
  240. help
  241. This enables support for LZO compression algorithm.r
  242. config SPL_LZO
  243. bool "Enable LZO decompression support in SPL"
  244. help
  245. This enables support for LZO compression algorithm in the SPL.
  246. config SPL_GZIP
  247. bool "Enable gzip decompression support for SPL build"
  248. select SPL_ZLIB
  249. help
  250. This enables support for GZIP compression altorithm for SPL boot.
  251. config SPL_ZLIB
  252. bool
  253. help
  254. This enables compression lib for SPL boot.
  255. endmenu
  256. config ERRNO_STR
  257. bool "Enable function for getting errno-related string message"
  258. help
  259. The function errno_str(int errno), returns a pointer to the errno
  260. corresponding text message:
  261. - if errno is null or positive number - a pointer to "Success" message
  262. - if errno is negative - a pointer to errno related message
  263. config HEXDUMP
  264. bool "Enable hexdump"
  265. help
  266. This enables functions for printing dumps of binary data.
  267. config OF_LIBFDT
  268. bool "Enable the FDT library"
  269. default y if OF_CONTROL
  270. help
  271. This enables the FDT library (libfdt). It provides functions for
  272. accessing binary device tree images in memory, such as adding and
  273. removing nodes and properties, scanning through the tree and finding
  274. particular compatible nodes. The library operates on a flattened
  275. version of the device tree.
  276. config OF_LIBFDT_OVERLAY
  277. bool "Enable the FDT library overlay support"
  278. depends on OF_LIBFDT
  279. default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
  280. help
  281. This enables the FDT library (libfdt) overlay support.
  282. config SPL_OF_LIBFDT
  283. bool "Enable the FDT library for SPL"
  284. default y if SPL_OF_CONTROL
  285. help
  286. This enables the FDT library (libfdt). It provides functions for
  287. accessing binary device tree images in memory, such as adding and
  288. removing nodes and properties, scanning through the tree and finding
  289. particular compatible nodes. The library operates on a flattened
  290. version of the device tree.
  291. config TPL_OF_LIBFDT
  292. bool "Enable the FDT library for TPL"
  293. default y if TPL_OF_CONTROL
  294. help
  295. This enables the FDT library (libfdt). It provides functions for
  296. accessing binary device tree images in memory, such as adding and
  297. removing nodes and properties, scanning through the tree and finding
  298. particular compatible nodes. The library operates on a flattened
  299. version of the device tree.
  300. config FDT_FIXUP_PARTITIONS
  301. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  302. depends on OF_LIBFDT
  303. depends on CMD_MTDPARTS
  304. help
  305. Allow overwriting defined partitions in the device tree blob
  306. using partition info defined in the 'mtdparts' environment
  307. variable.
  308. menu "System tables"
  309. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  310. config GENERATE_SMBIOS_TABLE
  311. bool "Generate an SMBIOS (System Management BIOS) table"
  312. default y
  313. depends on X86 || EFI_LOADER
  314. help
  315. The System Management BIOS (SMBIOS) specification addresses how
  316. motherboard and system vendors present management information about
  317. their products in a standard format by extending the BIOS interface
  318. on Intel architecture systems.
  319. Check http://www.dmtf.org/standards/smbios for details.
  320. config SMBIOS_MANUFACTURER
  321. string "SMBIOS Manufacturer"
  322. depends on GENERATE_SMBIOS_TABLE
  323. default SYS_VENDOR
  324. help
  325. The board manufacturer to store in SMBIOS structures.
  326. Change this to override the default one (CONFIG_SYS_VENDOR).
  327. config SMBIOS_PRODUCT_NAME
  328. string "SMBIOS Product Name"
  329. depends on GENERATE_SMBIOS_TABLE
  330. default SYS_BOARD
  331. help
  332. The product name to store in SMBIOS structures.
  333. Change this to override the default one (CONFIG_SYS_BOARD).
  334. endmenu
  335. source lib/efi/Kconfig
  336. source lib/efi_loader/Kconfig
  337. source lib/optee/Kconfig
  338. endmenu