]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # Library configuration | |
3 | # | |
4 | ||
4370aa4a LJ |
5 | config BINARY_PRINTF |
6 | def_bool n | |
7 | ||
1da177e4 LT |
8 | menu "Library routines" |
9 | ||
f5e70d0f DW |
10 | config RAID6_PQ |
11 | tristate | |
12 | ||
a5cfc1ec AM |
13 | config BITREVERSE |
14 | tristate | |
15 | ||
556d2f05 | 16 | config HAVE_ARCH_BITREVERSE |
841c0090 | 17 | bool |
556d2f05 YW |
18 | default n |
19 | depends on BITREVERSE | |
20 | help | |
9e522c0d AM |
21 | This option enables the use of hardware bit-reversal instructions on |
22 | architectures which support such operations. | |
556d2f05 | 23 | |
8759ef32 | 24 | config RATIONAL |
6341e62b | 25 | bool |
8759ef32 | 26 | |
2922585b DM |
27 | config GENERIC_STRNCPY_FROM_USER |
28 | bool | |
29 | ||
a08c5356 LT |
30 | config GENERIC_STRNLEN_USER |
31 | bool | |
32 | ||
4cd5773a AS |
33 | config GENERIC_NET_UTILS |
34 | bool | |
35 | ||
19870def | 36 | config GENERIC_FIND_FIRST_BIT |
9ba16087 | 37 | bool |
19870def | 38 | |
b923650b MT |
39 | config NO_GENERIC_PCI_IOPORT_MAP |
40 | bool | |
41 | ||
66eab4df MT |
42 | config GENERIC_PCI_IOMAP |
43 | bool | |
44 | ||
4673ca8e MT |
45 | config GENERIC_IOMAP |
46 | bool | |
66eab4df | 47 | select GENERIC_PCI_IOMAP |
4673ca8e | 48 | |
087fafd1 | 49 | config GENERIC_IO |
6341e62b | 50 | bool |
087fafd1 RW |
51 | default n |
52 | ||
4ccf4bea WS |
53 | config STMP_DEVICE |
54 | bool | |
55 | ||
22b361d1 | 56 | config PERCPU_RWSEM |
6341e62b | 57 | bool |
22b361d1 | 58 | |
bc08b449 LT |
59 | config ARCH_USE_CMPXCHG_LOCKREF |
60 | bool | |
61 | ||
72d93104 LT |
62 | config ARCH_HAS_FAST_MULTIPLIER |
63 | bool | |
64 | ||
1da177e4 LT |
65 | config CRC_CCITT |
66 | tristate "CRC-CCITT functions" | |
67 | help | |
68 | This option is provided for the case where no in-kernel-tree | |
69 | modules require CRC-CCITT functions, but a module built outside | |
70 | the kernel tree does. Such modules that use library CRC-CCITT | |
71 | functions require M here. | |
72 | ||
7657ec1f EP |
73 | config CRC16 |
74 | tristate "CRC16 functions" | |
75 | help | |
76 | This option is provided for the case where no in-kernel-tree | |
77 | modules require CRC16 functions, but a module built outside | |
78 | the kernel tree does. Such modules that use library CRC16 | |
79 | functions require M here. | |
80 | ||
f11f594e MP |
81 | config CRC_T10DIF |
82 | tristate "CRC calculation for the T10 Data Integrity Field" | |
68411521 HX |
83 | select CRYPTO |
84 | select CRYPTO_CRCT10DIF | |
f11f594e MP |
85 | help |
86 | This option is only needed if a module that's not in the | |
87 | kernel tree needs to calculate CRC checks for use with the | |
88 | SCSI data integrity subsystem. | |
89 | ||
3e7cbae7 ID |
90 | config CRC_ITU_T |
91 | tristate "CRC ITU-T V.41 functions" | |
92 | help | |
93 | This option is provided for the case where no in-kernel-tree | |
94 | modules require CRC ITU-T V.41 functions, but a module built outside | |
95 | the kernel tree does. Such modules that use library CRC ITU-T V.41 | |
96 | functions require M here. | |
97 | ||
1da177e4 | 98 | config CRC32 |
46c5801e | 99 | tristate "CRC32/CRC32c functions" |
1da177e4 | 100 | default y |
906d66df | 101 | select BITREVERSE |
1da177e4 LT |
102 | help |
103 | This option is provided for the case where no in-kernel-tree | |
46c5801e DW |
104 | modules require CRC32/CRC32c functions, but a module built outside |
105 | the kernel tree does. Such modules that use library CRC32/CRC32c | |
106 | functions require M here. | |
1da177e4 | 107 | |
3863ef31 BP |
108 | config CRC32_SELFTEST |
109 | bool "CRC32 perform self test on init" | |
110 | default n | |
111 | depends on CRC32 | |
112 | help | |
113 | This option enables the CRC32 library functions to perform a | |
114 | self test on initialization. The self test computes crc32_le | |
115 | and crc32_be over byte strings with random alignment and length | |
116 | and computes the total elapsed time and number of bytes processed. | |
117 | ||
5cde7656 DW |
118 | choice |
119 | prompt "CRC32 implementation" | |
120 | depends on CRC32 | |
121 | default CRC32_SLICEBY8 | |
82edb4ba DW |
122 | help |
123 | This option allows a kernel builder to override the default choice | |
124 | of CRC32 algorithm. Choose the default ("slice by 8") unless you | |
125 | know that you need one of the others. | |
5cde7656 DW |
126 | |
127 | config CRC32_SLICEBY8 | |
128 | bool "Slice by 8 bytes" | |
129 | help | |
130 | Calculate checksum 8 bytes at a time with a clever slicing algorithm. | |
131 | This is the fastest algorithm, but comes with a 8KiB lookup table. | |
132 | Most modern processors have enough cache to hold this table without | |
133 | thrashing the cache. | |
134 | ||
135 | This is the default implementation choice. Choose this one unless | |
136 | you have a good reason not to. | |
137 | ||
138 | config CRC32_SLICEBY4 | |
139 | bool "Slice by 4 bytes" | |
140 | help | |
141 | Calculate checksum 4 bytes at a time with a clever slicing algorithm. | |
142 | This is a bit slower than slice by 8, but has a smaller 4KiB lookup | |
143 | table. | |
144 | ||
145 | Only choose this option if you know what you are doing. | |
146 | ||
147 | config CRC32_SARWATE | |
148 | bool "Sarwate's Algorithm (one byte at a time)" | |
149 | help | |
150 | Calculate checksum a byte at a time using Sarwate's algorithm. This | |
151 | is not particularly fast, but has a small 256 byte lookup table. | |
152 | ||
153 | Only choose this option if you know what you are doing. | |
154 | ||
155 | config CRC32_BIT | |
156 | bool "Classic Algorithm (one bit at a time)" | |
157 | help | |
158 | Calculate checksum one bit at a time. This is VERY slow, but has | |
159 | no lookup table. This is provided as a debugging option. | |
160 | ||
161 | Only choose this option if you are debugging crc32. | |
162 | ||
163 | endchoice | |
164 | ||
ad241528 JN |
165 | config CRC7 |
166 | tristate "CRC7 functions" | |
167 | help | |
168 | This option is provided for the case where no in-kernel-tree | |
169 | modules require CRC7 functions, but a module built outside | |
170 | the kernel tree does. Such modules that use library CRC7 | |
171 | functions require M here. | |
172 | ||
1da177e4 LT |
173 | config LIBCRC32C |
174 | tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" | |
93027354 | 175 | select CRYPTO |
69c35efc | 176 | select CRYPTO_CRC32C |
1da177e4 LT |
177 | help |
178 | This option is provided for the case where no in-kernel-tree | |
179 | modules require CRC32c functions, but a module built outside the | |
180 | kernel tree does. Such modules that use library CRC32c functions | |
181 | require M here. See Castagnoli93. | |
182 | Module will be libcrc32c. | |
183 | ||
7150962d AS |
184 | config CRC8 |
185 | tristate "CRC8 function" | |
186 | help | |
187 | This option provides CRC8 function. Drivers may select this | |
188 | when they need to do cyclic redundancy check according CRC8 | |
189 | algorithm. Module will be called crc8. | |
190 | ||
e65e1fc2 AV |
191 | config AUDIT_GENERIC |
192 | bool | |
193 | depends on AUDIT && !AUDIT_ARCH | |
194 | default y | |
195 | ||
4b588411 AT |
196 | config AUDIT_ARCH_COMPAT_GENERIC |
197 | bool | |
198 | default n | |
199 | ||
200 | config AUDIT_COMPAT_GENERIC | |
201 | bool | |
202 | depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT | |
203 | default y | |
204 | ||
a6a9c0f1 DB |
205 | config RANDOM32_SELFTEST |
206 | bool "PRNG perform self test on init" | |
207 | default n | |
208 | help | |
209 | This option enables the 32 bit PRNG library functions to perform a | |
210 | self test on initialization. | |
211 | ||
1da177e4 LT |
212 | # |
213 | # compression support is select'ed if needed | |
214 | # | |
215 | config ZLIB_INFLATE | |
216 | tristate | |
217 | ||
218 | config ZLIB_DEFLATE | |
219 | tristate | |
220 | ||
64c70b1c RP |
221 | config LZO_COMPRESS |
222 | tristate | |
223 | ||
224 | config LZO_DECOMPRESS | |
225 | tristate | |
226 | ||
c72ac7a1 CM |
227 | config LZ4_COMPRESS |
228 | tristate | |
229 | ||
230 | config LZ4HC_COMPRESS | |
231 | tristate | |
232 | ||
e76e1fdf KL |
233 | config LZ4_DECOMPRESS |
234 | tristate | |
235 | ||
24fa0402 LC |
236 | source "lib/xz/Kconfig" |
237 | ||
c8531ab3 PA |
238 | # |
239 | # These all provide a common interface (hence the apparent duplication with | |
240 | # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) | |
241 | # | |
242 | config DECOMPRESS_GZIP | |
7856a16e | 243 | select ZLIB_INFLATE |
c8531ab3 PA |
244 | tristate |
245 | ||
246 | config DECOMPRESS_BZIP2 | |
247 | tristate | |
248 | ||
249 | config DECOMPRESS_LZMA | |
250 | tristate | |
251 | ||
3ebe1243 LC |
252 | config DECOMPRESS_XZ |
253 | select XZ_DEC | |
254 | tristate | |
255 | ||
cacb246f AT |
256 | config DECOMPRESS_LZO |
257 | select LZO_DECOMPRESS | |
258 | tristate | |
259 | ||
e76e1fdf KL |
260 | config DECOMPRESS_LZ4 |
261 | select LZ4_DECOMPRESS | |
262 | tristate | |
263 | ||
f14f75b8 JS |
264 | # |
265 | # Generic allocator support is selected if needed | |
266 | # | |
267 | config GENERIC_ALLOCATOR | |
6341e62b | 268 | bool |
f14f75b8 | 269 | |
1da177e4 LT |
270 | # |
271 | # reed solomon support is select'ed if needed | |
272 | # | |
273 | config REED_SOLOMON | |
274 | tristate | |
275 | ||
276 | config REED_SOLOMON_ENC8 | |
6341e62b | 277 | bool |
1da177e4 LT |
278 | |
279 | config REED_SOLOMON_DEC8 | |
6341e62b | 280 | bool |
1da177e4 LT |
281 | |
282 | config REED_SOLOMON_ENC16 | |
6341e62b | 283 | bool |
1da177e4 LT |
284 | |
285 | config REED_SOLOMON_DEC16 | |
6341e62b | 286 | bool |
1da177e4 | 287 | |
437aa565 ID |
288 | # |
289 | # BCH support is selected if needed | |
290 | # | |
291 | config BCH | |
292 | tristate | |
293 | ||
294 | config BCH_CONST_PARAMS | |
6341e62b | 295 | bool |
437aa565 ID |
296 | help |
297 | Drivers may select this option to force specific constant | |
298 | values for parameters 'm' (Galois field order) and 't' | |
299 | (error correction capability). Those specific values must | |
300 | be set by declaring default values for symbols BCH_CONST_M | |
301 | and BCH_CONST_T. | |
302 | Doing so will enable extra compiler optimizations, | |
303 | improving encoding and decoding performance up to 2x for | |
304 | usual (m,t) values (typically such that m*t < 200). | |
305 | When this option is selected, the BCH library supports | |
306 | only a single (m,t) configuration. This is mainly useful | |
307 | for NAND flash board drivers requiring known, fixed BCH | |
308 | parameters. | |
309 | ||
310 | config BCH_CONST_M | |
311 | int | |
312 | range 5 15 | |
313 | help | |
314 | Constant value for Galois field order 'm'. If 'k' is the | |
315 | number of data bits to protect, 'm' should be chosen such | |
316 | that (k + m*t) <= 2**m - 1. | |
317 | Drivers should declare a default value for this symbol if | |
318 | they select option BCH_CONST_PARAMS. | |
319 | ||
320 | config BCH_CONST_T | |
321 | int | |
322 | help | |
323 | Constant value for error correction capability in bits 't'. | |
324 | Drivers should declare a default value for this symbol if | |
325 | they select option BCH_CONST_PARAMS. | |
326 | ||
f7704347 DM |
327 | # |
328 | # Textsearch support is select'ed if needed | |
329 | # | |
2de4ff7b | 330 | config TEXTSEARCH |
6341e62b | 331 | bool |
1da177e4 | 332 | |
df3fb93a | 333 | config TEXTSEARCH_KMP |
f7704347 | 334 | tristate |
df3fb93a | 335 | |
8082e4ed | 336 | config TEXTSEARCH_BM |
29cb9f9c | 337 | tristate |
8082e4ed | 338 | |
6408f79c | 339 | config TEXTSEARCH_FSM |
f7704347 | 340 | tristate |
6408f79c | 341 | |
5db53f3e | 342 | config BTREE |
6341e62b | 343 | bool |
5db53f3e | 344 | |
a88cc108 | 345 | config INTERVAL_TREE |
6341e62b | 346 | bool |
a88cc108 CW |
347 | help |
348 | Simple, embeddable, interval-tree. Can find the start of an | |
349 | overlapping range in log(n) time and then iterate over all | |
350 | overlapping nodes. The algorithm is implemented as an | |
351 | augmented rbtree. | |
352 | ||
353 | See: | |
354 | ||
355 | Documentation/rbtree.txt | |
356 | ||
357 | for more information. | |
358 | ||
3cb98950 DH |
359 | config ASSOCIATIVE_ARRAY |
360 | bool | |
361 | help | |
362 | Generic associative array. Can be searched and iterated over whilst | |
363 | it is being modified. It is also reasonably quick to search and | |
364 | modify. The algorithms are non-recursive, and the trees are highly | |
365 | capacious. | |
366 | ||
367 | See: | |
368 | ||
369 | Documentation/assoc_array.txt | |
370 | ||
371 | for more information. | |
372 | ||
5ea81769 | 373 | config HAS_IOMEM |
6341e62b | 374 | bool |
5ea81769 | 375 | depends on !NO_IOMEM |
087fafd1 | 376 | select GENERIC_IO |
5ea81769 AV |
377 | default y |
378 | ||
ce816fa8 | 379 | config HAS_IOPORT_MAP |
6341e62b | 380 | bool |
ce816fa8 | 381 | depends on HAS_IOMEM && !NO_IOPORT_MAP |
ee36c2bf AV |
382 | default y |
383 | ||
411f0f3e | 384 | config HAS_DMA |
6341e62b | 385 | bool |
411f0f3e HC |
386 | depends on !NO_DMA |
387 | default y | |
388 | ||
928923c7 GU |
389 | config CHECK_SIGNATURE |
390 | bool | |
391 | ||
aab46da0 RR |
392 | config CPUMASK_OFFSTACK |
393 | bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS | |
394 | help | |
395 | Use dynamic allocation for cpumask_var_t, instead of putting | |
396 | them on the stack. This is a bit more expensive, but avoids | |
397 | stack overflow. | |
398 | ||
c39649c3 BH |
399 | config CPU_RMAP |
400 | bool | |
401 | depends on SMP | |
402 | ||
75957ba3 TH |
403 | config DQL |
404 | bool | |
405 | ||
b0125085 GS |
406 | config GLOB |
407 | bool | |
408 | # This actually supports modular compilation, but the module overhead | |
409 | # is ridiculous for the amount of code involved. Until an out-of-tree | |
410 | # driver asks for it, we'll just link it directly it into the kernel | |
411 | # when required. Since we're ignoring out-of-tree users, there's also | |
412 | # no need bother prompting for a manual decision: | |
413 | # prompt "glob_match() function" | |
414 | help | |
415 | This option provides a glob_match function for performing | |
416 | simple text pattern matching. It originated in the ATA code | |
417 | to blacklist particular drive models, but other device drivers | |
418 | may need similar functionality. | |
419 | ||
420 | All drivers in the Linux kernel tree that require this function | |
421 | should automatically select this option. Say N unless you | |
422 | are compiling an out-of tree driver which tells you that it | |
423 | depends on this. | |
424 | ||
5f9be824 GS |
425 | config GLOB_SELFTEST |
426 | bool "glob self-test on init" | |
427 | default n | |
428 | depends on GLOB | |
429 | help | |
430 | This option enables a simple self-test of the glob_match | |
431 | function on startup. It is primarily useful for people | |
432 | working on the code to ensure they haven't introduced any | |
433 | regressions. | |
434 | ||
435 | It only adds a little bit of code and slows kernel boot (or | |
436 | module load) by a small amount, so you're welcome to play with | |
437 | it, but you probably don't need it. | |
438 | ||
e9cc8bdd GU |
439 | # |
440 | # Netlink attribute parsing support is select'ed if needed | |
441 | # | |
442 | config NLATTR | |
443 | bool | |
444 | ||
09d4e0ed PM |
445 | # |
446 | # Generic 64-bit atomic support is selected if needed | |
447 | # | |
448 | config GENERIC_ATOMIC64 | |
449 | bool | |
450 | ||
7463449b CM |
451 | config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE |
452 | def_bool y if GENERIC_ATOMIC64 | |
453 | ||
b411b363 PR |
454 | config LRU_CACHE |
455 | tristate | |
456 | ||
c5485a7e | 457 | config AVERAGE |
a7a9a24d MB |
458 | bool "Averaging functions" |
459 | help | |
460 | This option is provided for the case where no in-kernel-tree | |
461 | modules require averaging functions, but a module built outside | |
462 | the kernel tree does. Such modules that use library averaging | |
463 | functions require Y here. | |
464 | ||
465 | If unsure, say N. | |
c5485a7e | 466 | |
c6df4b17 DM |
467 | config CLZ_TAB |
468 | bool | |
469 | ||
10f8113e | 470 | config CORDIC |
d89ce936 | 471 | tristate "CORDIC algorithm" |
10f8113e | 472 | help |
435a95c5 MW |
473 | This option provides an implementation of the CORDIC algorithm; |
474 | calculations are in fixed point. Module will be called cordic. | |
10f8113e | 475 | |
9c1c21a0 A |
476 | config DDR |
477 | bool "JEDEC DDR data" | |
478 | help | |
479 | Data from JEDEC specs for DDR SDRAM memories, | |
480 | particularly the AC timing parameters and addressing | |
481 | information. This data is useful for drivers handling | |
482 | DDR SDRAM controllers. | |
483 | ||
d9c46b18 | 484 | config MPILIB |
2e5f094b | 485 | tristate |
c6df4b17 | 486 | select CLZ_TAB |
d9c46b18 DK |
487 | help |
488 | Multiprecision maths library from GnuPG. | |
489 | It is used to implement RSA digital signature verification, | |
490 | which is used by IMA/EVM digital signature extension. | |
491 | ||
5e8898e9 | 492 | config SIGNATURE |
2e5f094b | 493 | tristate |
0d1f64f6 DK |
494 | depends on KEYS |
495 | select CRYPTO | |
be440ec7 | 496 | select CRYPTO_SHA1 |
051dbb91 DK |
497 | select MPILIB |
498 | help | |
499 | Digital signature verification. Currently only RSA is supported. | |
500 | Implementation is done using GnuPG MPI library | |
501 | ||
ab253839 DD |
502 | # |
503 | # libfdt files, only selected if needed. | |
504 | # | |
505 | config LIBFDT | |
506 | bool | |
507 | ||
a77ad6ea DH |
508 | config OID_REGISTRY |
509 | tristate | |
510 | help | |
511 | Enable fast lookup object identifier registry. | |
512 | ||
0635eb8a MG |
513 | config UCS2_STRING |
514 | tristate | |
515 | ||
ee89bd6b GU |
516 | source "lib/fonts/Kconfig" |
517 | ||
308c09f1 LA |
518 | # |
519 | # sg chaining option | |
520 | # | |
521 | ||
522 | config ARCH_HAS_SG_CHAIN | |
523 | def_bool n | |
524 | ||
2de4ff7b | 525 | endmenu |