Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. menu "Library routines"
  2. config ADDR_MAP
  3. bool "Enable support for non-identity virtual-physical mappings"
  4. help
  5. Enables helper code for implementing non-identity virtual-physical
  6. memory mappings for 32bit CPUs.
  7. This library only works in the post-relocation phase.
  8. config SYS_NUM_ADDR_MAP
  9. int "Size of the address-map table"
  10. depends on ADDR_MAP
  11. default 16
  12. help
  13. Sets the number of entries in the virtual-physical mapping table.
  14. config BCH
  15. bool "Enable Software based BCH ECC"
  16. help
  17. Enables software based BCH ECC algorithm present in lib/bch.c
  18. This is used by SoC platforms which do not have built-in ELM
  19. hardware engine required for BCH ECC correction.
  20. config BINMAN_FDT
  21. bool "Allow access to binman information in the device tree"
  22. depends on BINMAN && DM && OF_CONTROL
  23. default y if OF_SEPARATE || OF_EMBED
  24. help
  25. This enables U-Boot to access information about binman entries,
  26. stored in the device tree in a binman node. Typical uses are to
  27. locate entries in the firmware image. See binman.h for the available
  28. functionality.
  29. config CC_OPTIMIZE_LIBS_FOR_SPEED
  30. bool "Optimize libraries for speed"
  31. help
  32. Enabling this option will pass "-O2" to gcc when compiling
  33. under "lib" directory.
  34. If unsure, say N.
  35. config CHARSET
  36. bool
  37. default y if UT_UNICODE || EFI_LOADER || UFS
  38. help
  39. Enables support for various conversions between different
  40. character sets, such as between unicode representations and
  41. different 'code pages'.
  42. config DYNAMIC_CRC_TABLE
  43. bool "Enable Dynamic tables for CRC"
  44. help
  45. Enable this option to calculate entries for CRC tables at runtime.
  46. This can be helpful when reducing the size of the build image
  47. config HAVE_ARCH_IOMAP
  48. bool
  49. help
  50. Enable this option if architecture provides io{read,write}{8,16,32}
  51. I/O accessor functions.
  52. config HAVE_PRIVATE_LIBGCC
  53. bool
  54. config LIB_UUID
  55. bool
  56. config PRINTF
  57. bool
  58. default y
  59. config SPL_PRINTF
  60. bool
  61. select SPL_SPRINTF
  62. select SPL_STRTO if !SPL_USE_TINY_PRINTF
  63. config TPL_PRINTF
  64. bool
  65. select TPL_SPRINTF
  66. select TPL_STRTO if !TPL_USE_TINY_PRINTF
  67. config SPRINTF
  68. bool
  69. default y
  70. config SPL_SPRINTF
  71. bool
  72. config TPL_SPRINTF
  73. bool
  74. config SSCANF
  75. bool
  76. config STRTO
  77. bool
  78. default y
  79. config SPL_STRTO
  80. bool
  81. config TPL_STRTO
  82. bool
  83. config IMAGE_SPARSE
  84. bool
  85. config IMAGE_SPARSE_FILLBUF_SIZE
  86. hex "Android sparse image CHUNK_TYPE_FILL buffer size"
  87. default 0x80000
  88. depends on IMAGE_SPARSE
  89. help
  90. Set the size of the fill buffer used when processing CHUNK_TYPE_FILL
  91. chunks.
  92. config USE_PRIVATE_LIBGCC
  93. bool "Use private libgcc"
  94. depends on HAVE_PRIVATE_LIBGCC
  95. default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
  96. help
  97. This option allows you to use the built-in libgcc implementation
  98. of U-Boot instead of the one provided by the compiler.
  99. If unsure, say N.
  100. config SYS_HZ
  101. int
  102. default 1000
  103. help
  104. The frequency of the timer returned by get_timer().
  105. get_timer() must operate in milliseconds and this option must be
  106. set to 1000.
  107. config SPL_USE_TINY_PRINTF
  108. bool "Enable tiny printf() version in SPL"
  109. depends on SPL
  110. default y
  111. help
  112. This option enables a tiny, stripped down printf version.
  113. This should only be used in space limited environments,
  114. like SPL versions with hard memory limits. This version
  115. reduces the code size by about 2.5KiB on armv7.
  116. The supported format specifiers are %c, %s, %u/%d and %x.
  117. config TPL_USE_TINY_PRINTF
  118. bool "Enable tiny printf() version in TPL"
  119. depends on TPL
  120. default y if SPL_USE_TINY_PRINTF
  121. help
  122. This option enables a tiny, stripped down printf version.
  123. This should only be used in space limited environments,
  124. like SPL versions with hard memory limits. This version
  125. reduces the code size by about 2.5KiB on armv7.
  126. The supported format specifiers are %c, %s, %u/%d and %x.
  127. config PANIC_HANG
  128. bool "Do not reset the system on fatal error"
  129. help
  130. Define this option to stop the system in case of a fatal error,
  131. so that you have to reset it manually. This is probably NOT a good
  132. idea for an embedded system where you want the system to reboot
  133. automatically as fast as possible, but it may be useful during
  134. development since you can try to debug the conditions that lead to
  135. the situation.
  136. config REGEX
  137. bool "Enable regular expression support"
  138. default y if NET
  139. help
  140. If this variable is defined, U-Boot is linked against the
  141. SLRE (Super Light Regular Expression) library, which adds
  142. regex support to some commands, for example "env grep" and
  143. "setexpr".
  144. choice
  145. prompt "Pseudo-random library support type"
  146. depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
  147. RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
  148. default LIB_RAND
  149. help
  150. Select the library to provide pseudo-random number generator
  151. functions. LIB_HW_RAND supports certain hardware engines that
  152. provide this functionality. If in doubt, select LIB_RAND.
  153. config LIB_RAND
  154. bool "Pseudo-random library support"
  155. config LIB_HW_RAND
  156. bool "HW Engine for random library support"
  157. endchoice
  158. config SPL_TINY_MEMSET
  159. bool "Use a very small memset() in SPL"
  160. help
  161. The faster memset() is the arch-specific one (if available) enabled
  162. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  163. better performance by writing a word at a time. But in very
  164. size-constrained environments even this may be too big. Enable this
  165. option to reduce code size slightly at the cost of some speed.
  166. config TPL_TINY_MEMSET
  167. bool "Use a very small memset() in TPL"
  168. help
  169. The faster memset() is the arch-specific one (if available) enabled
  170. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  171. better performance by writing a word at a time. But in very
  172. size-constrained environments even this may be too big. Enable this
  173. option to reduce code size slightly at the cost of some speed.
  174. config RBTREE
  175. bool
  176. config BITREVERSE
  177. bool "Bit reverse library from Linux"
  178. config TRACE
  179. bool "Support for tracing of function calls and timing"
  180. imply CMD_TRACE
  181. select TIMER_EARLY
  182. help
  183. Enables function tracing within U-Boot. This allows recording of call
  184. traces including timing information. The command can write data to
  185. memory for exporting for analysis (e.g. using bootchart).
  186. See doc/README.trace for full details.
  187. config TRACE_BUFFER_SIZE
  188. hex "Size of trace buffer in U-Boot"
  189. depends on TRACE
  190. default 0x01000000
  191. help
  192. Sets the size of the trace buffer in U-Boot. This is allocated from
  193. memory during relocation. If this buffer is too small, the trace
  194. history will be truncated, with later records omitted.
  195. If early trace is enabled (i.e. before relocation), this buffer must
  196. be large enough to include all the data from the early trace buffer as
  197. well, since this is copied over to the main buffer during relocation.
  198. A trace record is emitted for each function call and each record is
  199. 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
  200. the size is too small then 'trace stats' will show a message saying
  201. how many records were dropped due to buffer overflow.
  202. config TRACE_CALL_DEPTH_LIMIT
  203. int "Trace call depth limit"
  204. depends on TRACE
  205. default 15
  206. help
  207. Sets the maximum call depth up to which function calls are recorded.
  208. config TRACE_EARLY
  209. bool "Enable tracing before relocation"
  210. depends on TRACE
  211. help
  212. Sometimes it is helpful to trace execution of U-Boot before
  213. relocation. This is possible by using a arch-specific, fixed buffer
  214. position in memory. Enable this option to start tracing as early as
  215. possible after U-Boot starts.
  216. config TRACE_EARLY_SIZE
  217. hex "Size of early trace buffer in U-Boot"
  218. depends on TRACE_EARLY
  219. default 0x00100000
  220. help
  221. Sets the size of the early trace buffer in bytes. This is used to hold
  222. tracing information before relocation.
  223. config TRACE_EARLY_CALL_DEPTH_LIMIT
  224. int "Early trace call depth limit"
  225. depends on TRACE_EARLY
  226. default 200
  227. help
  228. Sets the maximum call depth up to which function calls are recorded
  229. during early tracing.
  230. config TRACE_EARLY_ADDR
  231. hex "Address of early trace buffer in U-Boot"
  232. depends on TRACE_EARLY
  233. default 0x00100000
  234. help
  235. Sets the address of the early trace buffer in U-Boot. This memory
  236. must be accessible before relocation.
  237. A trace record is emitted for each function call and each record is
  238. 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
  239. the size is too small then the message which says the amount of early
  240. data being coped will the the same as the
  241. source lib/dhry/Kconfig
  242. menu "Security support"
  243. config AES
  244. bool "Support the AES algorithm"
  245. help
  246. This provides a means to encrypt and decrypt data using the AES
  247. (Advanced Encryption Standard). This algorithm uses a symetric key
  248. and is widely used as a streaming cipher. Different key lengths are
  249. supported by the algorithm but only a 128-bit key is supported at
  250. present.
  251. source lib/ecdsa/Kconfig
  252. source lib/rsa/Kconfig
  253. source lib/crypto/Kconfig
  254. source lib/crypt/Kconfig
  255. config TPM
  256. bool "Trusted Platform Module (TPM) Support"
  257. depends on DM
  258. help
  259. This enables support for TPMs which can be used to provide security
  260. features for your board. The TPM can be connected via LPC or I2C
  261. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  262. command to interactive the TPM. Driver model support is provided
  263. for the low-level TPM interface, but only one TPM is supported at
  264. a time by the TPM library.
  265. config SPL_TPM
  266. bool "Trusted Platform Module (TPM) Support in SPL"
  267. depends on SPL_DM
  268. help
  269. This enables support for TPMs which can be used to provide security
  270. features for your board. The TPM can be connected via LPC or I2C
  271. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  272. command to interactive the TPM. Driver model support is provided
  273. for the low-level TPM interface, but only one TPM is supported at
  274. a time by the TPM library.
  275. config TPL_TPM
  276. bool "Trusted Platform Module (TPM) Support in TPL"
  277. depends on TPL_DM
  278. help
  279. This enables support for TPMs which can be used to provide security
  280. features for your board. The TPM can be connected via LPC or I2C
  281. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  282. command to interactive the TPM. Driver model support is provided
  283. for the low-level TPM interface, but only one TPM is supported at
  284. a time by the TPM library.
  285. endmenu
  286. menu "Android Verified Boot"
  287. config LIBAVB
  288. bool "Android Verified Boot 2.0 support"
  289. depends on ANDROID_BOOT_IMAGE
  290. help
  291. This enables support of Android Verified Boot 2.0 which can be used
  292. to assure the end user of the integrity of the software running on a
  293. device. Introduces such features as boot chain of trust, rollback
  294. protection etc.
  295. endmenu
  296. menu "Hashing Support"
  297. config SHA1
  298. bool "Enable SHA1 support"
  299. help
  300. This option enables support of hashing using SHA1 algorithm.
  301. The hash is calculated in software.
  302. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  303. (digest).
  304. config SHA256
  305. bool "Enable SHA256 support"
  306. help
  307. This option enables support of hashing using SHA256 algorithm.
  308. The hash is calculated in software.
  309. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  310. (digest).
  311. config SHA512
  312. bool "Enable SHA512 support"
  313. help
  314. This option enables support of hashing using SHA512 algorithm.
  315. The hash is calculated in software.
  316. The SHA512 algorithm produces a 512-bit (64-byte) hash value
  317. (digest).
  318. config SHA384
  319. bool "Enable SHA384 support"
  320. select SHA512
  321. help
  322. This option enables support of hashing using SHA384 algorithm.
  323. The hash is calculated in software. This is also selects SHA512,
  324. because these implementations share the bulk of the code..
  325. The SHA384 algorithm produces a 384-bit (48-byte) hash value
  326. (digest).
  327. config SHA_HW_ACCEL
  328. bool "Enable hardware acceleration for SHA hash functions"
  329. help
  330. This option enables hardware acceleration for the SHA1 and SHA256
  331. hashing algorithms. This affects the 'hash' command and also the
  332. hash_lookup_algo() function.
  333. if SPL
  334. config SPL_SHA1
  335. bool "Enable SHA1 support in SPL"
  336. default y if SHA1
  337. help
  338. This option enables support of hashing using SHA1 algorithm.
  339. The hash is calculated in software.
  340. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  341. (digest).
  342. config SPL_SHA256
  343. bool "Enable SHA256 support in SPL"
  344. default y if SHA256
  345. help
  346. This option enables support of hashing using SHA256 algorithm.
  347. The hash is calculated in software.
  348. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  349. (digest).
  350. config SPL_SHA512
  351. bool "Enable SHA512 support in SPL"
  352. default y if SHA512
  353. help
  354. This option enables support of hashing using SHA512 algorithm.
  355. The hash is calculated in software.
  356. The SHA512 algorithm produces a 512-bit (64-byte) hash value
  357. (digest).
  358. config SPL_SHA384
  359. bool "Enable SHA384 support in SPL"
  360. default y if SHA384
  361. select SPL_SHA512
  362. help
  363. This option enables support of hashing using SHA384 algorithm.
  364. The hash is calculated in software. This is also selects SHA512,
  365. because these implementations share the bulk of the code..
  366. The SHA384 algorithm produces a 384-bit (48-byte) hash value
  367. (digest).
  368. config SPL_SHA_HW_ACCEL
  369. bool "Enable hardware acceleration for SHA hash functions"
  370. default y if SHA_HW_ACCEL
  371. help
  372. This option enables hardware acceleration for the SHA1 and SHA256
  373. hashing algorithms. This affects the 'hash' command and also the
  374. hash_lookup_algo() function.
  375. config SPL_SHA_PROG_HW_ACCEL
  376. bool "Enable Progressive hashing support using hardware in SPL"
  377. depends on SHA_PROG_HW_ACCEL
  378. default y
  379. help
  380. This option enables hardware-acceleration for SHA progressive
  381. hashing.
  382. Data can be streamed in a block at a time and the hashing is
  383. performed in hardware.
  384. endif
  385. if SHA_HW_ACCEL
  386. config SHA512_HW_ACCEL
  387. bool "Enable hardware acceleration for SHA512"
  388. depends on SHA512
  389. help
  390. This option enables hardware acceleration for the SHA384 and SHA512
  391. hashing algorithms. This affects the 'hash' command and also the
  392. hash_lookup_algo() function.
  393. config SHA_PROG_HW_ACCEL
  394. bool "Enable Progressive hashing support using hardware"
  395. help
  396. This option enables hardware-acceleration for SHA progressive
  397. hashing.
  398. Data can be streamed in a block at a time and the hashing is
  399. performed in hardware.
  400. endif
  401. config MD5
  402. bool "Support MD5 algorithm"
  403. help
  404. This option enables MD5 support. MD5 is an algorithm designed
  405. in 1991 that produces a 16-byte digest (or checksum) from its input
  406. data. It has a number of vulnerabilities which preclude its use in
  407. security applications, but it can be useful for providing a quick
  408. checksum of a block of data.
  409. config SPL_MD5
  410. bool "Support MD5 algorithm in SPL"
  411. help
  412. This option enables MD5 support in SPL. MD5 is an algorithm designed
  413. in 1991 that produces a 16-byte digest (or checksum) from its input
  414. data. It has a number of vulnerabilities which preclude its use in
  415. security applications, but it can be useful for providing a quick
  416. checksum of a block of data.
  417. config CRC32
  418. def_bool y
  419. help
  420. Enables CRC32 support in U-Boot. This is normally required.
  421. config CRC32C
  422. bool
  423. config XXHASH
  424. bool
  425. endmenu
  426. menu "Compression Support"
  427. config LZ4
  428. bool "Enable LZ4 decompression support"
  429. help
  430. If this option is set, support for LZ4 compressed images
  431. is included. The LZ4 algorithm can run in-place as long as the
  432. compressed image is loaded to the end of the output buffer, and
  433. trades lower compression ratios for much faster decompression.
  434. NOTE: This implements the release version of the LZ4 frame
  435. format as generated by default by the 'lz4' command line tool.
  436. This is not the same as the outdated, less efficient legacy
  437. frame format currently (2015) implemented in the Linux kernel
  438. (generated by 'lz4 -l'). The two formats are incompatible.
  439. config LZMA
  440. bool "Enable LZMA decompression support"
  441. help
  442. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  443. a dictionary compression algorithm that provides a high compression
  444. ratio and fairly fast decompression speed. See also
  445. CONFIG_CMD_LZMADEC which provides a decode command.
  446. config LZO
  447. bool "Enable LZO decompression support"
  448. help
  449. This enables support for the LZO compression algorithm.
  450. config GZIP
  451. bool "Enable gzip decompression support"
  452. select ZLIB
  453. default y
  454. help
  455. This enables support for GZIP compression algorithm.
  456. config ZLIB_UNCOMPRESS
  457. bool "Enables zlib's uncompress() functionality"
  458. help
  459. This enables an extra zlib functionality: the uncompress() function,
  460. which decompresses data from a buffer into another, knowing their
  461. sizes. Unlike gunzip(), there is no header parsing.
  462. config GZIP_COMPRESSED
  463. bool
  464. select ZLIB
  465. config BZIP2
  466. bool "Enable bzip2 decompression support"
  467. help
  468. This enables support for BZIP2 compression algorithm.
  469. config ZLIB
  470. bool
  471. default y
  472. help
  473. This enables ZLIB compression lib.
  474. config ZSTD
  475. bool "Enable Zstandard decompression support"
  476. select XXHASH
  477. help
  478. This enables Zstandard decompression library.
  479. config SPL_LZ4
  480. bool "Enable LZ4 decompression support in SPL"
  481. help
  482. This enables support for the LZ4 decompression algorithm in SPL. LZ4
  483. is a lossless data compression algorithm that is focused on
  484. fast compression and decompression speed. It belongs to the LZ77
  485. family of byte-oriented compression schemes.
  486. config SPL_LZMA
  487. bool "Enable LZMA decompression support for SPL build"
  488. help
  489. This enables support for LZMA compression algorithm for SPL boot.
  490. config SPL_LZO
  491. bool "Enable LZO decompression support in SPL"
  492. help
  493. This enables support for LZO compression algorithm in the SPL.
  494. config SPL_GZIP
  495. bool "Enable gzip decompression support for SPL build"
  496. select SPL_ZLIB
  497. help
  498. This enables support for the GZIP compression algorithm for SPL boot.
  499. config SPL_ZLIB
  500. bool
  501. help
  502. This enables compression lib for SPL boot.
  503. config SPL_ZSTD
  504. bool "Enable Zstandard decompression support in SPL"
  505. select XXHASH
  506. help
  507. This enables Zstandard decompression library in the SPL.
  508. endmenu
  509. config ERRNO_STR
  510. bool "Enable function for getting errno-related string message"
  511. help
  512. The function errno_str(int errno), returns a pointer to the errno
  513. corresponding text message:
  514. - if errno is null or positive number - a pointer to "Success" message
  515. - if errno is negative - a pointer to errno related message
  516. config HEXDUMP
  517. bool "Enable hexdump"
  518. help
  519. This enables functions for printing dumps of binary data.
  520. config SPL_HEXDUMP
  521. bool "Enable hexdump in SPL"
  522. depends on SPL && HEXDUMP
  523. help
  524. This enables functions for printing dumps of binary data in
  525. SPL.
  526. config GETOPT
  527. bool "Enable getopt"
  528. help
  529. This enables functions for parsing command-line options.
  530. config OF_LIBFDT
  531. bool "Enable the FDT library"
  532. default y if OF_CONTROL
  533. help
  534. This enables the FDT library (libfdt). It provides functions for
  535. accessing binary device tree images in memory, such as adding and
  536. removing nodes and properties, scanning through the tree and finding
  537. particular compatible nodes. The library operates on a flattened
  538. version of the device tree.
  539. config OF_LIBFDT_ASSUME_MASK
  540. hex "Mask of conditions to assume for libfdt"
  541. depends on OF_LIBFDT || FIT
  542. default 0
  543. help
  544. Use this to change the assumptions made by libfdt about the
  545. device tree it is working with. A value of 0 means that no assumptions
  546. are made, and libfdt is able to deal with malicious data. A value of
  547. 0xff means all assumptions are made and any invalid data may cause
  548. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  549. config OF_LIBFDT_OVERLAY
  550. bool "Enable the FDT library overlay support"
  551. depends on OF_LIBFDT
  552. default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
  553. help
  554. This enables the FDT library (libfdt) overlay support.
  555. config SPL_OF_LIBFDT
  556. bool "Enable the FDT library for SPL"
  557. default y if SPL_OF_CONTROL
  558. help
  559. This enables the FDT library (libfdt). It provides functions for
  560. accessing binary device tree images in memory, such as adding and
  561. removing nodes and properties, scanning through the tree and finding
  562. particular compatible nodes. The library operates on a flattened
  563. version of the device tree.
  564. config SPL_OF_LIBFDT_ASSUME_MASK
  565. hex "Mask of conditions to assume for libfdt"
  566. depends on SPL_OF_LIBFDT || FIT
  567. default 0xff
  568. help
  569. Use this to change the assumptions made by libfdt in SPL about the
  570. device tree it is working with. A value of 0 means that no assumptions
  571. are made, and libfdt is able to deal with malicious data. A value of
  572. 0xff means all assumptions are made and any invalid data may cause
  573. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  574. config TPL_OF_LIBFDT
  575. bool "Enable the FDT library for TPL"
  576. default y if TPL_OF_CONTROL
  577. help
  578. This enables the FDT library (libfdt). It provides functions for
  579. accessing binary device tree images in memory, such as adding and
  580. removing nodes and properties, scanning through the tree and finding
  581. particular compatible nodes. The library operates on a flattened
  582. version of the device tree.
  583. config TPL_OF_LIBFDT_ASSUME_MASK
  584. hex "Mask of conditions to assume for libfdt"
  585. depends on TPL_OF_LIBFDT || FIT
  586. default 0xff
  587. help
  588. Use this to change the assumptions made by libfdt in TPL about the
  589. device tree it is working with. A value of 0 means that no assumptions
  590. are made, and libfdt is able to deal with malicious data. A value of
  591. 0xff means all assumptions are made and any invalid data may cause
  592. unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
  593. config FDT_FIXUP_PARTITIONS
  594. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  595. depends on OF_LIBFDT
  596. depends on CMD_MTDPARTS
  597. help
  598. Allow overwriting defined partitions in the device tree blob
  599. using partition info defined in the 'mtdparts' environment
  600. variable.
  601. menu "System tables"
  602. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  603. config BLOBLIST_TABLES
  604. bool "Put tables in a bloblist"
  605. depends on X86 && BLOBLIST
  606. help
  607. Normally tables are placed at address 0xf0000 and can be up to 64KB
  608. long. With this option, tables are instead placed in the bloblist
  609. with a pointer from 0xf0000. The size can then be larger and the
  610. tables can be placed high in memory.
  611. config GENERATE_SMBIOS_TABLE
  612. bool "Generate an SMBIOS (System Management BIOS) table"
  613. default y
  614. depends on X86 || EFI_LOADER
  615. help
  616. The System Management BIOS (SMBIOS) specification addresses how
  617. motherboard and system vendors present management information about
  618. their products in a standard format by extending the BIOS interface
  619. on Intel architecture systems.
  620. Check http://www.dmtf.org/standards/smbios for details.
  621. See also SMBIOS_SYSINFO which allows SMBIOS values to be provided in
  622. the devicetree.
  623. config LIB_RATIONAL
  624. bool "enable continued fraction calculation routines"
  625. config SPL_LIB_RATIONAL
  626. bool "enable continued fraction calculation routines for SPL"
  627. depends on SPL
  628. endmenu
  629. config ASN1_COMPILER
  630. bool
  631. config ASN1_DECODER
  632. bool
  633. help
  634. Enable asn1 decoder library.
  635. config OID_REGISTRY
  636. bool
  637. help
  638. Enable fast lookup object identifier registry.
  639. config SMBIOS_PARSER
  640. bool "SMBIOS parser"
  641. help
  642. A simple parser for SMBIOS data.
  643. source lib/efi/Kconfig
  644. source lib/efi_loader/Kconfig
  645. source lib/optee/Kconfig
  646. config TEST_FDTDEC
  647. bool "enable fdtdec test"
  648. depends on OF_LIBFDT
  649. config LIB_DATE
  650. bool
  651. config LIB_ELF
  652. bool
  653. help
  654. Support basic elf loading/validating functions.
  655. This supports for 32 bit and 64 bit versions.
  656. config LMB
  657. bool "Enable the logical memory blocks library (lmb)"
  658. default y if ARC || ARM || M68K || MICROBLAZE || MIPS || NDS32 || \
  659. NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
  660. help
  661. Support the library logical memory blocks.
  662. config LMB_USE_MAX_REGIONS
  663. bool "Use a commun number of memory and reserved regions in lmb lib"
  664. depends on LMB
  665. default y
  666. help
  667. Define the number of supported memory regions in the library logical
  668. memory blocks.
  669. This feature allow to reduce the lmb library size by using compiler
  670. optimization when LMB_MEMORY_REGIONS == LMB_RESERVED_REGIONS.
  671. config LMB_MAX_REGIONS
  672. int "Number of memory and reserved regions in lmb lib"
  673. depends on LMB && LMB_USE_MAX_REGIONS
  674. default 8
  675. help
  676. Define the number of supported regions, memory and reserved, in the
  677. library logical memory blocks.
  678. config LMB_MEMORY_REGIONS
  679. int "Number of memory regions in lmb lib"
  680. depends on LMB && !LMB_USE_MAX_REGIONS
  681. default 8
  682. help
  683. Define the number of supported memory regions in the library logical
  684. memory blocks.
  685. The minimal value is CONFIG_NR_DRAM_BANKS.
  686. config LMB_RESERVED_REGIONS
  687. int "Number of reserved regions in lmb lib"
  688. depends on LMB && !LMB_USE_MAX_REGIONS
  689. default 8
  690. help
  691. Define the number of supported reserved regions in the library logical
  692. memory blocks.
  693. endmenu
  694. config PHANDLE_CHECK_SEQ
  695. bool "Enable phandle check while getting sequence number"
  696. help
  697. When there are multiple device tree nodes with same name,
  698. enable this config option to distinguish them using
  699. phandles in fdtdec_get_alias_seq() function.