Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  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 !SPL_USE_TINY_PRINTF
  35. config TPL_PRINTF
  36. bool
  37. select TPL_SPRINTF
  38. select TPL_STRTO if !TPL_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 SPL_USE_TINY_PRINTF
  78. bool "Enable tiny printf() version in SPL"
  79. depends on SPL
  80. default y
  81. help
  82. This option enables a tiny, stripped down printf version.
  83. This should only be used in space limited environments,
  84. like SPL versions with hard memory limits. This version
  85. reduces the code size by about 2.5KiB on armv7.
  86. The supported format specifiers are %c, %s, %u/%d and %x.
  87. config TPL_USE_TINY_PRINTF
  88. bool "Enable tiny printf() version in TPL"
  89. depends on TPL
  90. default y if SPL_USE_TINY_PRINTF
  91. help
  92. This option enables a tiny, stripped down printf version.
  93. This should only be used in space limited environments,
  94. like SPL versions with hard memory limits. This version
  95. reduces the code size by about 2.5KiB on armv7.
  96. The supported format specifiers are %c, %s, %u/%d and %x.
  97. config PANIC_HANG
  98. bool "Do not reset the system on fatal error"
  99. help
  100. Define this option to stop the system in case of a fatal error,
  101. so that you have to reset it manually. This is probably NOT a good
  102. idea for an embedded system where you want the system to reboot
  103. automatically as fast as possible, but it may be useful during
  104. development since you can try to debug the conditions that lead to
  105. the situation.
  106. config REGEX
  107. bool "Enable regular expression support"
  108. default y if NET
  109. help
  110. If this variable is defined, U-Boot is linked against the
  111. SLRE (Super Light Regular Expression) library, which adds
  112. regex support to some commands, for example "env grep" and
  113. "setexpr".
  114. choice
  115. prompt "Pseudo-random library support type"
  116. depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID
  117. default LIB_RAND
  118. help
  119. Select the library to provide pseudo-random number generator
  120. functions. LIB_HW_RAND supports certain hardware engines that
  121. provide this functionality. If in doubt, select LIB_RAND.
  122. config LIB_RAND
  123. bool "Pseudo-random library support"
  124. config LIB_HW_RAND
  125. bool "HW Engine for random libray support"
  126. endchoice
  127. config SPL_TINY_MEMSET
  128. bool "Use a very small memset() in SPL"
  129. help
  130. The faster memset() is the arch-specific one (if available) enabled
  131. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  132. better performance by writing a word at a time. But in very
  133. size-constrained environments even this may be too big. Enable this
  134. option to reduce code size slightly at the cost of some speed.
  135. config TPL_TINY_MEMSET
  136. bool "Use a very small memset() in TPL"
  137. help
  138. The faster memset() is the arch-specific one (if available) enabled
  139. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  140. better performance by writing a word at a time. But in very
  141. size-constrained environments even this may be too big. Enable this
  142. option to reduce code size slightly at the cost of some speed.
  143. config RBTREE
  144. bool
  145. config BITREVERSE
  146. bool "Bit reverse library from Linux"
  147. config TRACE
  148. bool "Support for tracing of function calls and timing"
  149. imply CMD_TRACE
  150. help
  151. Enables function tracing within U-Boot. This allows recording of call
  152. traces including timing information. The command can write data to
  153. memory for exporting for analysis (e.g. using bootchart).
  154. See doc/README.trace for full details.
  155. config TRACE_BUFFER_SIZE
  156. hex "Size of trace buffer in U-Boot"
  157. depends on TRACE
  158. default 0x01000000
  159. help
  160. Sets the size of the trace buffer in U-Boot. This is allocated from
  161. memory during relocation. If this buffer is too small, the trace
  162. history will be truncated, with later records omitted.
  163. If early trace is enabled (i.e. before relocation), this buffer must
  164. be large enough to include all the data from the early trace buffer as
  165. well, since this is copied over to the main buffer during relocation.
  166. A trace record is emitted for each function call and each record is
  167. 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
  168. the size is too small then 'trace stats' will show a message saying
  169. how many records were dropped due to buffer overflow.
  170. config TRACE_CALL_DEPTH_LIMIT
  171. int "Trace call depth limit"
  172. depends on TRACE
  173. default 15
  174. help
  175. Sets the maximum call depth up to which function calls are recorded.
  176. config TRACE_EARLY
  177. bool "Enable tracing before relocation"
  178. depends on TRACE
  179. help
  180. Sometimes it is helpful to trace execution of U-Boot before
  181. relocation. This is possible by using a arch-specific, fixed buffer
  182. position in memory. Enable this option to start tracing as early as
  183. possible after U-Boot starts.
  184. config TRACE_EARLY_SIZE
  185. hex "Size of early trace buffer in U-Boot"
  186. depends on TRACE_EARLY
  187. default 0x00100000
  188. help
  189. Sets the size of the early trace buffer in bytes. This is used to hold
  190. tracing information before relocation.
  191. config TRACE_EARLY_CALL_DEPTH_LIMIT
  192. int "Early trace call depth limit"
  193. depends on TRACE_EARLY
  194. default 200
  195. help
  196. Sets the maximum call depth up to which function calls are recorded
  197. during early tracing.
  198. config TRACE_EARLY_ADDR
  199. hex "Address of early trace buffer in U-Boot"
  200. depends on TRACE_EARLY
  201. default 0x00100000
  202. help
  203. Sets the address of the early trace buffer in U-Boot. This memory
  204. must be accessible before relocation.
  205. A trace record is emitted for each function call and each record is
  206. 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
  207. the size is too small then the message which says the amount of early
  208. data being coped will the the same as the
  209. source lib/dhry/Kconfig
  210. menu "Security support"
  211. config AES
  212. bool "Support the AES algorithm"
  213. help
  214. This provides a means to encrypt and decrypt data using the AES
  215. (Advanced Encryption Standard). This algorithm uses a symetric key
  216. and is widely used as a streaming cipher. Different key lengths are
  217. supported by the algorithm but only a 128-bit key is supported at
  218. present.
  219. source lib/rsa/Kconfig
  220. config TPM
  221. bool "Trusted Platform Module (TPM) Support"
  222. depends on DM
  223. help
  224. This enables support for TPMs which can be used to provide security
  225. features for your board. The TPM can be connected via LPC or I2C
  226. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  227. command to interactive the TPM. Driver model support is provided
  228. for the low-level TPM interface, but only one TPM is supported at
  229. a time by the TPM library.
  230. config SPL_TPM
  231. bool "Trusted Platform Module (TPM) Support in SPL"
  232. depends on SPL_DM
  233. help
  234. This enables support for TPMs which can be used to provide security
  235. features for your board. The TPM can be connected via LPC or I2C
  236. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  237. command to interactive the TPM. Driver model support is provided
  238. for the low-level TPM interface, but only one TPM is supported at
  239. a time by the TPM library.
  240. config TPL_TPM
  241. bool "Trusted Platform Module (TPM) Support in TPL"
  242. depends on TPL_DM
  243. help
  244. This enables support for TPMs which can be used to provide security
  245. features for your board. The TPM can be connected via LPC or I2C
  246. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  247. command to interactive the TPM. Driver model support is provided
  248. for the low-level TPM interface, but only one TPM is supported at
  249. a time by the TPM library.
  250. endmenu
  251. menu "Android Verified Boot"
  252. config LIBAVB
  253. bool "Android Verified Boot 2.0 support"
  254. depends on ANDROID_BOOT_IMAGE
  255. default n
  256. help
  257. This enables support of Android Verified Boot 2.0 which can be used
  258. to assure the end user of the integrity of the software running on a
  259. device. Introduces such features as boot chain of trust, rollback
  260. protection etc.
  261. endmenu
  262. menu "Hashing Support"
  263. config SHA1
  264. bool "Enable SHA1 support"
  265. help
  266. This option enables support of hashing using SHA1 algorithm.
  267. The hash is calculated in software.
  268. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  269. (digest).
  270. config SHA256
  271. bool "Enable SHA256 support"
  272. help
  273. This option enables support of hashing using SHA256 algorithm.
  274. The hash is calculated in software.
  275. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  276. (digest).
  277. config SHA_HW_ACCEL
  278. bool "Enable hashing using hardware"
  279. help
  280. This option enables hardware acceleration
  281. for SHA1/SHA256 hashing.
  282. This affects the 'hash' command and also the
  283. hash_lookup_algo() function.
  284. config SHA_PROG_HW_ACCEL
  285. bool "Enable Progressive hashing support using hardware"
  286. depends on SHA_HW_ACCEL
  287. help
  288. This option enables hardware-acceleration for
  289. SHA1/SHA256 progressive hashing.
  290. Data can be streamed in a block at a time and the hashing
  291. is performed in hardware.
  292. config MD5
  293. bool
  294. config CRC32C
  295. bool
  296. config XXHASH
  297. bool
  298. endmenu
  299. menu "Compression Support"
  300. config LZ4
  301. bool "Enable LZ4 decompression support"
  302. help
  303. If this option is set, support for LZ4 compressed images
  304. is included. The LZ4 algorithm can run in-place as long as the
  305. compressed image is loaded to the end of the output buffer, and
  306. trades lower compression ratios for much faster decompression.
  307. NOTE: This implements the release version of the LZ4 frame
  308. format as generated by default by the 'lz4' command line tool.
  309. This is not the same as the outdated, less efficient legacy
  310. frame format currently (2015) implemented in the Linux kernel
  311. (generated by 'lz4 -l'). The two formats are incompatible.
  312. config LZMA
  313. bool "Enable LZMA decompression support"
  314. help
  315. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  316. a dictionary compression algorithm that provides a high compression
  317. ratio and fairly fast decompression speed. See also
  318. CONFIG_CMD_LZMADEC which provides a decode command.
  319. config LZO
  320. bool "Enable LZO decompression support"
  321. help
  322. This enables support for LZO compression algorithm.r
  323. config GZIP
  324. bool "Enable gzip decompression support"
  325. select ZLIB
  326. default y
  327. help
  328. This enables support for GZIP compression algorithm.
  329. config ZLIB
  330. bool
  331. default y
  332. help
  333. This enables ZLIB compression lib.
  334. config ZSTD
  335. bool "Enable Zstandard decompression support"
  336. select XXHASH
  337. help
  338. This enables Zstandard decompression library.
  339. config SPL_LZ4
  340. bool "Enable LZ4 decompression support in SPL"
  341. help
  342. This enables support for tge LZ4 decompression algorithm in SPL. LZ4
  343. is a lossless data compression algorithm that is focused on
  344. fast compression and decompression speed. It belongs to the LZ77
  345. family of byte-oriented compression schemes.
  346. config SPL_LZO
  347. bool "Enable LZO decompression support in SPL"
  348. help
  349. This enables support for LZO compression algorithm in the SPL.
  350. config SPL_GZIP
  351. bool "Enable gzip decompression support for SPL build"
  352. select SPL_ZLIB
  353. help
  354. This enables support for GZIP compression altorithm for SPL boot.
  355. config SPL_ZLIB
  356. bool
  357. help
  358. This enables compression lib for SPL boot.
  359. config SPL_ZSTD
  360. bool "Enable Zstandard decompression support in SPL"
  361. select XXHASH
  362. help
  363. This enables Zstandard decompression library in the SPL.
  364. endmenu
  365. config ERRNO_STR
  366. bool "Enable function for getting errno-related string message"
  367. help
  368. The function errno_str(int errno), returns a pointer to the errno
  369. corresponding text message:
  370. - if errno is null or positive number - a pointer to "Success" message
  371. - if errno is negative - a pointer to errno related message
  372. config HEXDUMP
  373. bool "Enable hexdump"
  374. help
  375. This enables functions for printing dumps of binary data.
  376. config OF_LIBFDT
  377. bool "Enable the FDT library"
  378. default y if OF_CONTROL
  379. help
  380. This enables the FDT library (libfdt). It provides functions for
  381. accessing binary device tree images in memory, such as adding and
  382. removing nodes and properties, scanning through the tree and finding
  383. particular compatible nodes. The library operates on a flattened
  384. version of the device tree.
  385. config OF_LIBFDT_ASSUME_MASK
  386. hex "Mask of conditions to assume for libfdt"
  387. depends on OF_LIBFDT || FIT
  388. default 0
  389. help
  390. Use this to change the assumptions made by libfdt about the
  391. device tree it is working with. A value of 0 means that no assumptions
  392. are made, and libfdt is able to deal with malicious data. A value of
  393. 0xff means all assumptions are made and any invalid data may cause
  394. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  395. config OF_LIBFDT_OVERLAY
  396. bool "Enable the FDT library overlay support"
  397. depends on OF_LIBFDT
  398. default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
  399. help
  400. This enables the FDT library (libfdt) overlay support.
  401. config SPL_OF_LIBFDT
  402. bool "Enable the FDT library for SPL"
  403. default y if SPL_OF_CONTROL
  404. help
  405. This enables the FDT library (libfdt). It provides functions for
  406. accessing binary device tree images in memory, such as adding and
  407. removing nodes and properties, scanning through the tree and finding
  408. particular compatible nodes. The library operates on a flattened
  409. version of the device tree.
  410. config SPL_OF_LIBFDT_ASSUME_MASK
  411. hex "Mask of conditions to assume for libfdt"
  412. depends on SPL_OF_LIBFDT || FIT
  413. default 0xff
  414. help
  415. Use this to change the assumptions made by libfdt in SPL about the
  416. device tree it is working with. A value of 0 means that no assumptions
  417. are made, and libfdt is able to deal with malicious data. A value of
  418. 0xff means all assumptions are made and any invalid data may cause
  419. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  420. config TPL_OF_LIBFDT
  421. bool "Enable the FDT library for TPL"
  422. default y if TPL_OF_CONTROL
  423. help
  424. This enables the FDT library (libfdt). It provides functions for
  425. accessing binary device tree images in memory, such as adding and
  426. removing nodes and properties, scanning through the tree and finding
  427. particular compatible nodes. The library operates on a flattened
  428. version of the device tree.
  429. config TPL_OF_LIBFDT_ASSUME_MASK
  430. hex "Mask of conditions to assume for libfdt"
  431. depends on TPL_OF_LIBFDT || FIT
  432. default 0xff
  433. help
  434. Use this to change the assumptions made by libfdt in TPL about the
  435. device tree it is working with. A value of 0 means that no assumptions
  436. are made, and libfdt is able to deal with malicious data. A value of
  437. 0xff means all assumptions are made and any invalid data may cause
  438. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  439. config FDT_FIXUP_PARTITIONS
  440. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  441. depends on OF_LIBFDT
  442. depends on CMD_MTDPARTS
  443. help
  444. Allow overwriting defined partitions in the device tree blob
  445. using partition info defined in the 'mtdparts' environment
  446. variable.
  447. menu "System tables"
  448. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  449. config GENERATE_SMBIOS_TABLE
  450. bool "Generate an SMBIOS (System Management BIOS) table"
  451. default y
  452. depends on X86 || EFI_LOADER
  453. help
  454. The System Management BIOS (SMBIOS) specification addresses how
  455. motherboard and system vendors present management information about
  456. their products in a standard format by extending the BIOS interface
  457. on Intel architecture systems.
  458. Check http://www.dmtf.org/standards/smbios for details.
  459. config SMBIOS_MANUFACTURER
  460. string "SMBIOS Manufacturer"
  461. depends on GENERATE_SMBIOS_TABLE
  462. default SYS_VENDOR
  463. help
  464. The board manufacturer to store in SMBIOS structures.
  465. Change this to override the default one (CONFIG_SYS_VENDOR).
  466. config SMBIOS_PRODUCT_NAME
  467. string "SMBIOS Product Name"
  468. depends on GENERATE_SMBIOS_TABLE
  469. default SYS_BOARD
  470. help
  471. The product name to store in SMBIOS structures.
  472. Change this to override the default one (CONFIG_SYS_BOARD).
  473. endmenu
  474. config ASN1_COMPILER
  475. bool
  476. source lib/efi/Kconfig
  477. source lib/efi_loader/Kconfig
  478. source lib/optee/Kconfig
  479. config TEST_FDTDEC
  480. bool "enable fdtdec test"
  481. depends on OF_LIBFDT
  482. config LIB_DATE
  483. bool
  484. endmenu