]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - lib/Kconfig
pinctrl: clean up pinconfig-generic documentation
[mirror_ubuntu-bionic-kernel.git] / lib / Kconfig
CommitLineData
1da177e4
LT
1#
2# Library configuration
3#
4
4370aa4a
LJ
5config BINARY_PRINTF
6 def_bool n
7
1da177e4
LT
8menu "Library routines"
9
f5e70d0f
DW
10config RAID6_PQ
11 tristate
12
a5cfc1ec
AM
13config BITREVERSE
14 tristate
15
8759ef32
OS
16config RATIONAL
17 boolean
18
2922585b
DM
19config GENERIC_STRNCPY_FROM_USER
20 bool
21
a08c5356
LT
22config GENERIC_STRNLEN_USER
23 bool
24
4cd5773a
AS
25config GENERIC_NET_UTILS
26 bool
27
19870def 28config GENERIC_FIND_FIRST_BIT
9ba16087 29 bool
19870def 30
b923650b
MT
31config NO_GENERIC_PCI_IOPORT_MAP
32 bool
33
66eab4df
MT
34config GENERIC_PCI_IOMAP
35 bool
36
4673ca8e
MT
37config GENERIC_IOMAP
38 bool
66eab4df 39 select GENERIC_PCI_IOMAP
4673ca8e 40
087fafd1
RW
41config GENERIC_IO
42 boolean
43 default n
44
4ccf4bea
WS
45config STMP_DEVICE
46 bool
47
22b361d1
ON
48config PERCPU_RWSEM
49 boolean
50
1da177e4
LT
51config 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
59config 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
67config 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
76config 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 84config 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
94config 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
104choice
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
113config 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
124config 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
133config 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
141config 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
149endchoice
150
ad241528
JN
151config 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
159config 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
170config 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
177config 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#
185config ZLIB_INFLATE
186 tristate
187
188config ZLIB_DEFLATE
189 tristate
190
64c70b1c
RP
191config LZO_COMPRESS
192 tristate
193
194config LZO_DECOMPRESS
195 tristate
196
c72ac7a1
CM
197config LZ4_COMPRESS
198 tristate
199
200config LZ4HC_COMPRESS
201 tristate
202
e76e1fdf
KL
203config LZ4_DECOMPRESS
204 tristate
205
24fa0402
LC
206source "lib/xz/Kconfig"
207
c8531ab3
PA
208#
209# These all provide a common interface (hence the apparent duplication with
210# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
211#
212config DECOMPRESS_GZIP
7856a16e 213 select ZLIB_INFLATE
c8531ab3
PA
214 tristate
215
216config DECOMPRESS_BZIP2
217 tristate
218
219config DECOMPRESS_LZMA
220 tristate
221
3ebe1243
LC
222config DECOMPRESS_XZ
223 select XZ_DEC
224 tristate
225
cacb246f
AT
226config DECOMPRESS_LZO
227 select LZO_DECOMPRESS
228 tristate
229
e76e1fdf
KL
230config DECOMPRESS_LZ4
231 select LZ4_DECOMPRESS
232 tristate
233
f14f75b8
JS
234#
235# Generic allocator support is selected if needed
236#
237config GENERIC_ALLOCATOR
238 boolean
239
1da177e4
LT
240#
241# reed solomon support is select'ed if needed
242#
243config REED_SOLOMON
244 tristate
245
246config REED_SOLOMON_ENC8
247 boolean
248
249config REED_SOLOMON_DEC8
250 boolean
251
252config REED_SOLOMON_ENC16
253 boolean
254
255config REED_SOLOMON_DEC16
256 boolean
257
437aa565
ID
258#
259# BCH support is selected if needed
260#
261config BCH
262 tristate
263
264config BCH_CONST_PARAMS
265 boolean
266 help
267 Drivers may select this option to force specific constant
268 values for parameters 'm' (Galois field order) and 't'
269 (error correction capability). Those specific values must
270 be set by declaring default values for symbols BCH_CONST_M
271 and BCH_CONST_T.
272 Doing so will enable extra compiler optimizations,
273 improving encoding and decoding performance up to 2x for
274 usual (m,t) values (typically such that m*t < 200).
275 When this option is selected, the BCH library supports
276 only a single (m,t) configuration. This is mainly useful
277 for NAND flash board drivers requiring known, fixed BCH
278 parameters.
279
280config BCH_CONST_M
281 int
282 range 5 15
283 help
284 Constant value for Galois field order 'm'. If 'k' is the
285 number of data bits to protect, 'm' should be chosen such
286 that (k + m*t) <= 2**m - 1.
287 Drivers should declare a default value for this symbol if
288 they select option BCH_CONST_PARAMS.
289
290config BCH_CONST_T
291 int
292 help
293 Constant value for error correction capability in bits 't'.
294 Drivers should declare a default value for this symbol if
295 they select option BCH_CONST_PARAMS.
296
f7704347
DM
297#
298# Textsearch support is select'ed if needed
299#
2de4ff7b 300config TEXTSEARCH
f7704347 301 boolean
1da177e4 302
df3fb93a 303config TEXTSEARCH_KMP
f7704347 304 tristate
df3fb93a 305
8082e4ed 306config TEXTSEARCH_BM
29cb9f9c 307 tristate
8082e4ed 308
6408f79c 309config TEXTSEARCH_FSM
f7704347 310 tristate
6408f79c 311
5db53f3e
JE
312config BTREE
313 boolean
314
5ea81769 315config HAS_IOMEM
ee36c2bf 316 boolean
5ea81769 317 depends on !NO_IOMEM
087fafd1 318 select GENERIC_IO
5ea81769
AV
319 default y
320
321config HAS_IOPORT
322 boolean
323 depends on HAS_IOMEM && !NO_IOPORT
ee36c2bf
AV
324 default y
325
411f0f3e
HC
326config HAS_DMA
327 boolean
328 depends on !NO_DMA
329 default y
330
928923c7
GU
331config CHECK_SIGNATURE
332 bool
333
aab46da0
RR
334config CPUMASK_OFFSTACK
335 bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
336 help
337 Use dynamic allocation for cpumask_var_t, instead of putting
338 them on the stack. This is a bit more expensive, but avoids
339 stack overflow.
340
8c384cde
RR
341config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
342 bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
525c1f92 343 depends on BROKEN
8c384cde 344
c39649c3
BH
345config CPU_RMAP
346 bool
347 depends on SMP
348
75957ba3
TH
349config DQL
350 bool
351
e9cc8bdd
GU
352#
353# Netlink attribute parsing support is select'ed if needed
354#
355config NLATTR
356 bool
357
09d4e0ed
PM
358#
359# Generic 64-bit atomic support is selected if needed
360#
361config GENERIC_ATOMIC64
362 bool
363
7463449b
CM
364config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
365 def_bool y if GENERIC_ATOMIC64
366
b411b363
PR
367config LRU_CACHE
368 tristate
369
c5485a7e 370config AVERAGE
a7a9a24d
MB
371 bool "Averaging functions"
372 help
373 This option is provided for the case where no in-kernel-tree
374 modules require averaging functions, but a module built outside
375 the kernel tree does. Such modules that use library averaging
376 functions require Y here.
377
378 If unsure, say N.
c5485a7e 379
c6df4b17
DM
380config CLZ_TAB
381 bool
382
10f8113e 383config CORDIC
d89ce936 384 tristate "CORDIC algorithm"
10f8113e 385 help
435a95c5
MW
386 This option provides an implementation of the CORDIC algorithm;
387 calculations are in fixed point. Module will be called cordic.
10f8113e 388
9c1c21a0
A
389config DDR
390 bool "JEDEC DDR data"
391 help
392 Data from JEDEC specs for DDR SDRAM memories,
393 particularly the AC timing parameters and addressing
394 information. This data is useful for drivers handling
395 DDR SDRAM controllers.
396
d9c46b18 397config MPILIB
2e5f094b 398 tristate
c6df4b17 399 select CLZ_TAB
d9c46b18
DK
400 help
401 Multiprecision maths library from GnuPG.
402 It is used to implement RSA digital signature verification,
403 which is used by IMA/EVM digital signature extension.
404
5e8898e9 405config SIGNATURE
2e5f094b 406 tristate
be440ec7
DK
407 depends on KEYS && CRYPTO
408 select CRYPTO_SHA1
051dbb91
DK
409 select MPILIB
410 help
411 Digital signature verification. Currently only RSA is supported.
412 Implementation is done using GnuPG MPI library
413
ab253839
DD
414#
415# libfdt files, only selected if needed.
416#
417config LIBFDT
418 bool
419
a77ad6ea
DH
420config OID_REGISTRY
421 tristate
422 help
423 Enable fast lookup object identifier registry.
424
0635eb8a
MG
425config UCS2_STRING
426 tristate
427
ee89bd6b
GU
428source "lib/fonts/Kconfig"
429
2de4ff7b 430endmenu