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 | ||
24fa0402 LC |
197 | source "lib/xz/Kconfig" |
198 | ||
c8531ab3 PA |
199 | # |
200 | # These all provide a common interface (hence the apparent duplication with | |
201 | # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) | |
202 | # | |
203 | config DECOMPRESS_GZIP | |
7856a16e | 204 | select ZLIB_INFLATE |
c8531ab3 PA |
205 | tristate |
206 | ||
207 | config DECOMPRESS_BZIP2 | |
208 | tristate | |
209 | ||
210 | config DECOMPRESS_LZMA | |
211 | tristate | |
212 | ||
3ebe1243 LC |
213 | config DECOMPRESS_XZ |
214 | select XZ_DEC | |
215 | tristate | |
216 | ||
cacb246f AT |
217 | config DECOMPRESS_LZO |
218 | select LZO_DECOMPRESS | |
219 | tristate | |
220 | ||
f14f75b8 JS |
221 | # |
222 | # Generic allocator support is selected if needed | |
223 | # | |
224 | config GENERIC_ALLOCATOR | |
225 | boolean | |
226 | ||
1da177e4 LT |
227 | # |
228 | # reed solomon support is select'ed if needed | |
229 | # | |
230 | config REED_SOLOMON | |
231 | tristate | |
232 | ||
233 | config REED_SOLOMON_ENC8 | |
234 | boolean | |
235 | ||
236 | config REED_SOLOMON_DEC8 | |
237 | boolean | |
238 | ||
239 | config REED_SOLOMON_ENC16 | |
240 | boolean | |
241 | ||
242 | config REED_SOLOMON_DEC16 | |
243 | boolean | |
244 | ||
437aa565 ID |
245 | # |
246 | # BCH support is selected if needed | |
247 | # | |
248 | config BCH | |
249 | tristate | |
250 | ||
251 | config BCH_CONST_PARAMS | |
252 | boolean | |
253 | help | |
254 | Drivers may select this option to force specific constant | |
255 | values for parameters 'm' (Galois field order) and 't' | |
256 | (error correction capability). Those specific values must | |
257 | be set by declaring default values for symbols BCH_CONST_M | |
258 | and BCH_CONST_T. | |
259 | Doing so will enable extra compiler optimizations, | |
260 | improving encoding and decoding performance up to 2x for | |
261 | usual (m,t) values (typically such that m*t < 200). | |
262 | When this option is selected, the BCH library supports | |
263 | only a single (m,t) configuration. This is mainly useful | |
264 | for NAND flash board drivers requiring known, fixed BCH | |
265 | parameters. | |
266 | ||
267 | config BCH_CONST_M | |
268 | int | |
269 | range 5 15 | |
270 | help | |
271 | Constant value for Galois field order 'm'. If 'k' is the | |
272 | number of data bits to protect, 'm' should be chosen such | |
273 | that (k + m*t) <= 2**m - 1. | |
274 | Drivers should declare a default value for this symbol if | |
275 | they select option BCH_CONST_PARAMS. | |
276 | ||
277 | config BCH_CONST_T | |
278 | int | |
279 | help | |
280 | Constant value for error correction capability in bits 't'. | |
281 | Drivers should declare a default value for this symbol if | |
282 | they select option BCH_CONST_PARAMS. | |
283 | ||
f7704347 DM |
284 | # |
285 | # Textsearch support is select'ed if needed | |
286 | # | |
2de4ff7b | 287 | config TEXTSEARCH |
f7704347 | 288 | boolean |
1da177e4 | 289 | |
df3fb93a | 290 | config TEXTSEARCH_KMP |
f7704347 | 291 | tristate |
df3fb93a | 292 | |
8082e4ed | 293 | config TEXTSEARCH_BM |
29cb9f9c | 294 | tristate |
8082e4ed | 295 | |
6408f79c | 296 | config TEXTSEARCH_FSM |
f7704347 | 297 | tristate |
6408f79c | 298 | |
5db53f3e JE |
299 | config BTREE |
300 | boolean | |
301 | ||
5ea81769 | 302 | config HAS_IOMEM |
ee36c2bf | 303 | boolean |
5ea81769 | 304 | depends on !NO_IOMEM |
087fafd1 | 305 | select GENERIC_IO |
5ea81769 AV |
306 | default y |
307 | ||
308 | config HAS_IOPORT | |
309 | boolean | |
310 | depends on HAS_IOMEM && !NO_IOPORT | |
ee36c2bf AV |
311 | default y |
312 | ||
411f0f3e HC |
313 | config HAS_DMA |
314 | boolean | |
315 | depends on !NO_DMA | |
316 | default y | |
317 | ||
928923c7 GU |
318 | config CHECK_SIGNATURE |
319 | bool | |
320 | ||
aab46da0 RR |
321 | config CPUMASK_OFFSTACK |
322 | bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS | |
323 | help | |
324 | Use dynamic allocation for cpumask_var_t, instead of putting | |
325 | them on the stack. This is a bit more expensive, but avoids | |
326 | stack overflow. | |
327 | ||
8c384cde RR |
328 | config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS |
329 | bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS | |
525c1f92 | 330 | depends on BROKEN |
8c384cde | 331 | |
c39649c3 BH |
332 | config CPU_RMAP |
333 | bool | |
334 | depends on SMP | |
335 | ||
75957ba3 TH |
336 | config DQL |
337 | bool | |
338 | ||
e9cc8bdd GU |
339 | # |
340 | # Netlink attribute parsing support is select'ed if needed | |
341 | # | |
342 | config NLATTR | |
343 | bool | |
344 | ||
09d4e0ed PM |
345 | # |
346 | # Generic 64-bit atomic support is selected if needed | |
347 | # | |
348 | config GENERIC_ATOMIC64 | |
349 | bool | |
350 | ||
7463449b CM |
351 | config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE |
352 | def_bool y if GENERIC_ATOMIC64 | |
353 | ||
b411b363 PR |
354 | config LRU_CACHE |
355 | tristate | |
356 | ||
c5485a7e | 357 | config AVERAGE |
a7a9a24d MB |
358 | bool "Averaging functions" |
359 | help | |
360 | This option is provided for the case where no in-kernel-tree | |
361 | modules require averaging functions, but a module built outside | |
362 | the kernel tree does. Such modules that use library averaging | |
363 | functions require Y here. | |
364 | ||
365 | If unsure, say N. | |
c5485a7e | 366 | |
c6df4b17 DM |
367 | config CLZ_TAB |
368 | bool | |
369 | ||
10f8113e | 370 | config CORDIC |
d89ce936 | 371 | tristate "CORDIC algorithm" |
10f8113e | 372 | help |
435a95c5 MW |
373 | This option provides an implementation of the CORDIC algorithm; |
374 | calculations are in fixed point. Module will be called cordic. | |
10f8113e | 375 | |
9c1c21a0 A |
376 | config DDR |
377 | bool "JEDEC DDR data" | |
378 | help | |
379 | Data from JEDEC specs for DDR SDRAM memories, | |
380 | particularly the AC timing parameters and addressing | |
381 | information. This data is useful for drivers handling | |
382 | DDR SDRAM controllers. | |
383 | ||
d9c46b18 | 384 | config MPILIB |
2e5f094b | 385 | tristate |
c6df4b17 | 386 | select CLZ_TAB |
d9c46b18 DK |
387 | help |
388 | Multiprecision maths library from GnuPG. | |
389 | It is used to implement RSA digital signature verification, | |
390 | which is used by IMA/EVM digital signature extension. | |
391 | ||
5e8898e9 | 392 | config SIGNATURE |
2e5f094b | 393 | tristate |
be440ec7 DK |
394 | depends on KEYS && CRYPTO |
395 | select CRYPTO_SHA1 | |
051dbb91 DK |
396 | select MPILIB |
397 | help | |
398 | Digital signature verification. Currently only RSA is supported. | |
399 | Implementation is done using GnuPG MPI library | |
400 | ||
ab253839 DD |
401 | # |
402 | # libfdt files, only selected if needed. | |
403 | # | |
404 | config LIBFDT | |
405 | bool | |
406 | ||
a77ad6ea DH |
407 | config OID_REGISTRY |
408 | tristate | |
409 | help | |
410 | Enable fast lookup object identifier registry. | |
411 | ||
0635eb8a MG |
412 | config UCS2_STRING |
413 | tristate | |
414 | ||
ee89bd6b GU |
415 | source "lib/fonts/Kconfig" |
416 | ||
2de4ff7b | 417 | endmenu |