Kconfig 5.7 KB

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