Kconfig 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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 HAVE_PRIVATE_LIBGCC
  15. bool
  16. config USE_PRIVATE_LIBGCC
  17. bool "Use private libgcc"
  18. depends on HAVE_PRIVATE_LIBGCC
  19. default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
  20. help
  21. This option allows you to use the built-in libgcc implementation
  22. of U-Boot instead of the one provided by the compiler.
  23. If unsure, say N.
  24. config SYS_HZ
  25. int
  26. default 1000
  27. help
  28. The frequency of the timer returned by get_timer().
  29. get_timer() must operate in milliseconds and this option must be
  30. set to 1000.
  31. config USE_TINY_PRINTF
  32. bool "Enable tiny printf() version"
  33. help
  34. This option enables a tiny, stripped down printf version.
  35. This should only be used in space limited environments,
  36. like SPL versions with hard memory limits. This version
  37. reduces the code size by about 2.5KiB on armv7.
  38. The supported format specifiers are %c, %s, %u/%d and %x.
  39. config REGEX
  40. bool "Enable regular expression support"
  41. default y if NET
  42. help
  43. If this variable is defined, U-Boot is linked against the
  44. SLRE (Super Light Regular Expression) library, which adds
  45. regex support to some commands, for example "env grep" and
  46. "setexpr".
  47. config LIB_RAND
  48. bool "Pseudo-random library support "
  49. help
  50. This library provides pseudo-random number generator functions.
  51. config SPL_TINY_MEMSET
  52. bool "Use a very small memset() in SPL"
  53. help
  54. The faster memset() is the arch-specific one (if available) enabled
  55. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  56. better performance by writing a word at a time. But in very
  57. size-constrained envrionments even this may be too big. Enable this
  58. option to reduce code size slightly at the cost of some speed.
  59. config TPL_TINY_MEMSET
  60. bool "Use a very small memset() in TPL"
  61. help
  62. The faster memset() is the arch-specific one (if available) enabled
  63. by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
  64. better performance by writing a word at a time. But in very
  65. size-constrained envrionments even this may be too big. Enable this
  66. option to reduce code size slightly at the cost of some speed.
  67. config RBTREE
  68. bool
  69. config BITREVERSE
  70. bool "Bit reverse library from Linux"
  71. source lib/dhry/Kconfig
  72. menu "Security support"
  73. config AES
  74. bool "Support the AES algorithm"
  75. help
  76. This provides a means to encrypt and decrypt data using the AES
  77. (Advanced Encryption Standard). This algorithm uses a symetric key
  78. and is widely used as a streaming cipher. Different key lengths are
  79. supported by the algorithm but only a 128-bit key is supported at
  80. present.
  81. source lib/rsa/Kconfig
  82. config TPM
  83. bool "Trusted Platform Module (TPM) Support"
  84. depends on DM
  85. help
  86. This enables support for TPMs which can be used to provide security
  87. features for your board. The TPM can be connected via LPC or I2C
  88. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  89. command to interactive the TPM. Driver model support is provided
  90. for the low-level TPM interface, but only one TPM is supported at
  91. a time by the TPM library.
  92. endmenu
  93. menu "Hashing Support"
  94. config SHA1
  95. bool "Enable SHA1 support"
  96. help
  97. This option enables support of hashing using SHA1 algorithm.
  98. The hash is calculated in software.
  99. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  100. (digest).
  101. config SHA256
  102. bool "Enable SHA256 support"
  103. help
  104. This option enables support of hashing using SHA256 algorithm.
  105. The hash is calculated in software.
  106. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  107. (digest).
  108. config SHA_HW_ACCEL
  109. bool "Enable hashing using hardware"
  110. help
  111. This option enables hardware acceleration
  112. for SHA1/SHA256 hashing.
  113. This affects the 'hash' command and also the
  114. hash_lookup_algo() function.
  115. config SHA_PROG_HW_ACCEL
  116. bool "Enable Progressive hashing support using hardware"
  117. depends on SHA_HW_ACCEL
  118. help
  119. This option enables hardware-acceleration for
  120. SHA1/SHA256 progressive hashing.
  121. Data can be streamed in a block at a time and the hashing
  122. is performed in hardware.
  123. config MD5
  124. bool
  125. config CRC32C
  126. bool
  127. endmenu
  128. menu "Compression Support"
  129. config LZ4
  130. bool "Enable LZ4 decompression support"
  131. help
  132. If this option is set, support for LZ4 compressed images
  133. is included. The LZ4 algorithm can run in-place as long as the
  134. compressed image is loaded to the end of the output buffer, and
  135. trades lower compression ratios for much faster decompression.
  136. NOTE: This implements the release version of the LZ4 frame
  137. format as generated by default by the 'lz4' command line tool.
  138. This is not the same as the outdated, less efficient legacy
  139. frame format currently (2015) implemented in the Linux kernel
  140. (generated by 'lz4 -l'). The two formats are incompatible.
  141. config LZMA
  142. bool "Enable LZMA decompression support"
  143. help
  144. This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
  145. a dictionary compression algorithm that provides a high compression
  146. ratio and fairly fast decompression speed. See also
  147. CONFIG_CMD_LZMADEC which provides a decode command.
  148. config LZO
  149. bool "Enable LZO decompression support"
  150. help
  151. This enables support for LZO compression algorithm.r
  152. config SPL_LZO
  153. bool "Enable LZO decompression support in SPL"
  154. help
  155. This enables support for LZO compression algorithm in the SPL.
  156. config SPL_GZIP
  157. bool "Enable gzip decompression support for SPL build"
  158. select SPL_ZLIB
  159. help
  160. This enables support for GZIP compression altorithm for SPL boot.
  161. config SPL_ZLIB
  162. bool
  163. help
  164. This enables compression lib for SPL boot.
  165. endmenu
  166. config ERRNO_STR
  167. bool "Enable function for getting errno-related string message"
  168. help
  169. The function errno_str(int errno), returns a pointer to the errno
  170. corresponding text message:
  171. - if errno is null or positive number - a pointer to "Success" message
  172. - if errno is negative - a pointer to errno related message
  173. config OF_LIBFDT
  174. bool "Enable the FDT library"
  175. default y if OF_CONTROL
  176. help
  177. This enables the FDT library (libfdt). It provides functions for
  178. accessing binary device tree images in memory, such as adding and
  179. removing nodes and properties, scanning through the tree and finding
  180. particular compatible nodes. The library operates on a flattened
  181. version of the device tree.
  182. config OF_LIBFDT_OVERLAY
  183. bool "Enable the FDT library overlay support"
  184. help
  185. This enables the FDT library (libfdt) overlay support.
  186. config SPL_OF_LIBFDT
  187. bool "Enable the FDT library for SPL"
  188. default y if SPL_OF_CONTROL
  189. help
  190. This enables the FDT library (libfdt). It provides functions for
  191. accessing binary device tree images in memory, such as adding and
  192. removing nodes and properties, scanning through the tree and finding
  193. particular compatible nodes. The library operates on a flattened
  194. version of the device tree.
  195. config FDT_FIXUP_PARTITIONS
  196. bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
  197. depends on OF_LIBFDT
  198. default n
  199. help
  200. Allow overwriting defined partitions in the device tree blob
  201. using partition info defined in the 'mtdparts' environment
  202. variable.
  203. menu "System tables"
  204. depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
  205. config GENERATE_SMBIOS_TABLE
  206. bool "Generate an SMBIOS (System Management BIOS) table"
  207. default y
  208. depends on X86 || EFI_LOADER
  209. help
  210. The System Management BIOS (SMBIOS) specification addresses how
  211. motherboard and system vendors present management information about
  212. their products in a standard format by extending the BIOS interface
  213. on Intel architecture systems.
  214. Check http://www.dmtf.org/standards/smbios for details.
  215. config SMBIOS_MANUFACTURER
  216. string "SMBIOS Manufacturer"
  217. depends on GENERATE_SMBIOS_TABLE
  218. default SYS_VENDOR
  219. help
  220. The board manufacturer to store in SMBIOS structures.
  221. Change this to override the default one (CONFIG_SYS_VENDOR).
  222. config SMBIOS_PRODUCT_NAME
  223. string "SMBIOS Product Name"
  224. depends on GENERATE_SMBIOS_TABLE
  225. default SYS_BOARD
  226. help
  227. The product name to store in SMBIOS structures.
  228. Change this to override the default one (CONFIG_SYS_BOARD).
  229. endmenu
  230. source lib/efi/Kconfig
  231. source lib/efi_loader/Kconfig
  232. endmenu