Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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. source lib/crypto/Kconfig
  221. config TPM
  222. bool "Trusted Platform Module (TPM) Support"
  223. depends on DM
  224. help
  225. This enables support for TPMs which can be used to provide security
  226. features for your board. The TPM can be connected via LPC or I2C
  227. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  228. command to interactive the TPM. Driver model support is provided
  229. for the low-level TPM interface, but only one TPM is supported at
  230. a time by the TPM library.
  231. config SPL_TPM
  232. bool "Trusted Platform Module (TPM) Support in SPL"
  233. depends on SPL_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 TPL_TPM
  242. bool "Trusted Platform Module (TPM) Support in TPL"
  243. depends on TPL_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. endmenu
  252. menu "Android Verified Boot"
  253. config LIBAVB
  254. bool "Android Verified Boot 2.0 support"
  255. depends on ANDROID_BOOT_IMAGE
  256. default n
  257. help
  258. This enables support of Android Verified Boot 2.0 which can be used
  259. to assure the end user of the integrity of the software running on a
  260. device. Introduces such features as boot chain of trust, rollback
  261. protection etc.
  262. endmenu
  263. menu "Hashing Support"
  264. config SHA1
  265. bool "Enable SHA1 support"
  266. help
  267. This option enables support of hashing using SHA1 algorithm.
  268. The hash is calculated in software.
  269. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  270. (digest).
  271. config SHA256
  272. bool "Enable SHA256 support"
  273. help
  274. This option enables support of hashing using SHA256 algorithm.
  275. The hash is calculated in software.
  276. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  277. (digest).
  278. config SHA_HW_ACCEL
  279. bool "Enable hashing using hardware"
  280. help
  281. This option enables hardware acceleration
  282. for SHA1/SHA256 hashing.
  283. This affects the 'hash' command and also the
  284. hash_lookup_algo() function.
  285. config SHA_PROG_HW_ACCEL
  286. bool "Enable Progressive hashing support using hardware"
  287. depends on SHA_HW_ACCEL
  288. help
  289. This option enables hardware-acceleration for
  290. SHA1/SHA256 progressive hashing.
  291. Data can be streamed in a block at a time and the hashing
  292. is performed in hardware.
  293. config MD5
  294. bool
  295. config CRC32C
  296. bool
  297. config XXHASH
  298. bool
  299. endmenu
  300. menu "Compression Support"
  301. config LZ4
  302. bool "Enable LZ4 decompression support"
  303. help
  304. If this option is set, support for LZ4 compressed images
  305. is included. The LZ4 algorithm can run in-place as long as the
  306. compressed image is loaded to the end of the output buffer, and
  307. trades lower compression ratios for much faster decompression.
  308. NOTE: This implements the release version of the LZ4 frame
  309. format as generated by default by the 'lz4' command line tool.
  310. This is not the same as the outdated, less efficient legacy
  311. frame format currently (2015) implemented in the Linux kernel
  312. (generated by 'lz4 -l'). The two formats are incompatible.
  313. config LZMA
  314. bool "Enable LZMA decompression support"
  315. help
  316. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  317. a dictionary compression algorithm that provides a high compression
  318. ratio and fairly fast decompression speed. See also
  319. CONFIG_CMD_LZMADEC which provides a decode command.
  320. config LZO
  321. bool "Enable LZO decompression support"
  322. help
  323. This enables support for LZO compression algorithm.r
  324. config GZIP
  325. bool "Enable gzip decompression support"
  326. select ZLIB
  327. default y
  328. help
  329. This enables support for GZIP compression algorithm.
  330. config ZLIB
  331. bool
  332. default y
  333. help
  334. This enables ZLIB compression lib.
  335. config ZSTD
  336. bool "Enable Zstandard decompression support"
  337. select XXHASH
  338. help
  339. This enables Zstandard decompression library.
  340. config SPL_LZ4
  341. bool "Enable LZ4 decompression support in SPL"
  342. help
  343. This enables support for tge LZ4 decompression algorithm in SPL. LZ4
  344. is a lossless data compression algorithm that is focused on
  345. fast compression and decompression speed. It belongs to the LZ77
  346. family of byte-oriented compression schemes.
  347. config SPL_LZO
  348. bool "Enable LZO decompression support in SPL"
  349. help
  350. This enables support for LZO compression algorithm in the SPL.
  351. config SPL_GZIP
  352. bool "Enable gzip decompression support for SPL build"
  353. select SPL_ZLIB
  354. help
  355. This enables support for GZIP compression altorithm for SPL boot.
  356. config SPL_ZLIB
  357. bool
  358. help
  359. This enables compression lib for SPL boot.
  360. config SPL_ZSTD
  361. bool "Enable Zstandard decompression support in SPL"
  362. select XXHASH
  363. help
  364. This enables Zstandard decompression library in the SPL.
  365. endmenu
  366. config ERRNO_STR
  367. bool "Enable function for getting errno-related string message"
  368. help
  369. The function errno_str(int errno), returns a pointer to the errno
  370. corresponding text message:
  371. - if errno is null or positive number - a pointer to "Success" message
  372. - if errno is negative - a pointer to errno related message
  373. config HEXDUMP
  374. bool "Enable hexdump"
  375. help
  376. This enables functions for printing dumps of binary data.
  377. config OF_LIBFDT
  378. bool "Enable the FDT library"
  379. default y if OF_CONTROL
  380. help
  381. This enables the FDT library (libfdt). It provides functions for
  382. accessing binary device tree images in memory, such as adding and
  383. removing nodes and properties, scanning through the tree and finding
  384. particular compatible nodes. The library operates on a flattened
  385. version of the device tree.
  386. config OF_LIBFDT_ASSUME_MASK
  387. hex "Mask of conditions to assume for libfdt"
  388. depends on OF_LIBFDT || FIT
  389. default 0
  390. help
  391. Use this to change the assumptions made by libfdt about the
  392. device tree it is working with. A value of 0 means that no assumptions
  393. are made, and libfdt is able to deal with malicious data. A value of
  394. 0xff means all assumptions are made and any invalid data may cause
  395. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  396. config OF_LIBFDT_OVERLAY
  397. bool "Enable the FDT library overlay support"
  398. depends on OF_LIBFDT
  399. default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
  400. help
  401. This enables the FDT library (libfdt) overlay support.
  402. config SPL_OF_LIBFDT
  403. bool "Enable the FDT library for SPL"
  404. default y if SPL_OF_CONTROL
  405. help
  406. This enables the FDT library (libfdt). It provides functions for
  407. accessing binary device tree images in memory, such as adding and
  408. removing nodes and properties, scanning through the tree and finding
  409. particular compatible nodes. The library operates on a flattened
  410. version of the device tree.
  411. config SPL_OF_LIBFDT_ASSUME_MASK
  412. hex "Mask of conditions to assume for libfdt"
  413. depends on SPL_OF_LIBFDT || FIT
  414. default 0xff
  415. help
  416. Use this to change the assumptions made by libfdt in SPL about the
  417. device tree it is working with. A value of 0 means that no assumptions
  418. are made, and libfdt is able to deal with malicious data. A value of
  419. 0xff means all assumptions are made and any invalid data may cause
  420. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  421. config TPL_OF_LIBFDT
  422. bool "Enable the FDT library for TPL"
  423. default y if TPL_OF_CONTROL
  424. help
  425. This enables the FDT library (libfdt). It provides functions for
  426. accessing binary device tree images in memory, such as adding and
  427. removing nodes and properties, scanning through the tree and finding
  428. particular compatible nodes. The library operates on a flattened
  429. version of the device tree.
  430. config TPL_OF_LIBFDT_ASSUME_MASK
  431. hex "Mask of conditions to assume for libfdt"
  432. depends on TPL_OF_LIBFDT || FIT
  433. default 0xff
  434. help
  435. Use this to change the assumptions made by libfdt in TPL about the
  436. device tree it is working with. A value of 0 means that no assumptions
  437. are made, and libfdt is able to deal with malicious data. A value of
  438. 0xff means all assumptions are made and any invalid data may cause
  439. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  440. config FDT_FIXUP_PARTITIONS
  441. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  442. depends on OF_LIBFDT
  443. depends on CMD_MTDPARTS
  444. help
  445. Allow overwriting defined partitions in the device tree blob
  446. using partition info defined in the 'mtdparts' environment
  447. variable.
  448. menu "System tables"
  449. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  450. config GENERATE_SMBIOS_TABLE
  451. bool "Generate an SMBIOS (System Management BIOS) table"
  452. default y
  453. depends on X86 || EFI_LOADER
  454. help
  455. The System Management BIOS (SMBIOS) specification addresses how
  456. motherboard and system vendors present management information about
  457. their products in a standard format by extending the BIOS interface
  458. on Intel architecture systems.
  459. Check http://www.dmtf.org/standards/smbios for details.
  460. config SMBIOS_MANUFACTURER
  461. string "SMBIOS Manufacturer"
  462. depends on GENERATE_SMBIOS_TABLE
  463. default SYS_VENDOR
  464. help
  465. The board manufacturer to store in SMBIOS structures.
  466. Change this to override the default one (CONFIG_SYS_VENDOR).
  467. config SMBIOS_PRODUCT_NAME
  468. string "SMBIOS Product Name"
  469. depends on GENERATE_SMBIOS_TABLE
  470. default SYS_BOARD
  471. help
  472. The product name to store in SMBIOS structures.
  473. Change this to override the default one (CONFIG_SYS_BOARD).
  474. endmenu
  475. config ASN1_COMPILER
  476. bool
  477. config ASN1_DECODER
  478. bool
  479. help
  480. Enable asn1 decoder library.
  481. config OID_REGISTRY
  482. bool
  483. help
  484. Enable fast lookup object identifier registry.
  485. source lib/efi/Kconfig
  486. source lib/efi_loader/Kconfig
  487. source lib/optee/Kconfig
  488. config TEST_FDTDEC
  489. bool "enable fdtdec test"
  490. depends on OF_LIBFDT
  491. config LIB_DATE
  492. bool
  493. endmenu