]>
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 | ||
8759ef32 OS |
16 | config RATIONAL |
17 | boolean | |
18 | ||
2922585b DM |
19 | config GENERIC_STRNCPY_FROM_USER |
20 | bool | |
21 | ||
a08c5356 LT |
22 | config GENERIC_STRNLEN_USER |
23 | bool | |
24 | ||
4cd5773a AS |
25 | config GENERIC_NET_UTILS |
26 | bool | |
27 | ||
19870def | 28 | config GENERIC_FIND_FIRST_BIT |
9ba16087 | 29 | bool |
19870def | 30 | |
b923650b MT |
31 | config NO_GENERIC_PCI_IOPORT_MAP |
32 | bool | |
33 | ||
66eab4df MT |
34 | config GENERIC_PCI_IOMAP |
35 | bool | |
36 | ||
4673ca8e MT |
37 | config GENERIC_IOMAP |
38 | bool | |
66eab4df | 39 | select GENERIC_PCI_IOMAP |
4673ca8e | 40 | |
087fafd1 RW |
41 | config GENERIC_IO |
42 | boolean | |
43 | default n | |
44 | ||
4ccf4bea WS |
45 | config STMP_DEVICE |
46 | bool | |
47 | ||
22b361d1 ON |
48 | config PERCPU_RWSEM |
49 | boolean | |
50 | ||
1da177e4 LT |
51 | config CRC_CCITT |
52 | tristate "CRC-CCITT functions" | |
53 | help | |
54 | This option is provided for the case where no in-kernel-tree | |
55 | modules require CRC-CCITT functions, but a module built outside | |
56 | the kernel tree does. Such modules that use library CRC-CCITT | |
57 | functions require M here. | |
58 | ||
7657ec1f EP |
59 | config CRC16 |
60 | tristate "CRC16 functions" | |
61 | help | |
62 | This option is provided for the case where no in-kernel-tree | |
63 | modules require CRC16 functions, but a module built outside | |
64 | the kernel tree does. Such modules that use library CRC16 | |
65 | functions require M here. | |
66 | ||
f11f594e MP |
67 | config CRC_T10DIF |
68 | tristate "CRC calculation for the T10 Data Integrity Field" | |
2d31e518 TC |
69 | select CRYPTO |
70 | select CRYPTO_CRCT10DIF | |
f11f594e MP |
71 | help |
72 | This option is only needed if a module that's not in the | |
73 | kernel tree needs to calculate CRC checks for use with the | |
74 | SCSI data integrity subsystem. | |
75 | ||
3e7cbae7 ID |
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 | ||
1da177e4 | 84 | config CRC32 |
46c5801e | 85 | tristate "CRC32/CRC32c functions" |
1da177e4 | 86 | default y |
906d66df | 87 | select BITREVERSE |
1da177e4 LT |
88 | help |
89 | This option is provided for the case where no in-kernel-tree | |
46c5801e DW |
90 | modules require CRC32/CRC32c functions, but a module built outside |
91 | the kernel tree does. Such modules that use library CRC32/CRC32c | |
92 | functions require M here. | |
1da177e4 | 93 | |
3863ef31 BP |
94 | config CRC32_SELFTEST |
95 | bool "CRC32 perform self test on init" | |
96 | default n | |
97 | depends on CRC32 | |
98 | help | |
99 | This option enables the CRC32 library functions to perform a | |
100 | self test on initialization. The self test computes crc32_le | |
101 | and crc32_be over byte strings with random alignment and length | |
102 | and computes the total elapsed time and number of bytes processed. | |
103 | ||
5cde7656 DW |
104 | choice |
105 | prompt "CRC32 implementation" | |
106 | depends on CRC32 | |
107 | default CRC32_SLICEBY8 | |
82edb4ba DW |
108 | help |
109 | This option allows a kernel builder to override the default choice | |
110 | of CRC32 algorithm. Choose the default ("slice by 8") unless you | |
111 | know that you need one of the others. | |
5cde7656 DW |
112 | |
113 | config CRC32_SLICEBY8 | |
114 | bool "Slice by 8 bytes" | |
115 | help | |
116 | Calculate checksum 8 bytes at a time with a clever slicing algorithm. | |
117 | This is the fastest algorithm, but comes with a 8KiB lookup table. | |
118 | Most modern processors have enough cache to hold this table without | |
119 | thrashing the cache. | |
120 | ||
121 | This is the default implementation choice. Choose this one unless | |
122 | you have a good reason not to. | |
123 | ||
124 | config CRC32_SLICEBY4 | |
125 | bool "Slice by 4 bytes" | |
126 | help | |
127 | Calculate checksum 4 bytes at a time with a clever slicing algorithm. | |
128 | This is a bit slower than slice by 8, but has a smaller 4KiB lookup | |
129 | table. | |
130 | ||
131 | Only choose this option if you know what you are doing. | |
132 | ||
133 | config CRC32_SARWATE | |
134 | bool "Sarwate's Algorithm (one byte at a time)" | |
135 | help | |
136 | Calculate checksum a byte at a time using Sarwate's algorithm. This | |
137 | is not particularly fast, but has a small 256 byte lookup table. | |
138 | ||
139 | Only choose this option if you know what you are doing. | |
140 | ||
141 | config CRC32_BIT | |
142 | bool "Classic Algorithm (one bit at a time)" | |
143 | help | |
144 | Calculate checksum one bit at a time. This is VERY slow, but has | |
145 | no lookup table. This is provided as a debugging option. | |
146 | ||
147 | Only choose this option if you are debugging crc32. | |
148 | ||
149 | endchoice | |
150 | ||
ad241528 JN |
151 | config CRC7 |
152 | tristate "CRC7 functions" | |
153 | help | |
154 | This option is provided for the case where no in-kernel-tree | |
155 | modules require CRC7 functions, but a module built outside | |
156 | the kernel tree does. Such modules that use library CRC7 | |
157 | functions require M here. | |
158 | ||
1da177e4 LT |
159 | config LIBCRC32C |
160 | tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" | |
93027354 | 161 | select CRYPTO |
69c35efc | 162 | select CRYPTO_CRC32C |
1da177e4 LT |
163 | help |
164 | This option is provided for the case where no in-kernel-tree | |
165 | modules require CRC32c functions, but a module built outside the | |
166 | kernel tree does. Such modules that use library CRC32c functions | |
167 | require M here. See Castagnoli93. | |
168 | Module will be libcrc32c. | |
169 | ||
7150962d AS |
170 | config CRC8 |
171 | tristate "CRC8 function" | |
172 | help | |
173 | This option provides CRC8 function. Drivers may select this | |
174 | when they need to do cyclic redundancy check according CRC8 | |
175 | algorithm. Module will be called crc8. | |
176 | ||
e65e1fc2 AV |
177 | config AUDIT_GENERIC |
178 | bool | |
179 | depends on AUDIT && !AUDIT_ARCH | |
180 | default y | |
181 | ||
1da177e4 LT |
182 | # |
183 | # compression support is select'ed if needed | |
184 | # | |
185 | config ZLIB_INFLATE | |
186 | tristate | |
187 | ||
188 | config ZLIB_DEFLATE | |
189 | tristate | |
190 | ||
64c70b1c RP |
191 | config LZO_COMPRESS |
192 | tristate | |
193 | ||
194 | config LZO_DECOMPRESS | |
195 | tristate | |
196 | ||
e76e1fdf KL |
197 | config LZ4_DECOMPRESS |
198 | tristate | |
199 | ||
24fa0402 LC |
200 | source "lib/xz/Kconfig" |
201 | ||
c8531ab3 PA |
202 | # |
203 | # These all provide a common interface (hence the apparent duplication with | |
204 | # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) | |
205 | # | |
206 | config DECOMPRESS_GZIP | |
7856a16e | 207 | select ZLIB_INFLATE |
c8531ab3 PA |
208 | tristate |
209 | ||
210 | config DECOMPRESS_BZIP2 | |
211 | tristate | |
212 | ||
213 | config DECOMPRESS_LZMA | |
214 | tristate | |
215 | ||
3ebe1243 LC |
216 | config DECOMPRESS_XZ |
217 | select XZ_DEC | |
218 | tristate | |
219 | ||
cacb246f AT |
220 | config DECOMPRESS_LZO |
221 | select LZO_DECOMPRESS | |
222 | tristate | |
223 | ||
e76e1fdf KL |
224 | config DECOMPRESS_LZ4 |
225 | select LZ4_DECOMPRESS | |
226 | tristate | |
227 | ||
f14f75b8 JS |
228 | # |
229 | # Generic allocator support is selected if needed | |
230 | # | |
231 | config GENERIC_ALLOCATOR | |
232 | boolean | |
233 | ||
1da177e4 LT |
234 | # |
235 | # reed solomon support is select'ed if needed | |
236 | # | |
237 | config REED_SOLOMON | |
238 | tristate | |
239 | ||
240 | config REED_SOLOMON_ENC8 | |
241 | boolean | |
242 | ||
243 | config REED_SOLOMON_DEC8 | |
244 | boolean | |
245 | ||
246 | config REED_SOLOMON_ENC16 | |
247 | boolean | |
248 | ||
249 | config REED_SOLOMON_DEC16 | |
250 | boolean | |
251 | ||
437aa565 ID |
252 | # |
253 | # BCH support is selected if needed | |
254 | # | |
255 | config BCH | |
256 | tristate | |
257 | ||
258 | config BCH_CONST_PARAMS | |
259 | boolean | |
260 | help | |
261 | Drivers may select this option to force specific constant | |
262 | values for parameters 'm' (Galois field order) and 't' | |
263 | (error correction capability). Those specific values must | |
264 | be set by declaring default values for symbols BCH_CONST_M | |
265 | and BCH_CONST_T. | |
266 | Doing so will enable extra compiler optimizations, | |
267 | improving encoding and decoding performance up to 2x for | |
268 | usual (m,t) values (typically such that m*t < 200). | |
269 | When this option is selected, the BCH library supports | |
270 | only a single (m,t) configuration. This is mainly useful | |
271 | for NAND flash board drivers requiring known, fixed BCH | |
272 | parameters. | |
273 | ||
274 | config BCH_CONST_M | |
275 | int | |
276 | range 5 15 | |
277 | help | |
278 | Constant value for Galois field order 'm'. If 'k' is the | |
279 | number of data bits to protect, 'm' should be chosen such | |
280 | that (k + m*t) <= 2**m - 1. | |
281 | Drivers should declare a default value for this symbol if | |
282 | they select option BCH_CONST_PARAMS. | |
283 | ||
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 | ||
f7704347 DM |
291 | # |
292 | # Textsearch support is select'ed if needed | |
293 | # | |
2de4ff7b | 294 | config TEXTSEARCH |
f7704347 | 295 | boolean |
1da177e4 | 296 | |
df3fb93a | 297 | config TEXTSEARCH_KMP |
f7704347 | 298 | tristate |
df3fb93a | 299 | |
8082e4ed | 300 | config TEXTSEARCH_BM |
29cb9f9c | 301 | tristate |
8082e4ed | 302 | |
6408f79c | 303 | config TEXTSEARCH_FSM |
f7704347 | 304 | tristate |
6408f79c | 305 | |
5db53f3e JE |
306 | config BTREE |
307 | boolean | |
308 | ||
5ea81769 | 309 | config HAS_IOMEM |
ee36c2bf | 310 | boolean |
5ea81769 | 311 | depends on !NO_IOMEM |
087fafd1 | 312 | select GENERIC_IO |
5ea81769 AV |
313 | default y |
314 | ||
315 | config HAS_IOPORT | |
316 | boolean | |
317 | depends on HAS_IOMEM && !NO_IOPORT | |
ee36c2bf AV |
318 | default y |
319 | ||
411f0f3e HC |
320 | config HAS_DMA |
321 | boolean | |
322 | depends on !NO_DMA | |
323 | default y | |
324 | ||
928923c7 GU |
325 | config CHECK_SIGNATURE |
326 | bool | |
327 | ||
aab46da0 RR |
328 | config CPUMASK_OFFSTACK |
329 | bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS | |
330 | help | |
331 | Use dynamic allocation for cpumask_var_t, instead of putting | |
332 | them on the stack. This is a bit more expensive, but avoids | |
333 | stack overflow. | |
334 | ||
8c384cde RR |
335 | config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS |
336 | bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS | |
525c1f92 | 337 | depends on BROKEN |
8c384cde | 338 | |
c39649c3 BH |
339 | config CPU_RMAP |
340 | bool | |
341 | depends on SMP | |
342 | ||
75957ba3 TH |
343 | config DQL |
344 | bool | |
345 | ||
e9cc8bdd GU |
346 | # |
347 | # Netlink attribute parsing support is select'ed if needed | |
348 | # | |
349 | config NLATTR | |
350 | bool | |
351 | ||
09d4e0ed PM |
352 | # |
353 | # Generic 64-bit atomic support is selected if needed | |
354 | # | |
355 | config GENERIC_ATOMIC64 | |
356 | bool | |
357 | ||
7463449b CM |
358 | config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE |
359 | def_bool y if GENERIC_ATOMIC64 | |
360 | ||
b411b363 PR |
361 | config LRU_CACHE |
362 | tristate | |
363 | ||
c5485a7e | 364 | config AVERAGE |
a7a9a24d MB |
365 | bool "Averaging functions" |
366 | help | |
367 | This option is provided for the case where no in-kernel-tree | |
368 | modules require averaging functions, but a module built outside | |
369 | the kernel tree does. Such modules that use library averaging | |
370 | functions require Y here. | |
371 | ||
372 | If unsure, say N. | |
c5485a7e | 373 | |
c6df4b17 DM |
374 | config CLZ_TAB |
375 | bool | |
376 | ||
10f8113e | 377 | config CORDIC |
d89ce936 | 378 | tristate "CORDIC algorithm" |
10f8113e | 379 | help |
435a95c5 MW |
380 | This option provides an implementation of the CORDIC algorithm; |
381 | calculations are in fixed point. Module will be called cordic. | |
10f8113e | 382 | |
9c1c21a0 A |
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 | ||
d9c46b18 | 391 | config MPILIB |
2e5f094b | 392 | tristate |
c6df4b17 | 393 | select CLZ_TAB |
d9c46b18 DK |
394 | help |
395 | Multiprecision maths library from GnuPG. | |
396 | It is used to implement RSA digital signature verification, | |
397 | which is used by IMA/EVM digital signature extension. | |
398 | ||
5e8898e9 | 399 | config SIGNATURE |
2e5f094b | 400 | tristate |
be440ec7 DK |
401 | depends on KEYS && CRYPTO |
402 | select CRYPTO_SHA1 | |
051dbb91 DK |
403 | select MPILIB |
404 | help | |
405 | Digital signature verification. Currently only RSA is supported. | |
406 | Implementation is done using GnuPG MPI library | |
407 | ||
ab253839 DD |
408 | # |
409 | # libfdt files, only selected if needed. | |
410 | # | |
411 | config LIBFDT | |
412 | bool | |
413 | ||
a77ad6ea DH |
414 | config OID_REGISTRY |
415 | tristate | |
416 | help | |
417 | Enable fast lookup object identifier registry. | |
418 | ||
0635eb8a MG |
419 | config UCS2_STRING |
420 | tristate | |
421 | ||
ee89bd6b GU |
422 | source "lib/fonts/Kconfig" |
423 | ||
2de4ff7b | 424 | endmenu |