Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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_LAST_BIT
  18. bool
  19. default y
  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 AUDIT_GENERIC
  74. bool
  75. depends on AUDIT && !AUDIT_ARCH
  76. default y
  77. #
  78. # compression support is select'ed if needed
  79. #
  80. config ZLIB_INFLATE
  81. tristate
  82. config ZLIB_DEFLATE
  83. tristate
  84. config LZO_COMPRESS
  85. tristate
  86. config LZO_DECOMPRESS
  87. tristate
  88. source "lib/xz/Kconfig"
  89. #
  90. # These all provide a common interface (hence the apparent duplication with
  91. # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
  92. #
  93. config DECOMPRESS_GZIP
  94. select ZLIB_INFLATE
  95. tristate
  96. config DECOMPRESS_BZIP2
  97. tristate
  98. config DECOMPRESS_LZMA
  99. tristate
  100. config DECOMPRESS_XZ
  101. select XZ_DEC
  102. tristate
  103. config DECOMPRESS_LZO
  104. select LZO_DECOMPRESS
  105. tristate
  106. #
  107. # Generic allocator support is selected if needed
  108. #
  109. config GENERIC_ALLOCATOR
  110. boolean
  111. #
  112. # reed solomon support is select'ed if needed
  113. #
  114. config REED_SOLOMON
  115. tristate
  116. config REED_SOLOMON_ENC8
  117. boolean
  118. config REED_SOLOMON_DEC8
  119. boolean
  120. config REED_SOLOMON_ENC16
  121. boolean
  122. config REED_SOLOMON_DEC16
  123. boolean
  124. #
  125. # BCH support is selected if needed
  126. #
  127. config BCH
  128. tristate
  129. config BCH_CONST_PARAMS
  130. boolean
  131. help
  132. Drivers may select this option to force specific constant
  133. values for parameters 'm' (Galois field order) and 't'
  134. (error correction capability). Those specific values must
  135. be set by declaring default values for symbols BCH_CONST_M
  136. and BCH_CONST_T.
  137. Doing so will enable extra compiler optimizations,
  138. improving encoding and decoding performance up to 2x for
  139. usual (m,t) values (typically such that m*t < 200).
  140. When this option is selected, the BCH library supports
  141. only a single (m,t) configuration. This is mainly useful
  142. for NAND flash board drivers requiring known, fixed BCH
  143. parameters.
  144. config BCH_CONST_M
  145. int
  146. range 5 15
  147. help
  148. Constant value for Galois field order 'm'. If 'k' is the
  149. number of data bits to protect, 'm' should be chosen such
  150. that (k + m*t) <= 2**m - 1.
  151. Drivers should declare a default value for this symbol if
  152. they select option BCH_CONST_PARAMS.
  153. config BCH_CONST_T
  154. int
  155. help
  156. Constant value for error correction capability in bits 't'.
  157. Drivers should declare a default value for this symbol if
  158. they select option BCH_CONST_PARAMS.
  159. #
  160. # Textsearch support is select'ed if needed
  161. #
  162. config TEXTSEARCH
  163. boolean
  164. config TEXTSEARCH_KMP
  165. tristate
  166. config TEXTSEARCH_BM
  167. tristate
  168. config TEXTSEARCH_FSM
  169. tristate
  170. config BTREE
  171. boolean
  172. config HAS_IOMEM
  173. boolean
  174. depends on !NO_IOMEM
  175. default y
  176. config HAS_IOPORT
  177. boolean
  178. depends on HAS_IOMEM && !NO_IOPORT
  179. default y
  180. config HAS_DMA
  181. boolean
  182. depends on !NO_DMA
  183. default y
  184. config CHECK_SIGNATURE
  185. bool
  186. config CPUMASK_OFFSTACK
  187. bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
  188. help
  189. Use dynamic allocation for cpumask_var_t, instead of putting
  190. them on the stack. This is a bit more expensive, but avoids
  191. stack overflow.
  192. config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
  193. bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
  194. depends on EXPERIMENTAL && BROKEN
  195. #
  196. # Netlink attribute parsing support is select'ed if needed
  197. #
  198. config NLATTR
  199. bool
  200. #
  201. # Generic 64-bit atomic support is selected if needed
  202. #
  203. config GENERIC_ATOMIC64
  204. bool
  205. config LRU_CACHE
  206. tristate
  207. config AVERAGE
  208. bool
  209. endmenu