xref: /openbmc/linux/lib/Kconfig (revision e76e1fdf)
1#
2# Library configuration
3#
4
5config BINARY_PRINTF
6	def_bool n
7
8menu "Library routines"
9
10config RAID6_PQ
11	tristate
12
13config BITREVERSE
14	tristate
15
16config RATIONAL
17	boolean
18
19config GENERIC_STRNCPY_FROM_USER
20	bool
21
22config GENERIC_STRNLEN_USER
23	bool
24
25config GENERIC_NET_UTILS
26	bool
27
28config GENERIC_FIND_FIRST_BIT
29	bool
30
31config NO_GENERIC_PCI_IOPORT_MAP
32	bool
33
34config GENERIC_PCI_IOMAP
35	bool
36
37config GENERIC_IOMAP
38	bool
39	select GENERIC_PCI_IOMAP
40
41config GENERIC_IO
42	boolean
43	default n
44
45config STMP_DEVICE
46	bool
47
48config PERCPU_RWSEM
49	boolean
50
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
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
67config CRC_T10DIF
68	tristate "CRC calculation for the T10 Data Integrity Field"
69	select CRYPTO
70	select CRYPTO_CRCT10DIF
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
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
84config CRC32
85	tristate "CRC32/CRC32c functions"
86	default y
87	select BITREVERSE
88	help
89	  This option is provided for the case where no in-kernel-tree
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.
93
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
104choice
105	prompt "CRC32 implementation"
106	depends on CRC32
107	default CRC32_SLICEBY8
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.
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
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
159config LIBCRC32C
160	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
161	select CRYPTO
162	select CRYPTO_CRC32C
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
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
177config AUDIT_GENERIC
178	bool
179	depends on AUDIT && !AUDIT_ARCH
180	default y
181
182#
183# compression support is select'ed if needed
184#
185config ZLIB_INFLATE
186	tristate
187
188config ZLIB_DEFLATE
189	tristate
190
191config LZO_COMPRESS
192	tristate
193
194config LZO_DECOMPRESS
195	tristate
196
197config LZ4_DECOMPRESS
198	tristate
199
200source "lib/xz/Kconfig"
201
202#
203# These all provide a common interface (hence the apparent duplication with
204# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
205#
206config DECOMPRESS_GZIP
207	select ZLIB_INFLATE
208	tristate
209
210config DECOMPRESS_BZIP2
211	tristate
212
213config DECOMPRESS_LZMA
214	tristate
215
216config DECOMPRESS_XZ
217	select XZ_DEC
218	tristate
219
220config DECOMPRESS_LZO
221	select LZO_DECOMPRESS
222	tristate
223
224config DECOMPRESS_LZ4
225	select LZ4_DECOMPRESS
226	tristate
227
228#
229# Generic allocator support is selected if needed
230#
231config GENERIC_ALLOCATOR
232	boolean
233
234#
235# reed solomon support is select'ed if needed
236#
237config REED_SOLOMON
238	tristate
239
240config REED_SOLOMON_ENC8
241	boolean
242
243config REED_SOLOMON_DEC8
244	boolean
245
246config REED_SOLOMON_ENC16
247	boolean
248
249config REED_SOLOMON_DEC16
250	boolean
251
252#
253# BCH support is selected if needed
254#
255config BCH
256	tristate
257
258config 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
274config 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
284config 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#
292# Textsearch support is select'ed if needed
293#
294config TEXTSEARCH
295	boolean
296
297config TEXTSEARCH_KMP
298	tristate
299
300config TEXTSEARCH_BM
301	tristate
302
303config TEXTSEARCH_FSM
304	tristate
305
306config BTREE
307	boolean
308
309config HAS_IOMEM
310	boolean
311	depends on !NO_IOMEM
312	select GENERIC_IO
313	default y
314
315config HAS_IOPORT
316	boolean
317	depends on HAS_IOMEM && !NO_IOPORT
318	default y
319
320config HAS_DMA
321	boolean
322	depends on !NO_DMA
323	default y
324
325config CHECK_SIGNATURE
326	bool
327
328config 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
335config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
336       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
337       depends on BROKEN
338
339config CPU_RMAP
340	bool
341	depends on SMP
342
343config DQL
344	bool
345
346#
347# Netlink attribute parsing support is select'ed if needed
348#
349config NLATTR
350	bool
351
352#
353# Generic 64-bit atomic support is selected if needed
354#
355config GENERIC_ATOMIC64
356       bool
357
358config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
359	def_bool y if GENERIC_ATOMIC64
360
361config LRU_CACHE
362	tristate
363
364config AVERAGE
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.
373
374config CLZ_TAB
375	bool
376
377config CORDIC
378	tristate "CORDIC algorithm"
379	help
380	  This option provides an implementation of the CORDIC algorithm;
381	  calculations are in fixed point. Module will be called cordic.
382
383config 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
391config MPILIB
392	tristate
393	select CLZ_TAB
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
399config SIGNATURE
400	tristate
401	depends on KEYS && CRYPTO
402	select CRYPTO_SHA1
403	select MPILIB
404	help
405	  Digital signature verification. Currently only RSA is supported.
406	  Implementation is done using GnuPG MPI library
407
408#
409# libfdt files, only selected if needed.
410#
411config LIBFDT
412	bool
413
414config OID_REGISTRY
415	tristate
416	help
417	  Enable fast lookup object identifier registry.
418
419config UCS2_STRING
420        tristate
421
422source "lib/fonts/Kconfig"
423
424endmenu
425