xref: /linux/lib/Kconfig (revision 4370aa4aa75391a5e2e06bccb0919109f725ed8e)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Library configuration
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
5*4370aa4aSLai Jiangshanconfig BINARY_PRINTF
6*4370aa4aSLai Jiangshan	def_bool n
7*4370aa4aSLai Jiangshan
81da177e4SLinus Torvaldsmenu "Library routines"
91da177e4SLinus Torvalds
10a5cfc1ecSAkinobu Mitaconfig BITREVERSE
11a5cfc1ecSAkinobu Mita	tristate
12a5cfc1ecSAkinobu Mita
1319870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
149ba16087SJan Beulich	bool
1519870defSAlexander van Heukelum
1619870defSAlexander van Heukelumconfig GENERIC_FIND_NEXT_BIT
179ba16087SJan Beulich	bool
1819870defSAlexander van Heukelum
19ab53d472SRusty Russellconfig GENERIC_FIND_LAST_BIT
20ab53d472SRusty Russell	bool
21ab53d472SRusty Russell	default y
22ab53d472SRusty Russell
231da177e4SLinus Torvaldsconfig CRC_CCITT
241da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
251da177e4SLinus Torvalds	help
261da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
271da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
281da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
291da177e4SLinus Torvalds	  functions require M here.
301da177e4SLinus Torvalds
317657ec1fSEvgeniy Polyakovconfig CRC16
327657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
337657ec1fSEvgeniy Polyakov	help
347657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
357657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
367657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
377657ec1fSEvgeniy Polyakov	  functions require M here.
387657ec1fSEvgeniy Polyakov
39f11f594eSMartin K. Petersenconfig CRC_T10DIF
40f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
41f11f594eSMartin K. Petersen	help
42f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
43f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
44f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
45f11f594eSMartin K. Petersen
463e7cbae7SIvo van Doornconfig CRC_ITU_T
473e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
483e7cbae7SIvo van Doorn	help
493e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
503e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
513e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
523e7cbae7SIvo van Doorn	  functions require M here.
533e7cbae7SIvo van Doorn
541da177e4SLinus Torvaldsconfig CRC32
551da177e4SLinus Torvalds	tristate "CRC32 functions"
561da177e4SLinus Torvalds	default y
57906d66dfSAkinobu Mita	select BITREVERSE
581da177e4SLinus Torvalds	help
591da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
601da177e4SLinus Torvalds	  modules require CRC32 functions, but a module built outside the
611da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32 functions
621da177e4SLinus Torvalds	  require M here.
631da177e4SLinus Torvalds
64ad241528SJan Nikitenkoconfig CRC7
65ad241528SJan Nikitenko	tristate "CRC7 functions"
66ad241528SJan Nikitenko	help
67ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
68ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
69ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
70ad241528SJan Nikitenko	  functions require M here.
71ad241528SJan Nikitenko
721da177e4SLinus Torvaldsconfig LIBCRC32C
731da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
7493027354SHerbert Xu	select CRYPTO
7569c35efcSHerbert Xu	select CRYPTO_CRC32C
761da177e4SLinus Torvalds	help
771da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
781da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
791da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
801da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
811da177e4SLinus Torvalds	  Module will be libcrc32c.
821da177e4SLinus Torvalds
83e65e1fc2SAl Viroconfig AUDIT_GENERIC
84e65e1fc2SAl Viro	bool
85e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
86e65e1fc2SAl Viro	default y
87e65e1fc2SAl Viro
881da177e4SLinus Torvalds#
891da177e4SLinus Torvalds# compression support is select'ed if needed
901da177e4SLinus Torvalds#
911da177e4SLinus Torvaldsconfig ZLIB_INFLATE
921da177e4SLinus Torvalds	tristate
931da177e4SLinus Torvalds
941da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
951da177e4SLinus Torvalds	tristate
961da177e4SLinus Torvalds
9764c70b1cSRichard Purdieconfig LZO_COMPRESS
9864c70b1cSRichard Purdie	tristate
9964c70b1cSRichard Purdie
10064c70b1cSRichard Purdieconfig LZO_DECOMPRESS
10164c70b1cSRichard Purdie	tristate
10264c70b1cSRichard Purdie
1031da177e4SLinus Torvalds#
104f14f75b8SJes Sorensen# Generic allocator support is selected if needed
105f14f75b8SJes Sorensen#
106f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
107f14f75b8SJes Sorensen	boolean
108f14f75b8SJes Sorensen
109f14f75b8SJes Sorensen#
1101da177e4SLinus Torvalds# reed solomon support is select'ed if needed
1111da177e4SLinus Torvalds#
1121da177e4SLinus Torvaldsconfig REED_SOLOMON
1131da177e4SLinus Torvalds	tristate
1141da177e4SLinus Torvalds
1151da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
1161da177e4SLinus Torvalds	boolean
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
1191da177e4SLinus Torvalds	boolean
1201da177e4SLinus Torvalds
1211da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
1221da177e4SLinus Torvalds	boolean
1231da177e4SLinus Torvalds
1241da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
1251da177e4SLinus Torvalds	boolean
1261da177e4SLinus Torvalds
127f7704347SDavid S. Miller#
128f7704347SDavid S. Miller# Textsearch support is select'ed if needed
129f7704347SDavid S. Miller#
1302de4ff7bSThomas Grafconfig TEXTSEARCH
131f7704347SDavid S. Miller	boolean
1321da177e4SLinus Torvalds
133df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
134f7704347SDavid S. Miller	tristate
135df3fb93aSThomas Graf
1368082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
13729cb9f9cSDavid S. Miller	tristate
1388082e4edSPablo Neira Ayuso
1396408f79cSThomas Grafconfig TEXTSEARCH_FSM
140f7704347SDavid S. Miller	tristate
1416408f79cSThomas Graf
14277ba89c5SIngo Molnar#
14377ba89c5SIngo Molnar# plist support is select#ed if needed
14477ba89c5SIngo Molnar#
14577ba89c5SIngo Molnarconfig PLIST
14677ba89c5SIngo Molnar	boolean
14777ba89c5SIngo Molnar
1485ea81769SAl Viroconfig HAS_IOMEM
149ee36c2bfSAl Viro	boolean
1505ea81769SAl Viro	depends on !NO_IOMEM
1515ea81769SAl Viro	default y
1525ea81769SAl Viro
1535ea81769SAl Viroconfig HAS_IOPORT
1545ea81769SAl Viro	boolean
1555ea81769SAl Viro	depends on HAS_IOMEM && !NO_IOPORT
156ee36c2bfSAl Viro	default y
157ee36c2bfSAl Viro
158411f0f3eSHeiko Carstensconfig HAS_DMA
159411f0f3eSHeiko Carstens	boolean
160411f0f3eSHeiko Carstens	depends on !NO_DMA
161411f0f3eSHeiko Carstens	default y
162411f0f3eSHeiko Carstens
163928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
164928923c7SGeert Uytterhoeven	bool
165928923c7SGeert Uytterhoeven
166d9b2b2a2SDavid S. Millerconfig HAVE_LMB
167d9b2b2a2SDavid S. Miller	boolean
168d9b2b2a2SDavid S. Miller
169aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
170aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
171aab46da0SRusty Russell	help
172aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
173aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
174aab46da0SRusty Russell	  stack overflow.
175aab46da0SRusty Russell
1768c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
1778c384cdeSRusty Russell       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
1788c384cdeSRusty Russell       depends on EXPERIMENTAL && BROKEN
1798c384cdeSRusty Russell
1802de4ff7bSThomas Grafendmenu
181