blob: 64ddc44d0b81ebfe9db5e72d4e7f945195276c15 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Library configuration
3#
4
Lai Jiangshan4370aa42009-03-06 17:21:46 +01005config BINARY_PRINTF
6 def_bool n
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008menu "Library routines"
9
David Woodhousef5e70d02009-07-13 11:35:12 +010010config RAID6_PQ
11 tristate
12
Akinobu Mitaa5cfc1e2006-12-08 02:36:25 -080013config BITREVERSE
14 tristate
15
Oskar Schirmer8759ef32009-06-11 14:51:15 +010016config RATIONAL
17 boolean
18
David S. Miller29225852012-05-24 13:12:28 -070019config GENERIC_STRNCPY_FROM_USER
20 bool
21
Linus Torvaldsa08c5352012-05-26 11:06:38 -070022config GENERIC_STRNLEN_USER
23 bool
24
Alexander van Heukelum19870de2008-04-25 13:12:53 +020025config GENERIC_FIND_FIRST_BIT
Jan Beulich9ba16082008-10-15 22:01:38 -070026 bool
Alexander van Heukelum19870de2008-04-25 13:12:53 +020027
Michael S. Tsirkinb9236502012-01-30 00:20:48 +020028config NO_GENERIC_PCI_IOPORT_MAP
29 bool
30
Michael S. Tsirkin66eab4d2011-11-24 20:45:20 +020031config GENERIC_PCI_IOMAP
32 bool
33
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020034config GENERIC_IOMAP
35 bool
Michael S. Tsirkin66eab4d2011-11-24 20:45:20 +020036 select GENERIC_PCI_IOMAP
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020037
Richard Weinberger087fafd2012-02-07 01:22:46 +010038config GENERIC_IO
39 boolean
40 default n
41
Linus Torvalds1da177e2005-04-16 15:20:36 -070042config CRC_CCITT
43 tristate "CRC-CCITT functions"
44 help
45 This option is provided for the case where no in-kernel-tree
46 modules require CRC-CCITT functions, but a module built outside
47 the kernel tree does. Such modules that use library CRC-CCITT
48 functions require M here.
49
Evgeniy Polyakov7657ec12005-08-17 15:17:26 +040050config CRC16
51 tristate "CRC16 functions"
52 help
53 This option is provided for the case where no in-kernel-tree
54 modules require CRC16 functions, but a module built outside
55 the kernel tree does. Such modules that use library CRC16
56 functions require M here.
57
Martin K. Petersenf11f5942008-06-25 11:22:42 -040058config CRC_T10DIF
59 tristate "CRC calculation for the T10 Data Integrity Field"
60 help
61 This option is only needed if a module that's not in the
62 kernel tree needs to calculate CRC checks for use with the
63 SCSI data integrity subsystem.
64
Ivo van Doorn3e7cbae2006-06-12 16:17:04 +020065config CRC_ITU_T
66 tristate "CRC ITU-T V.41 functions"
67 help
68 This option is provided for the case where no in-kernel-tree
69 modules require CRC ITU-T V.41 functions, but a module built outside
70 the kernel tree does. Such modules that use library CRC ITU-T V.41
71 functions require M here.
72
Linus Torvalds1da177e2005-04-16 15:20:36 -070073config CRC32
Darrick J. Wong46c58012012-03-23 15:02:25 -070074 tristate "CRC32/CRC32c functions"
Linus Torvalds1da177e2005-04-16 15:20:36 -070075 default y
Akinobu Mita906d66d2006-12-08 02:36:25 -080076 select BITREVERSE
Linus Torvalds1da177e2005-04-16 15:20:36 -070077 help
78 This option is provided for the case where no in-kernel-tree
Darrick J. Wong46c58012012-03-23 15:02:25 -070079 modules require CRC32/CRC32c functions, but a module built outside
80 the kernel tree does. Such modules that use library CRC32/CRC32c
81 functions require M here.
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
Bob Pearson3863ef32012-03-23 15:02:22 -070083config CRC32_SELFTEST
84 bool "CRC32 perform self test on init"
85 default n
86 depends on CRC32
87 help
88 This option enables the CRC32 library functions to perform a
89 self test on initialization. The self test computes crc32_le
90 and crc32_be over byte strings with random alignment and length
91 and computes the total elapsed time and number of bytes processed.
92
Darrick J. Wong5cde7652012-03-23 15:02:26 -070093choice
94 prompt "CRC32 implementation"
95 depends on CRC32
96 default CRC32_SLICEBY8
Darrick J. Wong82edb4b2012-03-28 14:42:56 -070097 help
98 This option allows a kernel builder to override the default choice
99 of CRC32 algorithm. Choose the default ("slice by 8") unless you
100 know that you need one of the others.
Darrick J. Wong5cde7652012-03-23 15:02:26 -0700101
102config CRC32_SLICEBY8
103 bool "Slice by 8 bytes"
104 help
105 Calculate checksum 8 bytes at a time with a clever slicing algorithm.
106 This is the fastest algorithm, but comes with a 8KiB lookup table.
107 Most modern processors have enough cache to hold this table without
108 thrashing the cache.
109
110 This is the default implementation choice. Choose this one unless
111 you have a good reason not to.
112
113config CRC32_SLICEBY4
114 bool "Slice by 4 bytes"
115 help
116 Calculate checksum 4 bytes at a time with a clever slicing algorithm.
117 This is a bit slower than slice by 8, but has a smaller 4KiB lookup
118 table.
119
120 Only choose this option if you know what you are doing.
121
122config CRC32_SARWATE
123 bool "Sarwate's Algorithm (one byte at a time)"
124 help
125 Calculate checksum a byte at a time using Sarwate's algorithm. This
126 is not particularly fast, but has a small 256 byte lookup table.
127
128 Only choose this option if you know what you are doing.
129
130config CRC32_BIT
131 bool "Classic Algorithm (one bit at a time)"
132 help
133 Calculate checksum one bit at a time. This is VERY slow, but has
134 no lookup table. This is provided as a debugging option.
135
136 Only choose this option if you are debugging crc32.
137
138endchoice
139
Jan Nikitenkoad241522007-07-17 04:04:03 -0700140config CRC7
141 tristate "CRC7 functions"
142 help
143 This option is provided for the case where no in-kernel-tree
144 modules require CRC7 functions, but a module built outside
145 the kernel tree does. Such modules that use library CRC7
146 functions require M here.
147
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148config LIBCRC32C
149 tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
Herbert Xu93027352008-11-13 22:05:13 +0800150 select CRYPTO
Herbert Xu69c35ef2008-11-07 15:11:47 +0800151 select CRYPTO_CRC32C
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152 help
153 This option is provided for the case where no in-kernel-tree
154 modules require CRC32c functions, but a module built outside the
155 kernel tree does. Such modules that use library CRC32c functions
156 require M here. See Castagnoli93.
157 Module will be libcrc32c.
158
Arend van Spriel71509622011-05-31 11:22:15 +0200159config CRC8
160 tristate "CRC8 function"
161 help
162 This option provides CRC8 function. Drivers may select this
163 when they need to do cyclic redundancy check according CRC8
164 algorithm. Module will be called crc8.
165
Al Viroe65e1fc2006-09-12 03:04:40 -0400166config AUDIT_GENERIC
167 bool
168 depends on AUDIT && !AUDIT_ARCH
169 default y
170
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171#
172# compression support is select'ed if needed
173#
174config ZLIB_INFLATE
175 tristate
176
177config ZLIB_DEFLATE
178 tristate
179
Richard Purdie64c70b12007-07-10 17:22:24 -0700180config LZO_COMPRESS
181 tristate
182
183config LZO_DECOMPRESS
184 tristate
185
Lasse Collin24fa0402011-01-12 17:01:22 -0800186source "lib/xz/Kconfig"
187
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188#
H. Peter Anvinc8531ab2009-01-05 13:48:31 -0800189# These all provide a common interface (hence the apparent duplication with
190# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
191#
192config DECOMPRESS_GZIP
H. Peter Anvin7856a16e2009-01-07 00:01:43 -0800193 select ZLIB_INFLATE
H. Peter Anvinc8531ab2009-01-05 13:48:31 -0800194 tristate
195
196config DECOMPRESS_BZIP2
197 tristate
198
199config DECOMPRESS_LZMA
200 tristate
201
Lasse Collin3ebe1242011-01-12 17:01:23 -0800202config DECOMPRESS_XZ
203 select XZ_DEC
204 tristate
205
Albin Tonnerrecacb2462010-01-08 14:42:46 -0800206config DECOMPRESS_LZO
207 select LZO_DECOMPRESS
208 tristate
209
H. Peter Anvinc8531ab2009-01-05 13:48:31 -0800210#
Jes Sorensenf14f75b2005-06-21 17:15:02 -0700211# Generic allocator support is selected if needed
212#
213config GENERIC_ALLOCATOR
214 boolean
215
216#
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217# reed solomon support is select'ed if needed
218#
219config REED_SOLOMON
220 tristate
221
222config REED_SOLOMON_ENC8
223 boolean
224
225config REED_SOLOMON_DEC8
226 boolean
227
228config REED_SOLOMON_ENC16
229 boolean
230
231config REED_SOLOMON_DEC16
232 boolean
233
David S. Millerf7704342005-06-24 17:39:03 -0700234#
Ivan Djelic437aa562011-03-11 11:05:32 +0100235# BCH support is selected if needed
236#
237config BCH
238 tristate
239
240config BCH_CONST_PARAMS
241 boolean
242 help
243 Drivers may select this option to force specific constant
244 values for parameters 'm' (Galois field order) and 't'
245 (error correction capability). Those specific values must
246 be set by declaring default values for symbols BCH_CONST_M
247 and BCH_CONST_T.
248 Doing so will enable extra compiler optimizations,
249 improving encoding and decoding performance up to 2x for
250 usual (m,t) values (typically such that m*t < 200).
251 When this option is selected, the BCH library supports
252 only a single (m,t) configuration. This is mainly useful
253 for NAND flash board drivers requiring known, fixed BCH
254 parameters.
255
256config BCH_CONST_M
257 int
258 range 5 15
259 help
260 Constant value for Galois field order 'm'. If 'k' is the
261 number of data bits to protect, 'm' should be chosen such
262 that (k + m*t) <= 2**m - 1.
263 Drivers should declare a default value for this symbol if
264 they select option BCH_CONST_PARAMS.
265
266config BCH_CONST_T
267 int
268 help
269 Constant value for error correction capability in bits 't'.
270 Drivers should declare a default value for this symbol if
271 they select option BCH_CONST_PARAMS.
272
273#
David S. Millerf7704342005-06-24 17:39:03 -0700274# Textsearch support is select'ed if needed
275#
Thomas Graf2de4ff72005-06-23 20:49:30 -0700276config TEXTSEARCH
David S. Millerf7704342005-06-24 17:39:03 -0700277 boolean
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278
Thomas Grafdf3fb932005-06-23 20:58:37 -0700279config TEXTSEARCH_KMP
David S. Millerf7704342005-06-24 17:39:03 -0700280 tristate
Thomas Grafdf3fb932005-06-23 20:58:37 -0700281
Pablo Neira Ayuso8082e4e2005-08-25 16:12:22 -0700282config TEXTSEARCH_BM
David S. Miller29cb9f92005-08-25 16:23:11 -0700283 tristate
Pablo Neira Ayuso8082e4e2005-08-25 16:12:22 -0700284
Thomas Graf6408f792005-06-23 20:59:16 -0700285config TEXTSEARCH_FSM
David S. Millerf7704342005-06-24 17:39:03 -0700286 tristate
Thomas Graf6408f792005-06-23 20:59:16 -0700287
Joern Engel5db53f32009-11-20 20:13:39 +0100288config BTREE
289 boolean
290
Al Viro5ea81762007-02-11 15:41:31 +0000291config HAS_IOMEM
Al Viroee36c2b2006-12-13 00:35:00 -0800292 boolean
Al Viro5ea81762007-02-11 15:41:31 +0000293 depends on !NO_IOMEM
Richard Weinberger087fafd2012-02-07 01:22:46 +0100294 select GENERIC_IO
Al Viro5ea81762007-02-11 15:41:31 +0000295 default y
296
297config HAS_IOPORT
298 boolean
299 depends on HAS_IOMEM && !NO_IOPORT
Al Viroee36c2b2006-12-13 00:35:00 -0800300 default y
301
Heiko Carstens411f0f32007-05-06 14:49:09 -0700302config HAS_DMA
303 boolean
304 depends on !NO_DMA
305 default y
306
Geert Uytterhoeven928923c2007-08-22 14:01:36 -0700307config CHECK_SIGNATURE
308 bool
309
Rusty Russellaab46da2008-12-13 21:20:27 +1030310config CPUMASK_OFFSTACK
311 bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
312 help
313 Use dynamic allocation for cpumask_var_t, instead of putting
314 them on the stack. This is a bit more expensive, but avoids
315 stack overflow.
316
Rusty Russell8c384cd2009-01-01 10:12:30 +1030317config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
318 bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
319 depends on EXPERIMENTAL && BROKEN
320
Ben Hutchingsc39649c2011-01-19 11:03:25 +0000321config CPU_RMAP
322 bool
323 depends on SMP
324
Tom Herbert75957ba2011-11-28 16:32:35 +0000325config DQL
326 bool
327
Geert Uytterhoevene9cc8bd2009-03-04 14:53:30 +0800328#
329# Netlink attribute parsing support is select'ed if needed
330#
331config NLATTR
332 bool
333
Paul Mackerras09d4e0e2009-06-12 21:10:05 +0000334#
335# Generic 64-bit atomic support is selected if needed
336#
337config GENERIC_ATOMIC64
338 bool
339
Philipp Reisnerb411b362009-09-25 16:07:19 -0700340config LRU_CACHE
341 tristate
342
Bruno Randolfc5485a72010-11-16 10:58:37 +0900343config AVERAGE
Michael Buescha7a9a242011-03-01 20:03:05 +0100344 bool "Averaging functions"
345 help
346 This option is provided for the case where no in-kernel-tree
347 modules require averaging functions, but a module built outside
348 the kernel tree does. Such modules that use library averaging
349 functions require Y here.
350
351 If unsure, say N.
Bruno Randolfc5485a72010-11-16 10:58:37 +0900352
David Millerc6df4b12012-02-02 00:17:54 +0200353config CLZ_TAB
354 bool
355
Arend van Spriel10f81132011-05-31 11:22:16 +0200356config CORDIC
Michael Wittend89ce932011-07-29 12:59:51 +0000357 tristate "CORDIC algorithm"
Arend van Spriel10f81132011-05-31 11:22:16 +0200358 help
Michael Witten435a95c2011-07-29 13:36:04 +0000359 This option provides an implementation of the CORDIC algorithm;
360 calculations are in fixed point. Module will be called cordic.
Arend van Spriel10f81132011-05-31 11:22:16 +0200361
Aneesh V9c1c21a2012-04-27 17:54:03 +0530362config DDR
363 bool "JEDEC DDR data"
364 help
365 Data from JEDEC specs for DDR SDRAM memories,
366 particularly the AC timing parameters and addressing
367 information. This data is useful for drivers handling
368 DDR SDRAM controllers.
369
Dmitry Kasatkind9c46b12011-08-31 14:05:16 +0300370config MPILIB
Dmitry Kasatkin2e5f0942012-01-17 17:12:06 +0200371 tristate
David Millerc6df4b12012-02-02 00:17:54 +0200372 select CLZ_TAB
Dmitry Kasatkind9c46b12011-08-31 14:05:16 +0300373 help
374 Multiprecision maths library from GnuPG.
375 It is used to implement RSA digital signature verification,
376 which is used by IMA/EVM digital signature extension.
377
Dmitry Kasatkin7e8dec92011-11-07 15:16:37 +0200378config MPILIB_EXTRA
Dmitry Kasatkin2e5f0942012-01-17 17:12:06 +0200379 bool
Dmitry Kasatkin7e8dec92011-11-07 15:16:37 +0200380 depends on MPILIB
381 help
Dmitry Kasatkin68adcad2012-01-17 17:12:05 +0200382 Additional sources of multiprecision maths library from GnuPG.
383 This code is unnecessary for RSA digital signature verification,
384 but can be compiled if needed.
Dmitry Kasatkin7e8dec92011-11-07 15:16:37 +0200385
Dmitry Kasatkin5e8898e2012-01-17 17:12:03 +0200386config SIGNATURE
Dmitry Kasatkin2e5f0942012-01-17 17:12:06 +0200387 tristate
Dmitry Kasatkinbe440ec2012-01-17 17:12:04 +0200388 depends on KEYS && CRYPTO
389 select CRYPTO_SHA1
Dmitry Kasatkin051dbb92011-10-14 15:25:16 +0300390 select MPILIB
391 help
392 Digital signature verification. Currently only RSA is supported.
393 Implementation is done using GnuPG MPI library
394
Thomas Graf2de4ff72005-06-23 20:49:30 -0700395endmenu