Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  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 HAVE_ARCH_BITREVERSE
  12. bool
  13. default n
  14. depends on BITREVERSE
  15. help
  16. This option enables the use of hardware bit-reversal instructions on
  17. architectures which support such operations.
  18. config RATIONAL
  19. bool
  20. config GENERIC_STRNCPY_FROM_USER
  21. bool
  22. config GENERIC_STRNLEN_USER
  23. bool
  24. config GENERIC_NET_UTILS
  25. bool
  26. config GENERIC_FIND_FIRST_BIT
  27. bool
  28. config NO_GENERIC_PCI_IOPORT_MAP
  29. bool
  30. config GENERIC_PCI_IOMAP
  31. bool
  32. config GENERIC_IOMAP
  33. bool
  34. select GENERIC_PCI_IOMAP
  35. config GENERIC_IO
  36. bool
  37. default n
  38. config STMP_DEVICE
  39. bool
  40. config ARCH_USE_CMPXCHG_LOCKREF
  41. bool
  42. config ARCH_HAS_FAST_MULTIPLIER
  43. bool
  44. config CRC_CCITT
  45. tristate "CRC-CCITT functions"
  46. help
  47. This option is provided for the case where no in-kernel-tree
  48. modules require CRC-CCITT functions, but a module built outside
  49. the kernel tree does. Such modules that use library CRC-CCITT
  50. functions require M here.
  51. config CRC16
  52. tristate "CRC16 functions"
  53. help
  54. This option is provided for the case where no in-kernel-tree
  55. modules require CRC16 functions, but a module built outside
  56. the kernel tree does. Such modules that use library CRC16
  57. functions require M here.
  58. config CRC_T10DIF
  59. tristate "CRC calculation for the T10 Data Integrity Field"
  60. select CRYPTO
  61. select CRYPTO_CRCT10DIF
  62. help
  63. This option is only needed if a module that's not in the
  64. kernel tree needs to calculate CRC checks for use with the
  65. SCSI data integrity subsystem.
  66. config CRC_ITU_T
  67. tristate "CRC ITU-T V.41 functions"
  68. help
  69. This option is provided for the case where no in-kernel-tree
  70. modules require CRC ITU-T V.41 functions, but a module built outside
  71. the kernel tree does. Such modules that use library CRC ITU-T V.41
  72. functions require M here.
  73. config CRC32
  74. tristate "CRC32/CRC32c functions"
  75. default y
  76. select BITREVERSE
  77. help
  78. This option is provided for the case where no in-kernel-tree
  79. modules require CRC32/CRC32c functions, but a module built outside
  80. the kernel tree does. Such modules that use library CRC32/CRC32c
  81. functions require M here.
  82. config CRC32_SELFTEST
  83. bool "CRC32 perform self test on init"
  84. default n
  85. depends on CRC32
  86. help
  87. This option enables the CRC32 library functions to perform a
  88. self test on initialization. The self test computes crc32_le
  89. and crc32_be over byte strings with random alignment and length
  90. and computes the total elapsed time and number of bytes processed.
  91. choice
  92. prompt "CRC32 implementation"
  93. depends on CRC32
  94. default CRC32_SLICEBY8
  95. help
  96. This option allows a kernel builder to override the default choice
  97. of CRC32 algorithm. Choose the default ("slice by 8") unless you
  98. know that you need one of the others.
  99. config CRC32_SLICEBY8
  100. bool "Slice by 8 bytes"
  101. help
  102. Calculate checksum 8 bytes at a time with a clever slicing algorithm.
  103. This is the fastest algorithm, but comes with a 8KiB lookup table.
  104. Most modern processors have enough cache to hold this table without
  105. thrashing the cache.
  106. This is the default implementation choice. Choose this one unless
  107. you have a good reason not to.
  108. config CRC32_SLICEBY4
  109. bool "Slice by 4 bytes"
  110. help
  111. Calculate checksum 4 bytes at a time with a clever slicing algorithm.
  112. This is a bit slower than slice by 8, but has a smaller 4KiB lookup
  113. table.
  114. Only choose this option if you know what you are doing.
  115. config CRC32_SARWATE
  116. bool "Sarwate's Algorithm (one byte at a time)"
  117. help
  118. Calculate checksum a byte at a time using Sarwate's algorithm. This
  119. is not particularly fast, but has a small 256 byte lookup table.
  120. Only choose this option if you know what you are doing.
  121. config CRC32_BIT
  122. bool "Classic Algorithm (one bit at a time)"
  123. help
  124. Calculate checksum one bit at a time. This is VERY slow, but has
  125. no lookup table. This is provided as a debugging option.
  126. Only choose this option if you are debugging crc32.
  127. endchoice
  128. config CRC7
  129. tristate "CRC7 functions"
  130. help
  131. This option is provided for the case where no in-kernel-tree
  132. modules require CRC7 functions, but a module built outside
  133. the kernel tree does. Such modules that use library CRC7
  134. functions require M here.
  135. config LIBCRC32C
  136. tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
  137. select CRYPTO
  138. select CRYPTO_CRC32C
  139. help
  140. This option is provided for the case where no in-kernel-tree
  141. modules require CRC32c functions, but a module built outside the
  142. kernel tree does. Such modules that use library CRC32c functions
  143. require M here. See Castagnoli93.
  144. Module will be libcrc32c.
  145. config CRC8
  146. tristate "CRC8 function"
  147. help
  148. This option provides CRC8 function. Drivers may select this
  149. when they need to do cyclic redundancy check according CRC8
  150. algorithm. Module will be called crc8.
  151. config AUDIT_GENERIC
  152. bool
  153. depends on AUDIT && !AUDIT_ARCH
  154. default y
  155. config AUDIT_ARCH_COMPAT_GENERIC
  156. bool
  157. default n
  158. config AUDIT_COMPAT_GENERIC
  159. bool
  160. depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
  161. default y
  162. config RANDOM32_SELFTEST
  163. bool "PRNG perform self test on init"
  164. default n
  165. help
  166. This option enables the 32 bit PRNG library functions to perform a
  167. self test on initialization.
  168. #
  169. # compression support is select'ed if needed
  170. #
  171. config 842_COMPRESS
  172. tristate
  173. config 842_DECOMPRESS
  174. tristate
  175. config ZLIB_INFLATE
  176. tristate
  177. config ZLIB_DEFLATE
  178. tristate
  179. config LZO_COMPRESS
  180. tristate
  181. config LZO_DECOMPRESS
  182. tristate
  183. config LZ4_COMPRESS
  184. tristate
  185. config LZ4HC_COMPRESS
  186. tristate
  187. config LZ4_DECOMPRESS
  188. tristate
  189. source "lib/xz/Kconfig"
  190. #
  191. # These all provide a common interface (hence the apparent duplication with
  192. # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
  193. #
  194. config DECOMPRESS_GZIP
  195. select ZLIB_INFLATE
  196. tristate
  197. config DECOMPRESS_BZIP2
  198. tristate
  199. config DECOMPRESS_LZMA
  200. tristate
  201. config DECOMPRESS_XZ
  202. select XZ_DEC
  203. tristate
  204. config DECOMPRESS_LZO
  205. select LZO_DECOMPRESS
  206. tristate
  207. config DECOMPRESS_LZ4
  208. select LZ4_DECOMPRESS
  209. tristate
  210. #
  211. # Generic allocator support is selected if needed
  212. #
  213. config GENERIC_ALLOCATOR
  214. bool
  215. #
  216. # reed solomon support is select'ed if needed
  217. #
  218. config REED_SOLOMON
  219. tristate
  220. config REED_SOLOMON_ENC8
  221. bool
  222. config REED_SOLOMON_DEC8
  223. bool
  224. config REED_SOLOMON_ENC16
  225. bool
  226. config REED_SOLOMON_DEC16
  227. bool
  228. #
  229. # BCH support is selected if needed
  230. #
  231. config BCH
  232. tristate
  233. config BCH_CONST_PARAMS
  234. bool
  235. help
  236. Drivers may select this option to force specific constant
  237. values for parameters 'm' (Galois field order) and 't'
  238. (error correction capability). Those specific values must
  239. be set by declaring default values for symbols BCH_CONST_M
  240. and BCH_CONST_T.
  241. Doing so will enable extra compiler optimizations,
  242. improving encoding and decoding performance up to 2x for
  243. usual (m,t) values (typically such that m*t < 200).
  244. When this option is selected, the BCH library supports
  245. only a single (m,t) configuration. This is mainly useful
  246. for NAND flash board drivers requiring known, fixed BCH
  247. parameters.
  248. config BCH_CONST_M
  249. int
  250. range 5 15
  251. help
  252. Constant value for Galois field order 'm'. If 'k' is the
  253. number of data bits to protect, 'm' should be chosen such
  254. that (k + m*t) <= 2**m - 1.
  255. Drivers should declare a default value for this symbol if
  256. they select option BCH_CONST_PARAMS.
  257. config BCH_CONST_T
  258. int
  259. help
  260. Constant value for error correction capability in bits 't'.
  261. Drivers should declare a default value for this symbol if
  262. they select option BCH_CONST_PARAMS.
  263. #
  264. # Textsearch support is select'ed if needed
  265. #
  266. config TEXTSEARCH
  267. bool
  268. config TEXTSEARCH_KMP
  269. tristate
  270. config TEXTSEARCH_BM
  271. tristate
  272. config TEXTSEARCH_FSM
  273. tristate
  274. config BTREE
  275. bool
  276. config INTERVAL_TREE
  277. bool
  278. help
  279. Simple, embeddable, interval-tree. Can find the start of an
  280. overlapping range in log(n) time and then iterate over all
  281. overlapping nodes. The algorithm is implemented as an
  282. augmented rbtree.
  283. See:
  284. Documentation/rbtree.txt
  285. for more information.
  286. config ASSOCIATIVE_ARRAY
  287. bool
  288. help
  289. Generic associative array. Can be searched and iterated over whilst
  290. it is being modified. It is also reasonably quick to search and
  291. modify. The algorithms are non-recursive, and the trees are highly
  292. capacious.
  293. See:
  294. Documentation/assoc_array.txt
  295. for more information.
  296. config HAS_IOMEM
  297. bool
  298. depends on !NO_IOMEM
  299. select GENERIC_IO
  300. default y
  301. config HAS_IOPORT_MAP
  302. bool
  303. depends on HAS_IOMEM && !NO_IOPORT_MAP
  304. default y
  305. config HAS_DMA
  306. bool
  307. depends on !NO_DMA
  308. default y
  309. config CHECK_SIGNATURE
  310. bool
  311. config CPUMASK_OFFSTACK
  312. bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
  313. help
  314. Use dynamic allocation for cpumask_var_t, instead of putting
  315. them on the stack. This is a bit more expensive, but avoids
  316. stack overflow.
  317. config CPU_RMAP
  318. bool
  319. depends on SMP
  320. config DQL
  321. bool
  322. config GLOB
  323. bool
  324. # This actually supports modular compilation, but the module overhead
  325. # is ridiculous for the amount of code involved. Until an out-of-tree
  326. # driver asks for it, we'll just link it directly it into the kernel
  327. # when required. Since we're ignoring out-of-tree users, there's also
  328. # no need bother prompting for a manual decision:
  329. # prompt "glob_match() function"
  330. help
  331. This option provides a glob_match function for performing
  332. simple text pattern matching. It originated in the ATA code
  333. to blacklist particular drive models, but other device drivers
  334. may need similar functionality.
  335. All drivers in the Linux kernel tree that require this function
  336. should automatically select this option. Say N unless you
  337. are compiling an out-of tree driver which tells you that it
  338. depends on this.
  339. config GLOB_SELFTEST
  340. bool "glob self-test on init"
  341. default n
  342. depends on GLOB
  343. help
  344. This option enables a simple self-test of the glob_match
  345. function on startup. It is primarily useful for people
  346. working on the code to ensure they haven't introduced any
  347. regressions.
  348. It only adds a little bit of code and slows kernel boot (or
  349. module load) by a small amount, so you're welcome to play with
  350. it, but you probably don't need it.
  351. #
  352. # Netlink attribute parsing support is select'ed if needed
  353. #
  354. config NLATTR
  355. bool
  356. #
  357. # Generic 64-bit atomic support is selected if needed
  358. #
  359. config GENERIC_ATOMIC64
  360. bool
  361. config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
  362. def_bool y if GENERIC_ATOMIC64
  363. config LRU_CACHE
  364. tristate
  365. config CLZ_TAB
  366. bool
  367. config CORDIC
  368. tristate "CORDIC algorithm"
  369. help
  370. This option provides an implementation of the CORDIC algorithm;
  371. calculations are in fixed point. Module will be called cordic.
  372. config DDR
  373. bool "JEDEC DDR data"
  374. help
  375. Data from JEDEC specs for DDR SDRAM memories,
  376. particularly the AC timing parameters and addressing
  377. information. This data is useful for drivers handling
  378. DDR SDRAM controllers.
  379. config MPILIB
  380. tristate
  381. select CLZ_TAB
  382. help
  383. Multiprecision maths library from GnuPG.
  384. It is used to implement RSA digital signature verification,
  385. which is used by IMA/EVM digital signature extension.
  386. config SIGNATURE
  387. tristate
  388. depends on KEYS
  389. select CRYPTO
  390. select CRYPTO_SHA1
  391. select MPILIB
  392. help
  393. Digital signature verification. Currently only RSA is supported.
  394. Implementation is done using GnuPG MPI library
  395. #
  396. # libfdt files, only selected if needed.
  397. #
  398. config LIBFDT
  399. bool
  400. config OID_REGISTRY
  401. tristate
  402. help
  403. Enable fast lookup object identifier registry.
  404. config UCS2_STRING
  405. tristate
  406. source "lib/fonts/Kconfig"
  407. config SG_SPLIT
  408. def_bool n
  409. help
  410. Provides a heler to split scatterlists into chunks, each chunk being a
  411. scatterlist. This should be selected by a driver or an API which
  412. whishes to split a scatterlist amongst multiple DMA channel.
  413. #
  414. # sg chaining option
  415. #
  416. config ARCH_HAS_SG_CHAIN
  417. def_bool n
  418. config ARCH_HAS_PMEM_API
  419. bool
  420. config ARCH_HAS_MMIO_FLUSH
  421. bool
  422. endmenu