Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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 XXHASH
  152. tristate
  153. config AUDIT_GENERIC
  154. bool
  155. depends on AUDIT && !AUDIT_ARCH
  156. default y
  157. config AUDIT_ARCH_COMPAT_GENERIC
  158. bool
  159. default n
  160. config AUDIT_COMPAT_GENERIC
  161. bool
  162. depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
  163. default y
  164. config RANDOM32_SELFTEST
  165. bool "PRNG perform self test on init"
  166. default n
  167. help
  168. This option enables the 32 bit PRNG library functions to perform a
  169. self test on initialization.
  170. #
  171. # compression support is select'ed if needed
  172. #
  173. config 842_COMPRESS
  174. select CRC32
  175. tristate
  176. config 842_DECOMPRESS
  177. select CRC32
  178. tristate
  179. config ZLIB_INFLATE
  180. tristate
  181. config ZLIB_DEFLATE
  182. tristate
  183. select BITREVERSE
  184. config LZO_COMPRESS
  185. tristate
  186. config LZO_DECOMPRESS
  187. tristate
  188. config LZ4_COMPRESS
  189. tristate
  190. config LZ4HC_COMPRESS
  191. tristate
  192. config LZ4_DECOMPRESS
  193. tristate
  194. config ZSTD_COMPRESS
  195. select XXHASH
  196. tristate
  197. config ZSTD_DECOMPRESS
  198. select XXHASH
  199. tristate
  200. source "lib/xz/Kconfig"
  201. #
  202. # These all provide a common interface (hence the apparent duplication with
  203. # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
  204. #
  205. config DECOMPRESS_GZIP
  206. select ZLIB_INFLATE
  207. tristate
  208. config DECOMPRESS_BZIP2
  209. tristate
  210. config DECOMPRESS_LZMA
  211. tristate
  212. config DECOMPRESS_XZ
  213. select XZ_DEC
  214. tristate
  215. config DECOMPRESS_LZO
  216. select LZO_DECOMPRESS
  217. tristate
  218. config DECOMPRESS_LZ4
  219. select LZ4_DECOMPRESS
  220. tristate
  221. #
  222. # Generic allocator support is selected if needed
  223. #
  224. config GENERIC_ALLOCATOR
  225. bool
  226. #
  227. # reed solomon support is select'ed if needed
  228. #
  229. config REED_SOLOMON
  230. tristate
  231. config REED_SOLOMON_ENC8
  232. bool
  233. config REED_SOLOMON_DEC8
  234. bool
  235. config REED_SOLOMON_ENC16
  236. bool
  237. config REED_SOLOMON_DEC16
  238. bool
  239. #
  240. # BCH support is selected if needed
  241. #
  242. config BCH
  243. tristate
  244. config BCH_CONST_PARAMS
  245. bool
  246. help
  247. Drivers may select this option to force specific constant
  248. values for parameters 'm' (Galois field order) and 't'
  249. (error correction capability). Those specific values must
  250. be set by declaring default values for symbols BCH_CONST_M
  251. and BCH_CONST_T.
  252. Doing so will enable extra compiler optimizations,
  253. improving encoding and decoding performance up to 2x for
  254. usual (m,t) values (typically such that m*t < 200).
  255. When this option is selected, the BCH library supports
  256. only a single (m,t) configuration. This is mainly useful
  257. for NAND flash board drivers requiring known, fixed BCH
  258. parameters.
  259. config BCH_CONST_M
  260. int
  261. range 5 15
  262. help
  263. Constant value for Galois field order 'm'. If 'k' is the
  264. number of data bits to protect, 'm' should be chosen such
  265. that (k + m*t) <= 2**m - 1.
  266. Drivers should declare a default value for this symbol if
  267. they select option BCH_CONST_PARAMS.
  268. config BCH_CONST_T
  269. int
  270. help
  271. Constant value for error correction capability in bits 't'.
  272. Drivers should declare a default value for this symbol if
  273. they select option BCH_CONST_PARAMS.
  274. #
  275. # Textsearch support is select'ed if needed
  276. #
  277. config TEXTSEARCH
  278. bool
  279. config TEXTSEARCH_KMP
  280. tristate
  281. config TEXTSEARCH_BM
  282. tristate
  283. config TEXTSEARCH_FSM
  284. tristate
  285. config BTREE
  286. bool
  287. config INTERVAL_TREE
  288. bool
  289. help
  290. Simple, embeddable, interval-tree. Can find the start of an
  291. overlapping range in log(n) time and then iterate over all
  292. overlapping nodes. The algorithm is implemented as an
  293. augmented rbtree.
  294. See:
  295. Documentation/rbtree.txt
  296. for more information.
  297. config RADIX_TREE_MULTIORDER
  298. bool
  299. config ASSOCIATIVE_ARRAY
  300. bool
  301. help
  302. Generic associative array. Can be searched and iterated over whilst
  303. it is being modified. It is also reasonably quick to search and
  304. modify. The algorithms are non-recursive, and the trees are highly
  305. capacious.
  306. See:
  307. Documentation/assoc_array.txt
  308. for more information.
  309. config HAS_IOMEM
  310. bool
  311. depends on !NO_IOMEM
  312. select GENERIC_IO
  313. default y
  314. config HAS_IOPORT_MAP
  315. bool
  316. depends on HAS_IOMEM && !NO_IOPORT_MAP
  317. default y
  318. config HAS_DMA
  319. bool
  320. depends on !NO_DMA
  321. default y
  322. config CHECK_SIGNATURE
  323. bool
  324. config CPUMASK_OFFSTACK
  325. bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
  326. help
  327. Use dynamic allocation for cpumask_var_t, instead of putting
  328. them on the stack. This is a bit more expensive, but avoids
  329. stack overflow.
  330. config CPU_RMAP
  331. bool
  332. depends on SMP
  333. config DQL
  334. bool
  335. config GLOB
  336. bool
  337. # This actually supports modular compilation, but the module overhead
  338. # is ridiculous for the amount of code involved. Until an out-of-tree
  339. # driver asks for it, we'll just link it directly it into the kernel
  340. # when required. Since we're ignoring out-of-tree users, there's also
  341. # no need bother prompting for a manual decision:
  342. # prompt "glob_match() function"
  343. help
  344. This option provides a glob_match function for performing
  345. simple text pattern matching. It originated in the ATA code
  346. to blacklist particular drive models, but other device drivers
  347. may need similar functionality.
  348. All drivers in the Linux kernel tree that require this function
  349. should automatically select this option. Say N unless you
  350. are compiling an out-of tree driver which tells you that it
  351. depends on this.
  352. config GLOB_SELFTEST
  353. bool "glob self-test on init"
  354. default n
  355. depends on GLOB
  356. help
  357. This option enables a simple self-test of the glob_match
  358. function on startup. It is primarily useful for people
  359. working on the code to ensure they haven't introduced any
  360. regressions.
  361. It only adds a little bit of code and slows kernel boot (or
  362. module load) by a small amount, so you're welcome to play with
  363. it, but you probably don't need it.
  364. #
  365. # Netlink attribute parsing support is select'ed if needed
  366. #
  367. config NLATTR
  368. bool
  369. #
  370. # Generic 64-bit atomic support is selected if needed
  371. #
  372. config GENERIC_ATOMIC64
  373. bool
  374. config LRU_CACHE
  375. tristate
  376. config CLZ_TAB
  377. bool
  378. config CORDIC
  379. tristate "CORDIC algorithm"
  380. help
  381. This option provides an implementation of the CORDIC algorithm;
  382. calculations are in fixed point. Module will be called cordic.
  383. config DDR
  384. bool "JEDEC DDR data"
  385. help
  386. Data from JEDEC specs for DDR SDRAM memories,
  387. particularly the AC timing parameters and addressing
  388. information. This data is useful for drivers handling
  389. DDR SDRAM controllers.
  390. config IRQ_POLL
  391. bool "IRQ polling library"
  392. help
  393. Helper library to poll interrupt mitigation using polling.
  394. config MPILIB
  395. tristate
  396. select CLZ_TAB
  397. help
  398. Multiprecision maths library from GnuPG.
  399. It is used to implement RSA digital signature verification,
  400. which is used by IMA/EVM digital signature extension.
  401. config SIGNATURE
  402. tristate
  403. depends on KEYS
  404. select CRYPTO
  405. select CRYPTO_SHA1
  406. select MPILIB
  407. help
  408. Digital signature verification. Currently only RSA is supported.
  409. Implementation is done using GnuPG MPI library
  410. #
  411. # libfdt files, only selected if needed.
  412. #
  413. config LIBFDT
  414. bool
  415. config OID_REGISTRY
  416. tristate
  417. help
  418. Enable fast lookup object identifier registry.
  419. config UCS2_STRING
  420. tristate
  421. source "lib/fonts/Kconfig"
  422. config SG_SPLIT
  423. def_bool n
  424. help
  425. Provides a helper to split scatterlists into chunks, each chunk being
  426. a scatterlist. This should be selected by a driver or an API which
  427. whishes to split a scatterlist amongst multiple DMA channels.
  428. config SG_POOL
  429. def_bool n
  430. help
  431. Provides a helper to allocate chained scatterlists. This should be
  432. selected by a driver or an API which whishes to allocate chained
  433. scatterlist.
  434. #
  435. # sg chaining option
  436. #
  437. config ARCH_HAS_SG_CHAIN
  438. def_bool n
  439. config ARCH_HAS_PMEM_API
  440. bool
  441. config ARCH_HAS_MMIO_FLUSH
  442. bool
  443. config STACKDEPOT
  444. bool
  445. select STACKTRACE
  446. config SBITMAP
  447. bool
  448. config QMI_ENCDEC
  449. bool "QMI Encode/Decode Library"
  450. help
  451. Library to encode & decode QMI messages from within
  452. the kernel. The kernel drivers encode the C structure into
  453. QMI message wire format and then send it over a transport.
  454. The kernel drivers receive the QMI message over a transport
  455. and then decode it into a C structure.
  456. config QMI_ENCDEC_DEBUG
  457. bool "QMI Encode/Decode Library Debug"
  458. help
  459. Kernel config option to enable debugging QMI Encode/Decode
  460. library. This will log the information regarding the element
  461. and message being encoded & decoded.
  462. endmenu