xref: /linux/lib/Kconfig (revision 5db53f3e80dee2d9dff5e534f9e9fe1db17c9936)
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
10a5cfc1ecSAkinobu Mitaconfig BITREVERSE
11a5cfc1ecSAkinobu Mita	tristate
12a5cfc1ecSAkinobu Mita
138759ef32SOskar Schirmerconfig RATIONAL
148759ef32SOskar Schirmer	boolean
158759ef32SOskar Schirmer
1619870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
179ba16087SJan Beulich	bool
1819870defSAlexander van Heukelum
1919870defSAlexander van Heukelumconfig GENERIC_FIND_NEXT_BIT
209ba16087SJan Beulich	bool
2119870defSAlexander van Heukelum
22ab53d472SRusty Russellconfig GENERIC_FIND_LAST_BIT
23ab53d472SRusty Russell	bool
24ab53d472SRusty Russell	default y
25ab53d472SRusty Russell
261da177e4SLinus Torvaldsconfig CRC_CCITT
271da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
281da177e4SLinus Torvalds	help
291da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
301da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
311da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
321da177e4SLinus Torvalds	  functions require M here.
331da177e4SLinus Torvalds
347657ec1fSEvgeniy Polyakovconfig CRC16
357657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
367657ec1fSEvgeniy Polyakov	help
377657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
387657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
397657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
407657ec1fSEvgeniy Polyakov	  functions require M here.
417657ec1fSEvgeniy Polyakov
42f11f594eSMartin K. Petersenconfig CRC_T10DIF
43f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
44f11f594eSMartin K. Petersen	help
45f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
46f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
47f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
48f11f594eSMartin K. Petersen
493e7cbae7SIvo van Doornconfig CRC_ITU_T
503e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
513e7cbae7SIvo van Doorn	help
523e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
533e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
543e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
553e7cbae7SIvo van Doorn	  functions require M here.
563e7cbae7SIvo van Doorn
571da177e4SLinus Torvaldsconfig CRC32
581da177e4SLinus Torvalds	tristate "CRC32 functions"
591da177e4SLinus Torvalds	default y
60906d66dfSAkinobu Mita	select BITREVERSE
611da177e4SLinus Torvalds	help
621da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
631da177e4SLinus Torvalds	  modules require CRC32 functions, but a module built outside the
641da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32 functions
651da177e4SLinus Torvalds	  require M here.
661da177e4SLinus Torvalds
67ad241528SJan Nikitenkoconfig CRC7
68ad241528SJan Nikitenko	tristate "CRC7 functions"
69ad241528SJan Nikitenko	help
70ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
71ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
72ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
73ad241528SJan Nikitenko	  functions require M here.
74ad241528SJan Nikitenko
751da177e4SLinus Torvaldsconfig LIBCRC32C
761da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
7793027354SHerbert Xu	select CRYPTO
7869c35efcSHerbert Xu	select CRYPTO_CRC32C
791da177e4SLinus Torvalds	help
801da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
811da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
821da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
831da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
841da177e4SLinus Torvalds	  Module will be libcrc32c.
851da177e4SLinus Torvalds
86e65e1fc2SAl Viroconfig AUDIT_GENERIC
87e65e1fc2SAl Viro	bool
88e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
89e65e1fc2SAl Viro	default y
90e65e1fc2SAl Viro
911da177e4SLinus Torvalds#
921da177e4SLinus Torvalds# compression support is select'ed if needed
931da177e4SLinus Torvalds#
941da177e4SLinus Torvaldsconfig ZLIB_INFLATE
951da177e4SLinus Torvalds	tristate
961da177e4SLinus Torvalds
971da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
981da177e4SLinus Torvalds	tristate
991da177e4SLinus Torvalds
10064c70b1cSRichard Purdieconfig LZO_COMPRESS
10164c70b1cSRichard Purdie	tristate
10264c70b1cSRichard Purdie
10364c70b1cSRichard Purdieconfig LZO_DECOMPRESS
10464c70b1cSRichard Purdie	tristate
10564c70b1cSRichard Purdie
1061da177e4SLinus Torvalds#
107c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
108c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
109c8531ab3SH. Peter Anvin#
110c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
1117856a16eSH. Peter Anvin	select ZLIB_INFLATE
112c8531ab3SH. Peter Anvin	tristate
113c8531ab3SH. Peter Anvin
114c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
115c8531ab3SH. Peter Anvin	tristate
116c8531ab3SH. Peter Anvin
117c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
118c8531ab3SH. Peter Anvin	tristate
119c8531ab3SH. Peter Anvin
120c8531ab3SH. Peter Anvin#
121f14f75b8SJes Sorensen# Generic allocator support is selected if needed
122f14f75b8SJes Sorensen#
123f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
124f14f75b8SJes Sorensen	boolean
125f14f75b8SJes Sorensen
126f14f75b8SJes Sorensen#
1271da177e4SLinus Torvalds# reed solomon support is select'ed if needed
1281da177e4SLinus Torvalds#
1291da177e4SLinus Torvaldsconfig REED_SOLOMON
1301da177e4SLinus Torvalds	tristate
1311da177e4SLinus Torvalds
1321da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
1331da177e4SLinus Torvalds	boolean
1341da177e4SLinus Torvalds
1351da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
1361da177e4SLinus Torvalds	boolean
1371da177e4SLinus Torvalds
1381da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
1391da177e4SLinus Torvalds	boolean
1401da177e4SLinus Torvalds
1411da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
1421da177e4SLinus Torvalds	boolean
1431da177e4SLinus Torvalds
144f7704347SDavid S. Miller#
145f7704347SDavid S. Miller# Textsearch support is select'ed if needed
146f7704347SDavid S. Miller#
1472de4ff7bSThomas Grafconfig TEXTSEARCH
148f7704347SDavid S. Miller	boolean
1491da177e4SLinus Torvalds
150df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
151f7704347SDavid S. Miller	tristate
152df3fb93aSThomas Graf
1538082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
15429cb9f9cSDavid S. Miller	tristate
1558082e4edSPablo Neira Ayuso
1566408f79cSThomas Grafconfig TEXTSEARCH_FSM
157f7704347SDavid S. Miller	tristate
1586408f79cSThomas Graf
159*5db53f3eSJoern Engelconfig BTREE
160*5db53f3eSJoern Engel	boolean
161*5db53f3eSJoern Engel
1625ea81769SAl Viroconfig HAS_IOMEM
163ee36c2bfSAl Viro	boolean
1645ea81769SAl Viro	depends on !NO_IOMEM
1655ea81769SAl Viro	default y
1665ea81769SAl Viro
1675ea81769SAl Viroconfig HAS_IOPORT
1685ea81769SAl Viro	boolean
1695ea81769SAl Viro	depends on HAS_IOMEM && !NO_IOPORT
170ee36c2bfSAl Viro	default y
171ee36c2bfSAl Viro
172411f0f3eSHeiko Carstensconfig HAS_DMA
173411f0f3eSHeiko Carstens	boolean
174411f0f3eSHeiko Carstens	depends on !NO_DMA
175411f0f3eSHeiko Carstens	default y
176411f0f3eSHeiko Carstens
177928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
178928923c7SGeert Uytterhoeven	bool
179928923c7SGeert Uytterhoeven
180d9b2b2a2SDavid S. Millerconfig HAVE_LMB
181d9b2b2a2SDavid S. Miller	boolean
182d9b2b2a2SDavid S. Miller
183aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
184aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
185aab46da0SRusty Russell	help
186aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
187aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
188aab46da0SRusty Russell	  stack overflow.
189aab46da0SRusty Russell
1908c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
1918c384cdeSRusty Russell       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
1928c384cdeSRusty Russell       depends on EXPERIMENTAL && BROKEN
1938c384cdeSRusty Russell
194e9cc8bddSGeert Uytterhoeven#
195e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
196e9cc8bddSGeert Uytterhoeven#
197e9cc8bddSGeert Uytterhoevenconfig NLATTR
198e9cc8bddSGeert Uytterhoeven	bool
199e9cc8bddSGeert Uytterhoeven
20009d4e0edSPaul Mackerras#
20109d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
20209d4e0edSPaul Mackerras#
20309d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
20409d4e0edSPaul Mackerras       bool
20509d4e0edSPaul Mackerras
2062de4ff7bSThomas Grafendmenu
207