2 # Library configuration
8 menu "Library routines"
19 config GENERIC_STRNCPY_FROM_USER
22 config GENERIC_STRNLEN_USER
25 config GENERIC_FIND_FIRST_BIT
28 config NO_GENERIC_PCI_IOPORT_MAP
31 config GENERIC_PCI_IOMAP
36 select GENERIC_PCI_IOMAP
46 tristate "CRC-CCITT functions"
48 This option is provided for the case where no in-kernel-tree
49 modules require CRC-CCITT functions, but a module built outside
50 the kernel tree does. Such modules that use library CRC-CCITT
51 functions require M here.
54 tristate "CRC16 functions"
56 This option is provided for the case where no in-kernel-tree
57 modules require CRC16 functions, but a module built outside
58 the kernel tree does. Such modules that use library CRC16
59 functions require M here.
62 tristate "CRC calculation for the T10 Data Integrity Field"
64 This option is only needed if a module that's not in the
65 kernel tree needs to calculate CRC checks for use with the
66 SCSI data integrity subsystem.
69 tristate "CRC ITU-T V.41 functions"
71 This option is provided for the case where no in-kernel-tree
72 modules require CRC ITU-T V.41 functions, but a module built outside
73 the kernel tree does. Such modules that use library CRC ITU-T V.41
74 functions require M here.
77 tristate "CRC32/CRC32c functions"
81 This option is provided for the case where no in-kernel-tree
82 modules require CRC32/CRC32c functions, but a module built outside
83 the kernel tree does. Such modules that use library CRC32/CRC32c
84 functions require M here.
87 bool "CRC32 perform self test on init"
91 This option enables the CRC32 library functions to perform a
92 self test on initialization. The self test computes crc32_le
93 and crc32_be over byte strings with random alignment and length
94 and computes the total elapsed time and number of bytes processed.
97 prompt "CRC32 implementation"
99 default CRC32_SLICEBY8
101 This option allows a kernel builder to override the default choice
102 of CRC32 algorithm. Choose the default ("slice by 8") unless you
103 know that you need one of the others.
105 config CRC32_SLICEBY8
106 bool "Slice by 8 bytes"
108 Calculate checksum 8 bytes at a time with a clever slicing algorithm.
109 This is the fastest algorithm, but comes with a 8KiB lookup table.
110 Most modern processors have enough cache to hold this table without
113 This is the default implementation choice. Choose this one unless
114 you have a good reason not to.
116 config CRC32_SLICEBY4
117 bool "Slice by 4 bytes"
119 Calculate checksum 4 bytes at a time with a clever slicing algorithm.
120 This is a bit slower than slice by 8, but has a smaller 4KiB lookup
123 Only choose this option if you know what you are doing.
126 bool "Sarwate's Algorithm (one byte at a time)"
128 Calculate checksum a byte at a time using Sarwate's algorithm. This
129 is not particularly fast, but has a small 256 byte lookup table.
131 Only choose this option if you know what you are doing.
134 bool "Classic Algorithm (one bit at a time)"
136 Calculate checksum one bit at a time. This is VERY slow, but has
137 no lookup table. This is provided as a debugging option.
139 Only choose this option if you are debugging crc32.
144 tristate "CRC7 functions"
146 This option is provided for the case where no in-kernel-tree
147 modules require CRC7 functions, but a module built outside
148 the kernel tree does. Such modules that use library CRC7
149 functions require M here.
152 tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
156 This option is provided for the case where no in-kernel-tree
157 modules require CRC32c functions, but a module built outside the
158 kernel tree does. Such modules that use library CRC32c functions
159 require M here. See Castagnoli93.
160 Module will be libcrc32c.
163 tristate "CRC8 function"
165 This option provides CRC8 function. Drivers may select this
166 when they need to do cyclic redundancy check according CRC8
167 algorithm. Module will be called crc8.
171 depends on AUDIT && !AUDIT_ARCH
175 # compression support is select'ed if needed
186 config LZO_DECOMPRESS
189 source "lib/xz/Kconfig"
192 # These all provide a common interface (hence the apparent duplication with
193 # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
195 config DECOMPRESS_GZIP
199 config DECOMPRESS_BZIP2
202 config DECOMPRESS_LZMA
209 config DECOMPRESS_LZO
210 select LZO_DECOMPRESS
214 # Generic allocator support is selected if needed
216 config GENERIC_ALLOCATOR
220 # reed solomon support is select'ed if needed
225 config REED_SOLOMON_ENC8
228 config REED_SOLOMON_DEC8
231 config REED_SOLOMON_ENC16
234 config REED_SOLOMON_DEC16
238 # BCH support is selected if needed
243 config BCH_CONST_PARAMS
246 Drivers may select this option to force specific constant
247 values for parameters 'm' (Galois field order) and 't'
248 (error correction capability). Those specific values must
249 be set by declaring default values for symbols BCH_CONST_M
251 Doing so will enable extra compiler optimizations,
252 improving encoding and decoding performance up to 2x for
253 usual (m,t) values (typically such that m*t < 200).
254 When this option is selected, the BCH library supports
255 only a single (m,t) configuration. This is mainly useful
256 for NAND flash board drivers requiring known, fixed BCH
263 Constant value for Galois field order 'm'. If 'k' is the
264 number of data bits to protect, 'm' should be chosen such
265 that (k + m*t) <= 2**m - 1.
266 Drivers should declare a default value for this symbol if
267 they select option BCH_CONST_PARAMS.
272 Constant value for error correction capability in bits 't'.
273 Drivers should declare a default value for this symbol if
274 they select option BCH_CONST_PARAMS.
277 # Textsearch support is select'ed if needed
282 config TEXTSEARCH_KMP
288 config TEXTSEARCH_FSM
302 depends on HAS_IOMEM && !NO_IOPORT
310 config CHECK_SIGNATURE
313 config CPUMASK_OFFSTACK
314 bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
316 Use dynamic allocation for cpumask_var_t, instead of putting
317 them on the stack. This is a bit more expensive, but avoids
320 config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
321 bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
322 depends on EXPERIMENTAL && BROKEN
332 # Netlink attribute parsing support is select'ed if needed
338 # Generic 64-bit atomic support is selected if needed
340 config GENERIC_ATOMIC64
347 bool "Averaging functions"
349 This option is provided for the case where no in-kernel-tree
350 modules require averaging functions, but a module built outside
351 the kernel tree does. Such modules that use library averaging
352 functions require Y here.
360 tristate "CORDIC algorithm"
362 This option provides an implementation of the CORDIC algorithm;
363 calculations are in fixed point. Module will be called cordic.
366 bool "JEDEC DDR data"
368 Data from JEDEC specs for DDR SDRAM memories,
369 particularly the AC timing parameters and addressing
370 information. This data is useful for drivers handling
371 DDR SDRAM controllers.
377 Multiprecision maths library from GnuPG.
378 It is used to implement RSA digital signature verification,
379 which is used by IMA/EVM digital signature extension.
385 Additional sources of multiprecision maths library from GnuPG.
386 This code is unnecessary for RSA digital signature verification,
387 but can be compiled if needed.
391 depends on KEYS && CRYPTO
395 Digital signature verification. Currently only RSA is supported.
396 Implementation is done using GnuPG MPI library