xref: /openbmc/linux/lib/Kconfig (revision e8e0929d)
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
120#
121# Generic allocator support is selected if needed
122#
123config GENERIC_ALLOCATOR
124	boolean
125
126#
127# reed solomon support is select'ed if needed
128#
129config REED_SOLOMON
130	tristate
131
132config REED_SOLOMON_ENC8
133	boolean
134
135config REED_SOLOMON_DEC8
136	boolean
137
138config REED_SOLOMON_ENC16
139	boolean
140
141config REED_SOLOMON_DEC16
142	boolean
143
144#
145# Textsearch support is select'ed if needed
146#
147config TEXTSEARCH
148	boolean
149
150config TEXTSEARCH_KMP
151	tristate
152
153config TEXTSEARCH_BM
154	tristate
155
156config TEXTSEARCH_FSM
157	tristate
158
159config HAS_IOMEM
160	boolean
161	depends on !NO_IOMEM
162	default y
163
164config HAS_IOPORT
165	boolean
166	depends on HAS_IOMEM && !NO_IOPORT
167	default y
168
169config HAS_DMA
170	boolean
171	depends on !NO_DMA
172	default y
173
174config CHECK_SIGNATURE
175	bool
176
177config HAVE_LMB
178	boolean
179
180config CPUMASK_OFFSTACK
181	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
182	help
183	  Use dynamic allocation for cpumask_var_t, instead of putting
184	  them on the stack.  This is a bit more expensive, but avoids
185	  stack overflow.
186
187config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
188       bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
189       depends on EXPERIMENTAL && BROKEN
190
191#
192# Netlink attribute parsing support is select'ed if needed
193#
194config NLATTR
195	bool
196
197#
198# Generic 64-bit atomic support is selected if needed
199#
200config GENERIC_ATOMIC64
201       bool
202
203endmenu
204