xref: /openbmc/linux/lib/Kconfig (revision f49f23ab)
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
221da177e4SLinus Torvaldsconfig CRC_CCITT
231da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
241da177e4SLinus Torvalds	help
251da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
261da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
271da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
281da177e4SLinus Torvalds	  functions require M here.
291da177e4SLinus Torvalds
307657ec1fSEvgeniy Polyakovconfig CRC16
317657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
327657ec1fSEvgeniy Polyakov	help
337657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
347657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
357657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
367657ec1fSEvgeniy Polyakov	  functions require M here.
377657ec1fSEvgeniy Polyakov
38f11f594eSMartin K. Petersenconfig CRC_T10DIF
39f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
40f11f594eSMartin K. Petersen	help
41f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
42f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
43f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
44f11f594eSMartin K. Petersen
453e7cbae7SIvo van Doornconfig CRC_ITU_T
463e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
473e7cbae7SIvo van Doorn	help
483e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
493e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
503e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
513e7cbae7SIvo van Doorn	  functions require M here.
523e7cbae7SIvo van Doorn
531da177e4SLinus Torvaldsconfig CRC32
541da177e4SLinus Torvalds	tristate "CRC32 functions"
551da177e4SLinus Torvalds	default y
56906d66dfSAkinobu Mita	select BITREVERSE
571da177e4SLinus Torvalds	help
581da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
591da177e4SLinus Torvalds	  modules require CRC32 functions, but a module built outside the
601da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32 functions
611da177e4SLinus Torvalds	  require M here.
621da177e4SLinus Torvalds
63ad241528SJan Nikitenkoconfig CRC7
64ad241528SJan Nikitenko	tristate "CRC7 functions"
65ad241528SJan Nikitenko	help
66ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
67ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
68ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
69ad241528SJan Nikitenko	  functions require M here.
70ad241528SJan Nikitenko
711da177e4SLinus Torvaldsconfig LIBCRC32C
721da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
7393027354SHerbert Xu	select CRYPTO
7469c35efcSHerbert Xu	select CRYPTO_CRC32C
751da177e4SLinus Torvalds	help
761da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
771da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
781da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
791da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
801da177e4SLinus Torvalds	  Module will be libcrc32c.
811da177e4SLinus Torvalds
82e65e1fc2SAl Viroconfig AUDIT_GENERIC
83e65e1fc2SAl Viro	bool
84e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
85e65e1fc2SAl Viro	default y
86e65e1fc2SAl Viro
871da177e4SLinus Torvalds#
881da177e4SLinus Torvalds# compression support is select'ed if needed
891da177e4SLinus Torvalds#
901da177e4SLinus Torvaldsconfig ZLIB_INFLATE
911da177e4SLinus Torvalds	tristate
921da177e4SLinus Torvalds
931da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
941da177e4SLinus Torvalds	tristate
951da177e4SLinus Torvalds
9664c70b1cSRichard Purdieconfig LZO_COMPRESS
9764c70b1cSRichard Purdie	tristate
9864c70b1cSRichard Purdie
9964c70b1cSRichard Purdieconfig LZO_DECOMPRESS
10064c70b1cSRichard Purdie	tristate
10164c70b1cSRichard Purdie
10224fa0402SLasse Collinsource "lib/xz/Kconfig"
10324fa0402SLasse Collin
1041da177e4SLinus Torvalds#
105c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
106c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
107c8531ab3SH. Peter Anvin#
108c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
1097856a16eSH. Peter Anvin	select ZLIB_INFLATE
110c8531ab3SH. Peter Anvin	tristate
111c8531ab3SH. Peter Anvin
112c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
113c8531ab3SH. Peter Anvin	tristate
114c8531ab3SH. Peter Anvin
115c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
116c8531ab3SH. Peter Anvin	tristate
117c8531ab3SH. Peter Anvin
1183ebe1243SLasse Collinconfig DECOMPRESS_XZ
1193ebe1243SLasse Collin	select XZ_DEC
1203ebe1243SLasse Collin	tristate
1213ebe1243SLasse Collin
122cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
123cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
124cacb246fSAlbin Tonnerre	tristate
125cacb246fSAlbin Tonnerre
126c8531ab3SH. Peter Anvin#
127f14f75b8SJes Sorensen# Generic allocator support is selected if needed
128f14f75b8SJes Sorensen#
129f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
130f14f75b8SJes Sorensen	boolean
131f14f75b8SJes Sorensen
132f14f75b8SJes Sorensen#
1331da177e4SLinus Torvalds# reed solomon support is select'ed if needed
1341da177e4SLinus Torvalds#
1351da177e4SLinus Torvaldsconfig REED_SOLOMON
1361da177e4SLinus Torvalds	tristate
1371da177e4SLinus Torvalds
1381da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
1391da177e4SLinus Torvalds	boolean
1401da177e4SLinus Torvalds
1411da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
1421da177e4SLinus Torvalds	boolean
1431da177e4SLinus Torvalds
1441da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
1451da177e4SLinus Torvalds	boolean
1461da177e4SLinus Torvalds
1471da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
1481da177e4SLinus Torvalds	boolean
1491da177e4SLinus Torvalds
150f7704347SDavid S. Miller#
151437aa565SIvan Djelic# BCH support is selected if needed
152437aa565SIvan Djelic#
153437aa565SIvan Djelicconfig BCH
154437aa565SIvan Djelic	tristate
155437aa565SIvan Djelic
156437aa565SIvan Djelicconfig BCH_CONST_PARAMS
157437aa565SIvan Djelic	boolean
158437aa565SIvan Djelic	help
159437aa565SIvan Djelic	  Drivers may select this option to force specific constant
160437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
161437aa565SIvan Djelic	  (error correction capability). Those specific values must
162437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
163437aa565SIvan Djelic	  and BCH_CONST_T.
164437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
165437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
166437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
167437aa565SIvan Djelic	  When this option is selected, the BCH library supports
168437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
169437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
170437aa565SIvan Djelic	  parameters.
171437aa565SIvan Djelic
172437aa565SIvan Djelicconfig BCH_CONST_M
173437aa565SIvan Djelic	int
174437aa565SIvan Djelic	range 5 15
175437aa565SIvan Djelic	help
176437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
177437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
178437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
179437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
180437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
181437aa565SIvan Djelic
182437aa565SIvan Djelicconfig BCH_CONST_T
183437aa565SIvan Djelic	int
184437aa565SIvan Djelic	help
185437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
186437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
187437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
188437aa565SIvan Djelic
189437aa565SIvan Djelic#
190f7704347SDavid S. Miller# Textsearch support is select'ed if needed
191f7704347SDavid S. Miller#
1922de4ff7bSThomas Grafconfig TEXTSEARCH
193f7704347SDavid S. Miller	boolean
1941da177e4SLinus Torvalds
195df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
196f7704347SDavid S. Miller	tristate
197df3fb93aSThomas Graf
1988082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
19929cb9f9cSDavid S. Miller	tristate
2008082e4edSPablo Neira Ayuso
2016408f79cSThomas Grafconfig TEXTSEARCH_FSM
202f7704347SDavid S. Miller	tristate
2036408f79cSThomas Graf
2045db53f3eSJoern Engelconfig BTREE
2055db53f3eSJoern Engel	boolean
2065db53f3eSJoern Engel
2075ea81769SAl Viroconfig HAS_IOMEM
208ee36c2bfSAl Viro	boolean
2095ea81769SAl Viro	depends on !NO_IOMEM
2105ea81769SAl Viro	default y
2115ea81769SAl Viro
2125ea81769SAl Viroconfig HAS_IOPORT
2135ea81769SAl Viro	boolean
2145ea81769SAl Viro	depends on HAS_IOMEM && !NO_IOPORT
215ee36c2bfSAl Viro	default y
216ee36c2bfSAl Viro
217411f0f3eSHeiko Carstensconfig HAS_DMA
218411f0f3eSHeiko Carstens	boolean
219411f0f3eSHeiko Carstens	depends on !NO_DMA
220411f0f3eSHeiko Carstens	default y
221411f0f3eSHeiko Carstens
222928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
223928923c7SGeert Uytterhoeven	bool
224928923c7SGeert Uytterhoeven
225aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
226aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
227aab46da0SRusty Russell	help
228aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
229aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
230aab46da0SRusty Russell	  stack overflow.
231aab46da0SRusty Russell
2328c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
2338c384cdeSRusty Russell       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
2348c384cdeSRusty Russell       depends on EXPERIMENTAL && BROKEN
2358c384cdeSRusty Russell
236c39649c3SBen Hutchingsconfig CPU_RMAP
237c39649c3SBen Hutchings	bool
238c39649c3SBen Hutchings	depends on SMP
239c39649c3SBen Hutchings
240e9cc8bddSGeert Uytterhoeven#
241e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
242e9cc8bddSGeert Uytterhoeven#
243e9cc8bddSGeert Uytterhoevenconfig NLATTR
244e9cc8bddSGeert Uytterhoeven	bool
245e9cc8bddSGeert Uytterhoeven
24609d4e0edSPaul Mackerras#
24709d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
24809d4e0edSPaul Mackerras#
24909d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
25009d4e0edSPaul Mackerras       bool
25109d4e0edSPaul Mackerras
252b411b363SPhilipp Reisnerconfig LRU_CACHE
253b411b363SPhilipp Reisner	tristate
254b411b363SPhilipp Reisner
255c5485a7eSBruno Randolfconfig AVERAGE
256a7a9a24dSMichael Buesch	bool "Averaging functions"
257a7a9a24dSMichael Buesch	help
258a7a9a24dSMichael Buesch	  This option is provided for the case where no in-kernel-tree
259a7a9a24dSMichael Buesch	  modules require averaging functions, but a module built outside
260a7a9a24dSMichael Buesch	  the kernel tree does. Such modules that use library averaging
261a7a9a24dSMichael Buesch	  functions require Y here.
262a7a9a24dSMichael Buesch
263a7a9a24dSMichael Buesch	  If unsure, say N.
264c5485a7eSBruno Randolf
265*f49f23abSHuang Yingconfig LLIST
266*f49f23abSHuang Ying	bool
267*f49f23abSHuang Ying
2682de4ff7bSThomas Grafendmenu
269