Kconfig 13 KB

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