Kconfig 5.6 KB

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