Kconfig 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. #
  2. # Library configuration
  3. #
  4. config BINARY_PRINTF
  5. def_bool n
  6. menu "Library routines"
  7. config RAID6_PQ
  8. tristate
  9. config BITREVERSE
  10. tristate
  11. config RATIONAL
  12. boolean
  13. config GENERIC_FIND_FIRST_BIT
  14. bool
  15. config GENERIC_PCI_IOMAP
  16. bool
  17. config GENERIC_IOMAP
  18. bool
  19. select GENERIC_PCI_IOMAP
  20. config CRC_CCITT
  21. tristate "CRC-CCITT functions"
  22. help
  23. This option is provided for the case where no in-kernel-tree
  24. modules require CRC-CCITT functions, but a module built outside
  25. the kernel tree does. Such modules that use library CRC-CCITT
  26. functions require M here.
  27. config CRC16
  28. tristate "CRC16 functions"
  29. help
  30. This option is provided for the case where no in-kernel-tree
  31. modules require CRC16 functions, but a module built outside
  32. the kernel tree does. Such modules that use library CRC16
  33. functions require M here.
  34. config CRC_T10DIF
  35. tristate "CRC calculation for the T10 Data Integrity Field"
  36. help
  37. This option is only needed if a module that's not in the
  38. kernel tree needs to calculate CRC checks for use with the
  39. SCSI data integrity subsystem.
  40. config CRC_ITU_T
  41. tristate "CRC ITU-T V.41 functions"
  42. help
  43. This option is provided for the case where no in-kernel-tree
  44. modules require CRC ITU-T V.41 functions, but a module built outside
  45. the kernel tree does. Such modules that use library CRC ITU-T V.41
  46. functions require M here.
  47. config CRC32
  48. tristate "CRC32 functions"
  49. default y
  50. select BITREVERSE
  51. help
  52. This option is provided for the case where no in-kernel-tree
  53. modules require CRC32 functions, but a module built outside the
  54. kernel tree does. Such modules that use library CRC32 functions
  55. require M here.
  56. config CRC7
  57. tristate "CRC7 functions"
  58. help
  59. This option is provided for the case where no in-kernel-tree
  60. modules require CRC7 functions, but a module built outside
  61. the kernel tree does. Such modules that use library CRC7
  62. functions require M here.
  63. config LIBCRC32C
  64. tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
  65. select CRYPTO
  66. select CRYPTO_CRC32C
  67. help
  68. This option is provided for the case where no in-kernel-tree
  69. modules require CRC32c functions, but a module built outside the
  70. kernel tree does. Such modules that use library CRC32c functions
  71. require M here. See Castagnoli93.
  72. Module will be libcrc32c.
  73. config CRC8
  74. tristate "CRC8 function"
  75. help
  76. This option provides CRC8 function. Drivers may select this
  77. when they need to do cyclic redundancy check according CRC8
  78. algorithm. Module will be called crc8.
  79. config AUDIT_GENERIC
  80. bool
  81. depends on AUDIT && !AUDIT_ARCH
  82. default y
  83. #
  84. # compression support is select'ed if needed
  85. #
  86. config ZLIB_INFLATE
  87. tristate
  88. config ZLIB_DEFLATE
  89. tristate
  90. config LZO_COMPRESS
  91. tristate
  92. config LZO_DECOMPRESS
  93. tristate
  94. source "lib/xz/Kconfig"
  95. #
  96. # These all provide a common interface (hence the apparent duplication with
  97. # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
  98. #
  99. config DECOMPRESS_GZIP
  100. select ZLIB_INFLATE
  101. tristate
  102. config DECOMPRESS_BZIP2
  103. tristate
  104. config DECOMPRESS_LZMA
  105. tristate
  106. config DECOMPRESS_XZ
  107. select XZ_DEC
  108. tristate
  109. config DECOMPRESS_LZO
  110. select LZO_DECOMPRESS
  111. tristate
  112. #
  113. # Generic allocator support is selected if needed
  114. #
  115. config GENERIC_ALLOCATOR
  116. boolean
  117. #
  118. # reed solomon support is select'ed if needed
  119. #
  120. config REED_SOLOMON
  121. tristate
  122. config REED_SOLOMON_ENC8
  123. boolean
  124. config REED_SOLOMON_DEC8
  125. boolean
  126. config REED_SOLOMON_ENC16
  127. boolean
  128. config REED_SOLOMON_DEC16
  129. boolean
  130. #
  131. # BCH support is selected if needed
  132. #
  133. config BCH
  134. tristate
  135. config BCH_CONST_PARAMS
  136. boolean
  137. help
  138. Drivers may select this option to force specific constant
  139. values for parameters 'm' (Galois field order) and 't'
  140. (error correction capability). Those specific values must
  141. be set by declaring default values for symbols BCH_CONST_M
  142. and BCH_CONST_T.
  143. Doing so will enable extra compiler optimizations,
  144. improving encoding and decoding performance up to 2x for
  145. usual (m,t) values (typically such that m*t < 200).
  146. When this option is selected, the BCH library supports
  147. only a single (m,t) configuration. This is mainly useful
  148. for NAND flash board drivers requiring known, fixed BCH
  149. parameters.
  150. config BCH_CONST_M
  151. int
  152. range 5 15
  153. help
  154. Constant value for Galois field order 'm'. If 'k' is the
  155. number of data bits to protect, 'm' should be chosen such
  156. that (k + m*t) <= 2**m - 1.
  157. Drivers should declare a default value for this symbol if
  158. they select option BCH_CONST_PARAMS.
  159. config BCH_CONST_T
  160. int
  161. help
  162. Constant value for error correction capability in bits 't'.
  163. Drivers should declare a default value for this symbol if
  164. they select option BCH_CONST_PARAMS.
  165. #
  166. # Textsearch support is select'ed if needed
  167. #
  168. config TEXTSEARCH
  169. boolean
  170. config TEXTSEARCH_KMP
  171. tristate
  172. config TEXTSEARCH_BM
  173. tristate
  174. config TEXTSEARCH_FSM
  175. tristate
  176. config BTREE
  177. boolean
  178. config HAS_IOMEM
  179. boolean
  180. depends on !NO_IOMEM
  181. default y
  182. config HAS_IOPORT
  183. boolean
  184. depends on HAS_IOMEM && !NO_IOPORT
  185. default y
  186. config HAS_DMA
  187. boolean
  188. depends on !NO_DMA
  189. default y
  190. config CHECK_SIGNATURE
  191. bool
  192. config CPUMASK_OFFSTACK
  193. bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
  194. help
  195. Use dynamic allocation for cpumask_var_t, instead of putting
  196. them on the stack. This is a bit more expensive, but avoids
  197. stack overflow.
  198. config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
  199. bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
  200. depends on EXPERIMENTAL && BROKEN
  201. config CPU_RMAP
  202. bool
  203. depends on SMP
  204. config DQL
  205. bool
  206. #
  207. # Netlink attribute parsing support is select'ed if needed
  208. #
  209. config NLATTR
  210. bool
  211. #
  212. # Generic 64-bit atomic support is selected if needed
  213. #
  214. config GENERIC_ATOMIC64
  215. bool
  216. config LRU_CACHE
  217. tristate
  218. config AVERAGE
  219. bool "Averaging functions"
  220. help
  221. This option is provided for the case where no in-kernel-tree
  222. modules require averaging functions, but a module built outside
  223. the kernel tree does. Such modules that use library averaging
  224. functions require Y here.
  225. If unsure, say N.
  226. config CORDIC
  227. tristate "CORDIC algorithm"
  228. help
  229. This option provides an implementation of the CORDIC algorithm;
  230. calculations are in fixed point. Module will be called cordic.
  231. config MPILIB
  232. tristate
  233. help
  234. Multiprecision maths library from GnuPG.
  235. It is used to implement RSA digital signature verification,
  236. which is used by IMA/EVM digital signature extension.
  237. config MPILIB_EXTRA
  238. bool
  239. depends on MPILIB
  240. help
  241. Additional sources of multiprecision maths library from GnuPG.
  242. This code is unnecessary for RSA digital signature verification,
  243. but can be compiled if needed.
  244. config SIGNATURE
  245. tristate
  246. depends on KEYS && CRYPTO
  247. select CRYPTO_SHA1
  248. select MPILIB
  249. help
  250. Digital signature verification. Currently only RSA is supported.
  251. Implementation is done using GnuPG MPI library
  252. endmenu