Kconfig 19 KB

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