xref: /linux/lib/Kconfig (revision e190bfe56841551b1ad5abb42ebd0c4798cc8c01)
1#
2# Library configuration
3#
4
5config BINARY_PRINTF
6	def_bool n
7
8menu "Library routines"
9
10config BITREVERSE
11	tristate
12
13config RATIONAL
14	boolean
15
16config GENERIC_FIND_FIRST_BIT
17	bool
18
19config GENERIC_FIND_NEXT_BIT
20	bool
21
22config GENERIC_FIND_LAST_BIT
23	bool
24	default y
25
26config CRC_CCITT
27	tristate "CRC-CCITT functions"
28	help
29	  This option is provided for the case where no in-kernel-tree
30	  modules require CRC-CCITT functions, but a module built outside
31	  the kernel tree does. Such modules that use library CRC-CCITT
32	  functions require M here.
33
34config CRC16
35	tristate "CRC16 functions"
36	help
37	  This option is provided for the case where no in-kernel-tree
38	  modules require CRC16 functions, but a module built outside
39	  the kernel tree does. Such modules that use library CRC16
40	  functions require M here.
41
42config CRC_T10DIF
43	tristate "CRC calculation for the T10 Data Integrity Field"
44	help
45	  This option is only needed if a module that's not in the
46	  kernel tree needs to calculate CRC checks for use with the
47	  SCSI data integrity subsystem.
48
49config CRC_ITU_T
50	tristate "CRC ITU-T V.41 functions"
51	help
52	  This option is provided for the case where no in-kernel-tree
53	  modules require CRC ITU-T V.41 functions, but a module built outside
54	  the kernel tree does. Such modules that use library CRC ITU-T V.41
55	  functions require M here.
56
57config CRC32
58	tristate "CRC32 functions"
59	default y
60	select BITREVERSE
61	help
62	  This option is provided for the case where no in-kernel-tree
63	  modules require CRC32 functions, but a module built outside the
64	  kernel tree does. Such modules that use library CRC32 functions
65	  require M here.
66
67config CRC7
68	tristate "CRC7 functions"
69	help
70	  This option is provided for the case where no in-kernel-tree
71	  modules require CRC7 functions, but a module built outside
72	  the kernel tree does. Such modules that use library CRC7
73	  functions require M here.
74
75config LIBCRC32C
76	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
77	select CRYPTO
78	select CRYPTO_CRC32C
79	help
80	  This option is provided for the case where no in-kernel-tree
81	  modules require CRC32c functions, but a module built outside the
82	  kernel tree does. Such modules that use library CRC32c functions
83	  require M here.  See Castagnoli93.
84	  Module will be libcrc32c.
85
86config AUDIT_GENERIC
87	bool
88	depends on AUDIT && !AUDIT_ARCH
89	default y
90
91#
92# compression support is select'ed if needed
93#
94config ZLIB_INFLATE
95	tristate
96
97config ZLIB_DEFLATE
98	tristate
99
100config LZO_COMPRESS
101	tristate
102
103config LZO_DECOMPRESS
104	tristate
105
106#
107# These all provide a common interface (hence the apparent duplication with
108# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
109#
110config DECOMPRESS_GZIP
111	select ZLIB_INFLATE
112	tristate
113
114config DECOMPRESS_BZIP2
115	tristate
116
117config DECOMPRESS_LZMA
118	tristate
119
120config DECOMPRESS_LZO
121	select LZO_DECOMPRESS
122	tristate
123
124#
125# Generic allocator support is selected if needed
126#
127config GENERIC_ALLOCATOR
128	boolean
129
130#
131# reed solomon support is select'ed if needed
132#
133config REED_SOLOMON
134	tristate
135
136config REED_SOLOMON_ENC8
137	boolean
138
139config REED_SOLOMON_DEC8
140	boolean
141
142config REED_SOLOMON_ENC16
143	boolean
144
145config REED_SOLOMON_DEC16
146	boolean
147
148#
149# Textsearch support is select'ed if needed
150#
151config TEXTSEARCH
152	boolean
153
154config TEXTSEARCH_KMP
155	tristate
156
157config TEXTSEARCH_BM
158	tristate
159
160config TEXTSEARCH_FSM
161	tristate
162
163config BTREE
164	boolean
165
166config HAS_IOMEM
167	boolean
168	depends on !NO_IOMEM
169	default y
170
171config HAS_IOPORT
172	boolean
173	depends on HAS_IOMEM && !NO_IOPORT
174	default y
175
176config HAS_DMA
177	boolean
178	depends on !NO_DMA
179	default y
180
181config CHECK_SIGNATURE
182	bool
183
184config HAVE_LMB
185	boolean
186
187config CPUMASK_OFFSTACK
188	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
189	help
190	  Use dynamic allocation for cpumask_var_t, instead of putting
191	  them on the stack.  This is a bit more expensive, but avoids
192	  stack overflow.
193
194config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
195       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
196       depends on EXPERIMENTAL && BROKEN
197
198#
199# Netlink attribute parsing support is select'ed if needed
200#
201config NLATTR
202	bool
203
204#
205# Generic 64-bit atomic support is selected if needed
206#
207config GENERIC_ATOMIC64
208       bool
209
210config LRU_CACHE
211	tristate
212
213endmenu
214