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