xref: /linux/lib/Kconfig (revision 7856a16ea03ed9b17860d756ee6473c2e57882b2)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Library configuration
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsmenu "Library routines"
61da177e4SLinus Torvalds
7a5cfc1ecSAkinobu Mitaconfig BITREVERSE
8a5cfc1ecSAkinobu Mita	tristate
9a5cfc1ecSAkinobu Mita
1019870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
119ba16087SJan Beulich	bool
1219870defSAlexander van Heukelum
1319870defSAlexander van Heukelumconfig GENERIC_FIND_NEXT_BIT
149ba16087SJan Beulich	bool
1519870defSAlexander van Heukelum
16ab53d472SRusty Russellconfig GENERIC_FIND_LAST_BIT
17ab53d472SRusty Russell	bool
18ab53d472SRusty Russell	default y
19ab53d472SRusty Russell
201da177e4SLinus Torvaldsconfig CRC_CCITT
211da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
221da177e4SLinus Torvalds	help
231da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
241da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
251da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
261da177e4SLinus Torvalds	  functions require M here.
271da177e4SLinus Torvalds
287657ec1fSEvgeniy Polyakovconfig CRC16
297657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
307657ec1fSEvgeniy Polyakov	help
317657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
327657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
337657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
347657ec1fSEvgeniy Polyakov	  functions require M here.
357657ec1fSEvgeniy Polyakov
36f11f594eSMartin K. Petersenconfig CRC_T10DIF
37f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
38f11f594eSMartin K. Petersen	help
39f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
40f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
41f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
42f11f594eSMartin K. Petersen
433e7cbae7SIvo van Doornconfig CRC_ITU_T
443e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
453e7cbae7SIvo van Doorn	help
463e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
473e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
483e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
493e7cbae7SIvo van Doorn	  functions require M here.
503e7cbae7SIvo van Doorn
511da177e4SLinus Torvaldsconfig CRC32
521da177e4SLinus Torvalds	tristate "CRC32 functions"
531da177e4SLinus Torvalds	default y
54906d66dfSAkinobu Mita	select BITREVERSE
551da177e4SLinus Torvalds	help
561da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
571da177e4SLinus Torvalds	  modules require CRC32 functions, but a module built outside the
581da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32 functions
591da177e4SLinus Torvalds	  require M here.
601da177e4SLinus Torvalds
61ad241528SJan Nikitenkoconfig CRC7
62ad241528SJan Nikitenko	tristate "CRC7 functions"
63ad241528SJan Nikitenko	help
64ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
65ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
66ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
67ad241528SJan Nikitenko	  functions require M here.
68ad241528SJan Nikitenko
691da177e4SLinus Torvaldsconfig LIBCRC32C
701da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
7193027354SHerbert Xu	select CRYPTO
7269c35efcSHerbert Xu	select CRYPTO_CRC32C
731da177e4SLinus Torvalds	help
741da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
751da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
761da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
771da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
781da177e4SLinus Torvalds	  Module will be libcrc32c.
791da177e4SLinus Torvalds
80e65e1fc2SAl Viroconfig AUDIT_GENERIC
81e65e1fc2SAl Viro	bool
82e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
83e65e1fc2SAl Viro	default y
84e65e1fc2SAl Viro
851da177e4SLinus Torvalds#
861da177e4SLinus Torvalds# compression support is select'ed if needed
871da177e4SLinus Torvalds#
881da177e4SLinus Torvaldsconfig ZLIB_INFLATE
891da177e4SLinus Torvalds	tristate
901da177e4SLinus Torvalds
911da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
921da177e4SLinus Torvalds	tristate
931da177e4SLinus Torvalds
9464c70b1cSRichard Purdieconfig LZO_COMPRESS
9564c70b1cSRichard Purdie	tristate
9664c70b1cSRichard Purdie
9764c70b1cSRichard Purdieconfig LZO_DECOMPRESS
9864c70b1cSRichard Purdie	tristate
9964c70b1cSRichard Purdie
1001da177e4SLinus Torvalds#
101c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
102c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
103c8531ab3SH. Peter Anvin#
104c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
105*7856a16eSH. Peter Anvin	select ZLIB_INFLATE
106c8531ab3SH. Peter Anvin	tristate
107c8531ab3SH. Peter Anvin
108c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
109c8531ab3SH. Peter Anvin	tristate
110c8531ab3SH. Peter Anvin
111c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
112c8531ab3SH. Peter Anvin	tristate
113c8531ab3SH. Peter Anvin
114c8531ab3SH. Peter Anvin#
115f14f75b8SJes Sorensen# Generic allocator support is selected if needed
116f14f75b8SJes Sorensen#
117f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
118f14f75b8SJes Sorensen	boolean
119f14f75b8SJes Sorensen
120f14f75b8SJes Sorensen#
1211da177e4SLinus Torvalds# reed solomon support is select'ed if needed
1221da177e4SLinus Torvalds#
1231da177e4SLinus Torvaldsconfig REED_SOLOMON
1241da177e4SLinus Torvalds	tristate
1251da177e4SLinus Torvalds
1261da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
1271da177e4SLinus Torvalds	boolean
1281da177e4SLinus Torvalds
1291da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
1301da177e4SLinus Torvalds	boolean
1311da177e4SLinus Torvalds
1321da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
1331da177e4SLinus Torvalds	boolean
1341da177e4SLinus Torvalds
1351da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
1361da177e4SLinus Torvalds	boolean
1371da177e4SLinus Torvalds
138f7704347SDavid S. Miller#
139f7704347SDavid S. Miller# Textsearch support is select'ed if needed
140f7704347SDavid S. Miller#
1412de4ff7bSThomas Grafconfig TEXTSEARCH
142f7704347SDavid S. Miller	boolean
1431da177e4SLinus Torvalds
144df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
145f7704347SDavid S. Miller	tristate
146df3fb93aSThomas Graf
1478082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
14829cb9f9cSDavid S. Miller	tristate
1498082e4edSPablo Neira Ayuso
1506408f79cSThomas Grafconfig TEXTSEARCH_FSM
151f7704347SDavid S. Miller	tristate
1526408f79cSThomas Graf
15377ba89c5SIngo Molnar#
15477ba89c5SIngo Molnar# plist support is select#ed if needed
15577ba89c5SIngo Molnar#
15677ba89c5SIngo Molnarconfig PLIST
15777ba89c5SIngo Molnar	boolean
15877ba89c5SIngo Molnar
1595ea81769SAl Viroconfig HAS_IOMEM
160ee36c2bfSAl Viro	boolean
1615ea81769SAl Viro	depends on !NO_IOMEM
1625ea81769SAl Viro	default y
1635ea81769SAl Viro
1645ea81769SAl Viroconfig HAS_IOPORT
1655ea81769SAl Viro	boolean
1665ea81769SAl Viro	depends on HAS_IOMEM && !NO_IOPORT
167ee36c2bfSAl Viro	default y
168ee36c2bfSAl Viro
169411f0f3eSHeiko Carstensconfig HAS_DMA
170411f0f3eSHeiko Carstens	boolean
171411f0f3eSHeiko Carstens	depends on !NO_DMA
172411f0f3eSHeiko Carstens	default y
173411f0f3eSHeiko Carstens
174928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
175928923c7SGeert Uytterhoeven	bool
176928923c7SGeert Uytterhoeven
177d9b2b2a2SDavid S. Millerconfig HAVE_LMB
178d9b2b2a2SDavid S. Miller	boolean
179d9b2b2a2SDavid S. Miller
180aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
181aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
182aab46da0SRusty Russell	help
183aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
184aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
185aab46da0SRusty Russell	  stack overflow.
186aab46da0SRusty Russell
1878c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
1888c384cdeSRusty Russell       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
1898c384cdeSRusty Russell       depends on EXPERIMENTAL && BROKEN
1908c384cdeSRusty Russell
1912de4ff7bSThomas Grafendmenu
192