xref: /linux/lib/Kconfig (revision b923650b84068b74b6df838aa8f9b2a350171de6)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Library configuration
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
54370aa4aSLai Jiangshanconfig BINARY_PRINTF
64370aa4aSLai Jiangshan	def_bool n
74370aa4aSLai Jiangshan
81da177e4SLinus Torvaldsmenu "Library routines"
91da177e4SLinus Torvalds
10f5e70d0fSDavid Woodhouseconfig RAID6_PQ
11f5e70d0fSDavid Woodhouse	tristate
12f5e70d0fSDavid Woodhouse
13a5cfc1ecSAkinobu Mitaconfig BITREVERSE
14a5cfc1ecSAkinobu Mita	tristate
15a5cfc1ecSAkinobu Mita
168759ef32SOskar Schirmerconfig RATIONAL
178759ef32SOskar Schirmer	boolean
188759ef32SOskar Schirmer
1919870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
209ba16087SJan Beulich	bool
2119870defSAlexander van Heukelum
22*b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
23*b923650bSMichael S. Tsirkin	bool
24*b923650bSMichael S. Tsirkin
2566eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP
2666eab4dfSMichael S. Tsirkin	bool
2766eab4dfSMichael S. Tsirkin
284673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
294673ca8eSMichael S. Tsirkin	bool
3066eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
314673ca8eSMichael S. Tsirkin
321da177e4SLinus Torvaldsconfig CRC_CCITT
331da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
341da177e4SLinus Torvalds	help
351da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
361da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
371da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
381da177e4SLinus Torvalds	  functions require M here.
391da177e4SLinus Torvalds
407657ec1fSEvgeniy Polyakovconfig CRC16
417657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
427657ec1fSEvgeniy Polyakov	help
437657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
447657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
457657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
467657ec1fSEvgeniy Polyakov	  functions require M here.
477657ec1fSEvgeniy Polyakov
48f11f594eSMartin K. Petersenconfig CRC_T10DIF
49f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
50f11f594eSMartin K. Petersen	help
51f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
52f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
53f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
54f11f594eSMartin K. Petersen
553e7cbae7SIvo van Doornconfig CRC_ITU_T
563e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
573e7cbae7SIvo van Doorn	help
583e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
593e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
603e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
613e7cbae7SIvo van Doorn	  functions require M here.
623e7cbae7SIvo van Doorn
631da177e4SLinus Torvaldsconfig CRC32
641da177e4SLinus Torvalds	tristate "CRC32 functions"
651da177e4SLinus Torvalds	default y
66906d66dfSAkinobu Mita	select BITREVERSE
671da177e4SLinus Torvalds	help
681da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
691da177e4SLinus Torvalds	  modules require CRC32 functions, but a module built outside the
701da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32 functions
711da177e4SLinus Torvalds	  require M here.
721da177e4SLinus Torvalds
73ad241528SJan Nikitenkoconfig CRC7
74ad241528SJan Nikitenko	tristate "CRC7 functions"
75ad241528SJan Nikitenko	help
76ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
77ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
78ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
79ad241528SJan Nikitenko	  functions require M here.
80ad241528SJan Nikitenko
811da177e4SLinus Torvaldsconfig LIBCRC32C
821da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
8393027354SHerbert Xu	select CRYPTO
8469c35efcSHerbert Xu	select CRYPTO_CRC32C
851da177e4SLinus Torvalds	help
861da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
871da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
881da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
891da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
901da177e4SLinus Torvalds	  Module will be libcrc32c.
911da177e4SLinus Torvalds
927150962dSArend van Sprielconfig CRC8
937150962dSArend van Spriel	tristate "CRC8 function"
947150962dSArend van Spriel	help
957150962dSArend van Spriel	  This option provides CRC8 function. Drivers may select this
967150962dSArend van Spriel	  when they need to do cyclic redundancy check according CRC8
977150962dSArend van Spriel	  algorithm. Module will be called crc8.
987150962dSArend van Spriel
99e65e1fc2SAl Viroconfig AUDIT_GENERIC
100e65e1fc2SAl Viro	bool
101e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
102e65e1fc2SAl Viro	default y
103e65e1fc2SAl Viro
1041da177e4SLinus Torvalds#
1051da177e4SLinus Torvalds# compression support is select'ed if needed
1061da177e4SLinus Torvalds#
1071da177e4SLinus Torvaldsconfig ZLIB_INFLATE
1081da177e4SLinus Torvalds	tristate
1091da177e4SLinus Torvalds
1101da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
1111da177e4SLinus Torvalds	tristate
1121da177e4SLinus Torvalds
11364c70b1cSRichard Purdieconfig LZO_COMPRESS
11464c70b1cSRichard Purdie	tristate
11564c70b1cSRichard Purdie
11664c70b1cSRichard Purdieconfig LZO_DECOMPRESS
11764c70b1cSRichard Purdie	tristate
11864c70b1cSRichard Purdie
11924fa0402SLasse Collinsource "lib/xz/Kconfig"
12024fa0402SLasse Collin
1211da177e4SLinus Torvalds#
122c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
123c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
124c8531ab3SH. Peter Anvin#
125c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
1267856a16eSH. Peter Anvin	select ZLIB_INFLATE
127c8531ab3SH. Peter Anvin	tristate
128c8531ab3SH. Peter Anvin
129c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
130c8531ab3SH. Peter Anvin	tristate
131c8531ab3SH. Peter Anvin
132c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
133c8531ab3SH. Peter Anvin	tristate
134c8531ab3SH. Peter Anvin
1353ebe1243SLasse Collinconfig DECOMPRESS_XZ
1363ebe1243SLasse Collin	select XZ_DEC
1373ebe1243SLasse Collin	tristate
1383ebe1243SLasse Collin
139cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
140cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
141cacb246fSAlbin Tonnerre	tristate
142cacb246fSAlbin Tonnerre
143c8531ab3SH. Peter Anvin#
144f14f75b8SJes Sorensen# Generic allocator support is selected if needed
145f14f75b8SJes Sorensen#
146f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
147f14f75b8SJes Sorensen	boolean
148f14f75b8SJes Sorensen
149f14f75b8SJes Sorensen#
1501da177e4SLinus Torvalds# reed solomon support is select'ed if needed
1511da177e4SLinus Torvalds#
1521da177e4SLinus Torvaldsconfig REED_SOLOMON
1531da177e4SLinus Torvalds	tristate
1541da177e4SLinus Torvalds
1551da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
1561da177e4SLinus Torvalds	boolean
1571da177e4SLinus Torvalds
1581da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
1591da177e4SLinus Torvalds	boolean
1601da177e4SLinus Torvalds
1611da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
1621da177e4SLinus Torvalds	boolean
1631da177e4SLinus Torvalds
1641da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
1651da177e4SLinus Torvalds	boolean
1661da177e4SLinus Torvalds
167f7704347SDavid S. Miller#
168437aa565SIvan Djelic# BCH support is selected if needed
169437aa565SIvan Djelic#
170437aa565SIvan Djelicconfig BCH
171437aa565SIvan Djelic	tristate
172437aa565SIvan Djelic
173437aa565SIvan Djelicconfig BCH_CONST_PARAMS
174437aa565SIvan Djelic	boolean
175437aa565SIvan Djelic	help
176437aa565SIvan Djelic	  Drivers may select this option to force specific constant
177437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
178437aa565SIvan Djelic	  (error correction capability). Those specific values must
179437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
180437aa565SIvan Djelic	  and BCH_CONST_T.
181437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
182437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
183437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
184437aa565SIvan Djelic	  When this option is selected, the BCH library supports
185437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
186437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
187437aa565SIvan Djelic	  parameters.
188437aa565SIvan Djelic
189437aa565SIvan Djelicconfig BCH_CONST_M
190437aa565SIvan Djelic	int
191437aa565SIvan Djelic	range 5 15
192437aa565SIvan Djelic	help
193437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
194437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
195437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
196437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
197437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
198437aa565SIvan Djelic
199437aa565SIvan Djelicconfig BCH_CONST_T
200437aa565SIvan Djelic	int
201437aa565SIvan Djelic	help
202437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
203437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
204437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
205437aa565SIvan Djelic
206437aa565SIvan Djelic#
207f7704347SDavid S. Miller# Textsearch support is select'ed if needed
208f7704347SDavid S. Miller#
2092de4ff7bSThomas Grafconfig TEXTSEARCH
210f7704347SDavid S. Miller	boolean
2111da177e4SLinus Torvalds
212df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
213f7704347SDavid S. Miller	tristate
214df3fb93aSThomas Graf
2158082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
21629cb9f9cSDavid S. Miller	tristate
2178082e4edSPablo Neira Ayuso
2186408f79cSThomas Grafconfig TEXTSEARCH_FSM
219f7704347SDavid S. Miller	tristate
2206408f79cSThomas Graf
2215db53f3eSJoern Engelconfig BTREE
2225db53f3eSJoern Engel	boolean
2235db53f3eSJoern Engel
2245ea81769SAl Viroconfig HAS_IOMEM
225ee36c2bfSAl Viro	boolean
2265ea81769SAl Viro	depends on !NO_IOMEM
2275ea81769SAl Viro	default y
2285ea81769SAl Viro
2295ea81769SAl Viroconfig HAS_IOPORT
2305ea81769SAl Viro	boolean
2315ea81769SAl Viro	depends on HAS_IOMEM && !NO_IOPORT
232ee36c2bfSAl Viro	default y
233ee36c2bfSAl Viro
234411f0f3eSHeiko Carstensconfig HAS_DMA
235411f0f3eSHeiko Carstens	boolean
236411f0f3eSHeiko Carstens	depends on !NO_DMA
237411f0f3eSHeiko Carstens	default y
238411f0f3eSHeiko Carstens
239928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
240928923c7SGeert Uytterhoeven	bool
241928923c7SGeert Uytterhoeven
242aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
243aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
244aab46da0SRusty Russell	help
245aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
246aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
247aab46da0SRusty Russell	  stack overflow.
248aab46da0SRusty Russell
2498c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
2508c384cdeSRusty Russell       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
2518c384cdeSRusty Russell       depends on EXPERIMENTAL && BROKEN
2528c384cdeSRusty Russell
253c39649c3SBen Hutchingsconfig CPU_RMAP
254c39649c3SBen Hutchings	bool
255c39649c3SBen Hutchings	depends on SMP
256c39649c3SBen Hutchings
25775957ba3STom Herbertconfig DQL
25875957ba3STom Herbert	bool
25975957ba3STom Herbert
260e9cc8bddSGeert Uytterhoeven#
261e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
262e9cc8bddSGeert Uytterhoeven#
263e9cc8bddSGeert Uytterhoevenconfig NLATTR
264e9cc8bddSGeert Uytterhoeven	bool
265e9cc8bddSGeert Uytterhoeven
26609d4e0edSPaul Mackerras#
26709d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
26809d4e0edSPaul Mackerras#
26909d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
27009d4e0edSPaul Mackerras       bool
27109d4e0edSPaul Mackerras
272b411b363SPhilipp Reisnerconfig LRU_CACHE
273b411b363SPhilipp Reisner	tristate
274b411b363SPhilipp Reisner
275c5485a7eSBruno Randolfconfig AVERAGE
276a7a9a24dSMichael Buesch	bool "Averaging functions"
277a7a9a24dSMichael Buesch	help
278a7a9a24dSMichael Buesch	  This option is provided for the case where no in-kernel-tree
279a7a9a24dSMichael Buesch	  modules require averaging functions, but a module built outside
280a7a9a24dSMichael Buesch	  the kernel tree does. Such modules that use library averaging
281a7a9a24dSMichael Buesch	  functions require Y here.
282a7a9a24dSMichael Buesch
283a7a9a24dSMichael Buesch	  If unsure, say N.
284c5485a7eSBruno Randolf
28510f8113eSArend van Sprielconfig CORDIC
286d89ce936SMichael Witten	tristate "CORDIC algorithm"
28710f8113eSArend van Spriel	help
288435a95c5SMichael Witten	  This option provides an implementation of the CORDIC algorithm;
289435a95c5SMichael Witten	  calculations are in fixed point. Module will be called cordic.
29010f8113eSArend van Spriel
291d9c46b18SDmitry Kasatkinconfig MPILIB
2922e5f094bSDmitry Kasatkin	tristate
293d9c46b18SDmitry Kasatkin	help
294d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
295d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
296d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
297d9c46b18SDmitry Kasatkin
2987e8dec91SDmitry Kasatkinconfig MPILIB_EXTRA
2992e5f094bSDmitry Kasatkin	bool
3007e8dec91SDmitry Kasatkin	depends on MPILIB
3017e8dec91SDmitry Kasatkin	help
30268adcad5SDmitry Kasatkin	  Additional sources of multiprecision maths library from GnuPG.
30368adcad5SDmitry Kasatkin	  This code is unnecessary for RSA digital signature verification,
30468adcad5SDmitry Kasatkin	  but can be compiled if needed.
3057e8dec91SDmitry Kasatkin
3065e8898e9SDmitry Kasatkinconfig SIGNATURE
3072e5f094bSDmitry Kasatkin	tristate
308be440ec7SDmitry Kasatkin	depends on KEYS && CRYPTO
309be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
310051dbb91SDmitry Kasatkin	select MPILIB
311051dbb91SDmitry Kasatkin	help
312051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
313051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
314051dbb91SDmitry Kasatkin
3152de4ff7bSThomas Grafendmenu
316