Kconfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. menu "Library routines"
  2. config CC_OPTIMIZE_LIBS_FOR_SPEED
  3. bool "Optimize libraries for speed"
  4. help
  5. Enabling this option will pass "-O2" to gcc when compiling
  6. under "lib" directory.
  7. If unsure, say N.
  8. config HAVE_PRIVATE_LIBGCC
  9. bool
  10. config USE_PRIVATE_LIBGCC
  11. bool "Use private libgcc"
  12. depends on HAVE_PRIVATE_LIBGCC
  13. help
  14. This option allows you to use the built-in libgcc implementation
  15. of U-boot instead of the one privided by the compiler.
  16. If unsure, say N.
  17. config SYS_HZ
  18. int
  19. default 1000
  20. help
  21. The frequency of the timer returned by get_timer().
  22. get_timer() must operate in milliseconds and this option must be
  23. set to 1000.
  24. config SYS_VSNPRINTF
  25. bool "Enable safe version of sprintf()"
  26. help
  27. Since sprintf() can overflow its buffer, it is common to use
  28. snprintf() instead, which knows the buffer size and can avoid
  29. overflow. However, this does increase code size slightly (for
  30. Thumb-2, about 420 bytes). Enable this option for safety when
  31. using sprintf() with data you do not control.
  32. config USE_TINY_PRINTF
  33. bool "Enable tiny printf() version"
  34. help
  35. This option enables a tiny, stripped down printf version.
  36. This should only be used in space limited environments,
  37. like SPL versions with hard memory limits. This version
  38. reduces the code size by about 2.5KiB on armv7.
  39. The supported format specifiers are %c, %s, %u/%d and %x.
  40. config REGEX
  41. bool "Enable regular expression support"
  42. default y if NET
  43. help
  44. If this variable is defined, U-Boot is linked against the
  45. SLRE (Super Light Regular Expression) library, which adds
  46. regex support to some commands, for example "env grep" and
  47. "setexpr".
  48. config LIB_RAND
  49. bool "Pseudo-random library support "
  50. help
  51. This library provides pseudo-random number generator functions.
  52. source lib/dhry/Kconfig
  53. source lib/rsa/Kconfig
  54. config TPM
  55. bool "Trusted Platform Module (TPM) Support"
  56. depends on DM
  57. help
  58. This enables support for TPMs which can be used to provide security
  59. features for your board. The TPM can be connected via LPC or I2C
  60. and a sandbox TPM is provided for testing purposes. Use the 'tpm'
  61. command to interactive the TPM. Driver model support is provided
  62. for the low-level TPM interface, but only one TPM is supported at
  63. a time by the TPM library.
  64. menu "Hashing Support"
  65. config SHA1
  66. bool "Enable SHA1 support"
  67. help
  68. This option enables support of hashing using SHA1 algorithm.
  69. The hash is calculated in software.
  70. The SHA1 algorithm produces a 160-bit (20-byte) hash value
  71. (digest).
  72. config SHA256
  73. bool "Enable SHA256 support"
  74. help
  75. This option enables support of hashing using SHA256 algorithm.
  76. The hash is calculated in software.
  77. The SHA256 algorithm produces a 256-bit (32-byte) hash value
  78. (digest).
  79. config SHA_HW_ACCEL
  80. bool "Enable hashing using hardware"
  81. help
  82. This option enables hardware acceleration
  83. for SHA1/SHA256 hashing.
  84. This affects the 'hash' command and also the
  85. hash_lookup_algo() function.
  86. config SHA_PROG_HW_ACCEL
  87. bool "Enable Progressive hashing support using hardware"
  88. depends on SHA_HW_ACCEL
  89. help
  90. This option enables hardware-acceleration for
  91. SHA1/SHA256 progressive hashing.
  92. Data can be streamed in a block at a time and the hashing
  93. is performed in hardware.
  94. endmenu
  95. menu "Compression Support"
  96. config LZ4
  97. bool "Enable LZ4 decompression support"
  98. help
  99. If this option is set, support for LZ4 compressed images
  100. is included. The LZ4 algorithm can run in-place as long as the
  101. compressed image is loaded to the end of the output buffer, and
  102. trades lower compression ratios for much faster decompression.
  103. NOTE: This implements the release version of the LZ4 frame
  104. format as generated by default by the 'lz4' command line tool.
  105. This is not the same as the outdated, less efficient legacy
  106. frame format currently (2015) implemented in the Linux kernel
  107. (generated by 'lz4 -l'). The two formats are incompatible.
  108. endmenu
  109. config ERRNO_STR
  110. bool "Enable function for getting errno-related string message"
  111. help
  112. The function errno_str(int errno), returns a pointer to the errno
  113. corresponding text message:
  114. - if errno is null or positive number - a pointer to "Success" message
  115. - if errno is negative - a pointer to errno related message
  116. source lib/efi/Kconfig
  117. endmenu