Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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 environments 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 environments 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. config TRACE
  136. bool "Support for tracing of function calls and timing"
  137. imply CMD_TRACE
  138. help
  139. Enables function tracing within U-Boot. This allows recording of call
  140. traces including timing information. The command can write data to
  141. memory for exporting for analysis (e.g. using bootchart).
  142. See doc/README.trace for full details.
  143. config TRACE_BUFFER_SIZE
  144. hex "Size of trace buffer in U-Boot"
  145. depends on TRACE
  146. default 0x01000000
  147. help
  148. Sets the size of the trace buffer in U-Boot. This is allocated from
  149. memory during relocation. If this buffer is too small, the trace
  150. history will be truncated, with later records omitted.
  151. If early trace is enabled (i.e. before relocation), this buffer must
  152. be large enough to include all the data from the early trace buffer as
  153. well, since this is copied over to the main buffer during relocation.
  154. A trace record is emitted for each function call and each record is
  155. 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
  156. the size is too small then 'trace stats' will show a message saying
  157. how many records were dropped due to buffer overflow.
  158. config TRACE_EARLY
  159. bool "Enable tracing before relocation"
  160. depends on TRACE
  161. help
  162. Sometimes it is helpful to trace execution of U-Boot before
  163. relocation. This is possible by using a arch-specific, fixed buffer
  164. position in memory. Enable this option to start tracing as early as
  165. possible after U-Boot starts.
  166. config TRACE_EARLY_SIZE
  167. hex "Size of early trace buffer in U-Boot"
  168. depends on TRACE_EARLY
  169. default 0x00100000
  170. help
  171. Sets the size of the early trace buffer in bytes. This is used to hold
  172. tracing information before relocation.
  173. config TRACE_EARLY_ADDR
  174. hex "Address of early trace buffer in U-Boot"
  175. depends on TRACE_EARLY
  176. default 0x00100000
  177. help
  178. Sets the address of the early trace buffer in U-Boot. This memory
  179. must be accessible before relocation.
  180. A trace record is emitted for each function call and each record is
  181. 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
  182. the size is too small then the message which says the amount of early
  183. data being coped will the the same as the
  184. source lib/dhry/Kconfig
  185. menu "Security support"
  186. config AES
  187. bool "Support the AES algorithm"
  188. help
  189. This provides a means to encrypt and decrypt data using the AES
  190. (Advanced Encryption Standard). This algorithm uses a symetric key
  191. and is widely used as a streaming cipher. Different key lengths are
  192. supported by the algorithm but only a 128-bit key is supported at
  193. present.
  194. source lib/rsa/Kconfig
  195. config TPM
  196. bool "Trusted Platform Module (TPM) Support"
  197. depends on DM
  198. help
  199. This enables support for TPMs which can be used to provide security
  200. features for your board. The TPM can be connected via LPC or I2C
  201. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  202. command to interactive the TPM. Driver model support is provided
  203. for the low-level TPM interface, but only one TPM is supported at
  204. a time by the TPM library.
  205. config SPL_TPM
  206. bool "Trusted Platform Module (TPM) Support in SPL"
  207. depends on SPL_DM
  208. help
  209. This enables support for TPMs which can be used to provide security
  210. features for your board. The TPM can be connected via LPC or I2C
  211. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  212. command to interactive the TPM. Driver model support is provided
  213. for the low-level TPM interface, but only one TPM is supported at
  214. a time by the TPM library.
  215. config TPL_TPM
  216. bool "Trusted Platform Module (TPM) Support in TPL"
  217. depends on TPL_DM
  218. help
  219. This enables support for TPMs which can be used to provide security
  220. features for your board. The TPM can be connected via LPC or I2C
  221. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  222. command to interactive the TPM. Driver model support is provided
  223. for the low-level TPM interface, but only one TPM is supported at
  224. a time by the TPM library.
  225. endmenu
  226. menu "Android Verified Boot"
  227. config LIBAVB
  228. bool "Android Verified Boot 2.0 support"
  229. depends on ANDROID_BOOT_IMAGE
  230. default n
  231. help
  232. This enables support of Android Verified Boot 2.0 which can be used
  233. to assure the end user of the integrity of the software running on a
  234. device. Introduces such features as boot chain of trust, rollback
  235. protection etc.
  236. endmenu
  237. menu "Hashing Support"
  238. config SHA1
  239. bool "Enable SHA1 support"
  240. help
  241. This option enables support of hashing using SHA1 algorithm.
  242. The hash is calculated in software.
  243. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  244. (digest).
  245. config SHA256
  246. bool "Enable SHA256 support"
  247. help
  248. This option enables support of hashing using SHA256 algorithm.
  249. The hash is calculated in software.
  250. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  251. (digest).
  252. config SHA_HW_ACCEL
  253. bool "Enable hashing using hardware"
  254. help
  255. This option enables hardware acceleration
  256. for SHA1/SHA256 hashing.
  257. This affects the 'hash' command and also the
  258. hash_lookup_algo() function.
  259. config SHA_PROG_HW_ACCEL
  260. bool "Enable Progressive hashing support using hardware"
  261. depends on SHA_HW_ACCEL
  262. help
  263. This option enables hardware-acceleration for
  264. SHA1/SHA256 progressive hashing.
  265. Data can be streamed in a block at a time and the hashing
  266. is performed in hardware.
  267. config MD5
  268. bool
  269. config CRC32C
  270. bool
  271. config XXHASH
  272. bool
  273. endmenu
  274. menu "Compression Support"
  275. config LZ4
  276. bool "Enable LZ4 decompression support"
  277. help
  278. If this option is set, support for LZ4 compressed images
  279. is included. The LZ4 algorithm can run in-place as long as the
  280. compressed image is loaded to the end of the output buffer, and
  281. trades lower compression ratios for much faster decompression.
  282. NOTE: This implements the release version of the LZ4 frame
  283. format as generated by default by the 'lz4' command line tool.
  284. This is not the same as the outdated, less efficient legacy
  285. frame format currently (2015) implemented in the Linux kernel
  286. (generated by 'lz4 -l'). The two formats are incompatible.
  287. config LZMA
  288. bool "Enable LZMA decompression support"
  289. help
  290. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  291. a dictionary compression algorithm that provides a high compression
  292. ratio and fairly fast decompression speed. See also
  293. CONFIG_CMD_LZMADEC which provides a decode command.
  294. config LZO
  295. bool "Enable LZO decompression support"
  296. help
  297. This enables support for LZO compression algorithm.r
  298. config GZIP
  299. bool "Enable gzip decompression support"
  300. select ZLIB
  301. default y
  302. help
  303. This enables support for GZIP compression algorithm.
  304. config ZLIB
  305. bool
  306. default y
  307. help
  308. This enables ZLIB compression lib.
  309. config SPL_LZ4
  310. bool "Enable LZ4 decompression support in SPL"
  311. help
  312. This enables support for tge LZ4 decompression algorithm in SPL. LZ4
  313. is a lossless data compression algorithm that is focused on
  314. fast compression and decompression speed. It belongs to the LZ77
  315. family of byte-oriented compression schemes.
  316. config SPL_LZO
  317. bool "Enable LZO decompression support in SPL"
  318. help
  319. This enables support for LZO compression algorithm in the SPL.
  320. config SPL_GZIP
  321. bool "Enable gzip decompression support for SPL build"
  322. select SPL_ZLIB
  323. help
  324. This enables support for GZIP compression altorithm for SPL boot.
  325. config SPL_ZLIB
  326. bool
  327. help
  328. This enables compression lib for SPL boot.
  329. endmenu
  330. config ERRNO_STR
  331. bool "Enable function for getting errno-related string message"
  332. help
  333. The function errno_str(int errno), returns a pointer to the errno
  334. corresponding text message:
  335. - if errno is null or positive number - a pointer to "Success" message
  336. - if errno is negative - a pointer to errno related message
  337. config HEXDUMP
  338. bool "Enable hexdump"
  339. help
  340. This enables functions for printing dumps of binary data.
  341. config OF_LIBFDT
  342. bool "Enable the FDT library"
  343. default y if OF_CONTROL
  344. help
  345. This enables the FDT library (libfdt). It provides functions for
  346. accessing binary device tree images in memory, such as adding and
  347. removing nodes and properties, scanning through the tree and finding
  348. particular compatible nodes. The library operates on a flattened
  349. version of the device tree.
  350. config OF_LIBFDT_OVERLAY
  351. bool "Enable the FDT library overlay support"
  352. depends on OF_LIBFDT
  353. default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
  354. help
  355. This enables the FDT library (libfdt) overlay support.
  356. config SPL_OF_LIBFDT
  357. bool "Enable the FDT library for SPL"
  358. default y if SPL_OF_CONTROL
  359. help
  360. This enables the FDT library (libfdt). It provides functions for
  361. accessing binary device tree images in memory, such as adding and
  362. removing nodes and properties, scanning through the tree and finding
  363. particular compatible nodes. The library operates on a flattened
  364. version of the device tree.
  365. config TPL_OF_LIBFDT
  366. bool "Enable the FDT library for TPL"
  367. default y if TPL_OF_CONTROL
  368. help
  369. This enables the FDT library (libfdt). It provides functions for
  370. accessing binary device tree images in memory, such as adding and
  371. removing nodes and properties, scanning through the tree and finding
  372. particular compatible nodes. The library operates on a flattened
  373. version of the device tree.
  374. config FDT_FIXUP_PARTITIONS
  375. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  376. depends on OF_LIBFDT
  377. depends on CMD_MTDPARTS
  378. help
  379. Allow overwriting defined partitions in the device tree blob
  380. using partition info defined in the 'mtdparts' environment
  381. variable.
  382. menu "System tables"
  383. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  384. config GENERATE_SMBIOS_TABLE
  385. bool "Generate an SMBIOS (System Management BIOS) table"
  386. default y
  387. depends on X86 || EFI_LOADER
  388. help
  389. The System Management BIOS (SMBIOS) specification addresses how
  390. motherboard and system vendors present management information about
  391. their products in a standard format by extending the BIOS interface
  392. on Intel architecture systems.
  393. Check http://www.dmtf.org/standards/smbios for details.
  394. config SMBIOS_MANUFACTURER
  395. string "SMBIOS Manufacturer"
  396. depends on GENERATE_SMBIOS_TABLE
  397. default SYS_VENDOR
  398. help
  399. The board manufacturer to store in SMBIOS structures.
  400. Change this to override the default one (CONFIG_SYS_VENDOR).
  401. config SMBIOS_PRODUCT_NAME
  402. string "SMBIOS Product Name"
  403. depends on GENERATE_SMBIOS_TABLE
  404. default SYS_BOARD
  405. help
  406. The product name to store in SMBIOS structures.
  407. Change this to override the default one (CONFIG_SYS_BOARD).
  408. endmenu
  409. source lib/efi/Kconfig
  410. source lib/efi_loader/Kconfig
  411. source lib/optee/Kconfig
  412. config TEST_FDTDEC
  413. bool "enable fdtdec test"
  414. depends on OF_LIBFDT
  415. endmenu