299c5a8c3541fbf4bb5bda5b761fba2982009af9
[openwrt/staging/ldir.git] / package / kernel / linux / modules / lib.mk
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 LIB_MENU:=Libraries
9
10 define KernelPackage/lib-crc-ccitt
11 SUBMENU:=$(LIB_MENU)
12 TITLE:=CRC-CCITT support
13 KCONFIG:=CONFIG_CRC_CCITT
14 FILES:=$(LINUX_DIR)/lib/crc-ccitt.ko
15 AUTOLOAD:=$(call AutoProbe,crc-ccitt)
16 endef
17
18 define KernelPackage/lib-crc-ccitt/description
19 Kernel module for CRC-CCITT support
20 endef
21
22 $(eval $(call KernelPackage,lib-crc-ccitt))
23
24
25 define KernelPackage/lib-crc-itu-t
26 SUBMENU:=$(LIB_MENU)
27 TITLE:=CRC ITU-T V.41 support
28 KCONFIG:=CONFIG_CRC_ITU_T
29 FILES:=$(LINUX_DIR)/lib/crc-itu-t.ko
30 AUTOLOAD:=$(call AutoProbe,crc-itu-t)
31 endef
32
33 define KernelPackage/lib-crc-itu-t/description
34 Kernel module for CRC ITU-T V.41 support
35 endef
36
37 $(eval $(call KernelPackage,lib-crc-itu-t))
38
39
40 define KernelPackage/lib-crc7
41 SUBMENU:=$(LIB_MENU)
42 TITLE:=CRC7 support
43 KCONFIG:=CONFIG_CRC7
44 FILES:=$(LINUX_DIR)/lib/crc7.ko
45 AUTOLOAD:=$(call AutoProbe,crc7)
46 endef
47
48 define KernelPackage/lib-crc7/description
49 Kernel module for CRC7 support
50 endef
51
52 $(eval $(call KernelPackage,lib-crc7))
53
54
55 define KernelPackage/lib-crc8
56 SUBMENU:=$(LIB_MENU)
57 TITLE:=CRC8 support
58 KCONFIG:=CONFIG_CRC8
59 FILES:=$(LINUX_DIR)/lib/crc8.ko
60 AUTOLOAD:=$(call AutoProbe,crc8)
61 endef
62
63 define KernelPackage/lib-crc8/description
64 Kernel module for CRC8 support
65 endef
66
67 $(eval $(call KernelPackage,lib-crc8))
68
69
70 define KernelPackage/lib-crc16
71 SUBMENU:=$(LIB_MENU)
72 TITLE:=CRC16 support
73 KCONFIG:=CONFIG_CRC16
74 FILES:=$(LINUX_DIR)/lib/crc16.ko
75 AUTOLOAD:=$(call AutoLoad,20,crc16,1)
76 endef
77
78 define KernelPackage/lib-crc16/description
79 Kernel module for CRC16 support
80 endef
81
82 $(eval $(call KernelPackage,lib-crc16))
83
84
85 define KernelPackage/lib-crc32c
86 SUBMENU:=$(LIB_MENU)
87 TITLE:=CRC32 support
88 KCONFIG:=CONFIG_LIBCRC32C
89 DEPENDS:=+kmod-crypto-crc32c
90 FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
91 AUTOLOAD:=$(call AutoProbe,libcrc32c)
92 endef
93
94 define KernelPackage/lib-crc32c/description
95 Kernel module for CRC32 support
96 endef
97
98 $(eval $(call KernelPackage,lib-crc32c))
99
100
101 define KernelPackage/lib-lzo
102 SUBMENU:=$(LIB_MENU)
103 TITLE:=LZO support
104 DEPENDS:=+kmod-crypto-acompress
105 KCONFIG:= \
106 CONFIG_CRYPTO_LZO \
107 CONFIG_LZO_COMPRESS \
108 CONFIG_LZO_DECOMPRESS
109 HIDDEN:=1
110 FILES:= \
111 $(LINUX_DIR)/crypto/lzo.ko \
112 $(LINUX_DIR)/crypto/lzo-rle.ko \
113 $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
114 $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
115 AUTOLOAD:=$(call AutoProbe,lzo lzo-rle lzo_compress lzo_decompress)
116 endef
117
118 define KernelPackage/lib-lzo/description
119 Kernel module for LZO compression/decompression support
120 endef
121
122 $(eval $(call KernelPackage,lib-lzo))
123
124
125 define KernelPackage/lib-zstd
126 SUBMENU:=$(LIB_MENU)
127 TITLE:=ZSTD support
128 DEPENDS:=+kmod-crypto-acompress
129 KCONFIG:= \
130 CONFIG_CRYPTO_ZSTD \
131 CONFIG_ZSTD_COMPRESS \
132 CONFIG_ZSTD_DECOMPRESS \
133 CONFIG_XXHASH
134 FILES:= \
135 $(LINUX_DIR)/crypto/zstd.ko \
136 $(LINUX_DIR)/lib/xxhash.ko \
137 $(LINUX_DIR)/lib/zstd/zstd_compress.ko \
138 $(LINUX_DIR)/lib/zstd/zstd_decompress.ko
139 AUTOLOAD:=$(call AutoProbe,xxhash zstd zstd_compress zstd_decompress)
140 endef
141
142 define KernelPackage/lib-zstd/description
143 Kernel module for ZSTD compression/decompression support
144 endef
145
146 $(eval $(call KernelPackage,lib-zstd))
147
148
149 define KernelPackage/lib-lz4
150 SUBMENU:=$(LIB_MENU)
151 TITLE:=LZ4 support
152 DEPENDS:=+kmod-crypto-acompress
153 KCONFIG:= \
154 CONFIG_CRYPTO_LZ4 \
155 CONFIG_CRYPTO_LZ4HC \
156 CONFIG_LZ4_COMPRESS \
157 CONFIG_LZ4_DECOMPRESS
158 FILES:= \
159 $(LINUX_DIR)/crypto/lz4.ko \
160 $(LINUX_DIR)/lib/lz4/lz4_compress.ko \
161 $(LINUX_DIR)/lib/lz4/lz4hc_compress.ko \
162 $(LINUX_DIR)/lib/lz4/lz4_decompress.ko
163 AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress lz4hc_compress lz4_decompress)
164 endef
165
166 define KernelPackage/lib-lz4/description
167 Kernel module for LZ4 compression/decompression support
168 endef
169
170 $(eval $(call KernelPackage,lib-lz4))
171
172
173 define KernelPackage/lib-842
174 SUBMENU:=$(LIB_MENU)
175 TITLE:=842 support
176 DEPENDS:=+kmod-crypto-acompress +kmod-crypto-crc32
177 KCONFIG:= \
178 CONFIG_CRYPTO_842 \
179 CONFIG_842_COMPRESS \
180 CONFIG_842_DECOMPRESS
181 FILES:= \
182 $(LINUX_DIR)/crypto/842.ko \
183 $(LINUX_DIR)/lib/842/842_compress.ko \
184 $(LINUX_DIR)/lib/842/842_decompress.ko
185 AUTOLOAD:=$(call AutoProbe,842 842_compress 842_decompress)
186 endef
187
188 define KernelPackage/lib-842/description
189 Kernel module for 842 compression/decompression support
190 endef
191
192 $(eval $(call KernelPackage,lib-842))
193
194
195 define KernelPackage/lib-raid6
196 SUBMENU:=$(LIB_MENU)
197 TITLE:=RAID6 algorithm support
198 HIDDEN:=1
199 KCONFIG:=CONFIG_RAID6_PQ
200 FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
201 AUTOLOAD:=$(call AutoProbe,raid6_pq)
202 endef
203
204 define KernelPackage/lib-raid6/description
205 Kernel module for RAID6 algorithms
206 endef
207
208 $(eval $(call KernelPackage,lib-raid6))
209
210
211 define KernelPackage/lib-xor
212 SUBMENU:=$(LIB_MENU)
213 TITLE:=XOR blocks algorithm support
214 HIDDEN:=1
215 KCONFIG:=CONFIG_XOR_BLOCKS
216 ifneq ($(wildcard $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko),)
217 FILES:= \
218 $(LINUX_DIR)/crypto/xor.ko \
219 $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko
220 AUTOLOAD:=$(call AutoProbe,xor-neon xor)
221 else
222 FILES:=$(LINUX_DIR)/crypto/xor.ko
223 AUTOLOAD:=$(call AutoProbe,xor)
224 endif
225 endef
226
227 define KernelPackage/lib-xor/description
228 Kernel module for XOR blocks algorithms
229 endef
230
231 $(eval $(call KernelPackage,lib-xor))
232
233
234 define KernelPackage/lib-textsearch
235 SUBMENU:=$(LIB_MENU)
236 TITLE:=Textsearch support
237 KCONFIG:= \
238 CONFIG_TEXTSEARCH=y \
239 CONFIG_TEXTSEARCH_KMP \
240 CONFIG_TEXTSEARCH_BM \
241 CONFIG_TEXTSEARCH_FSM
242 FILES:= \
243 $(LINUX_DIR)/lib/ts_kmp.ko \
244 $(LINUX_DIR)/lib/ts_bm.ko \
245 $(LINUX_DIR)/lib/ts_fsm.ko
246 AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
247 endef
248
249 $(eval $(call KernelPackage,lib-textsearch))
250
251
252 define KernelPackage/lib-zlib-inflate
253 SUBMENU:=$(LIB_MENU)
254 TITLE:=Zlib support
255 HIDDEN:=1
256 KCONFIG:=CONFIG_ZLIB_INFLATE
257 FILES:=$(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
258 AUTOLOAD:=$(call AutoProbe,zlib_inflate)
259 endef
260
261 $(eval $(call KernelPackage,lib-zlib-inflate))
262
263
264 define KernelPackage/lib-zlib-deflate
265 SUBMENU:=$(LIB_MENU)
266 TITLE:=Zlib support
267 HIDDEN:=1
268 KCONFIG:=CONFIG_ZLIB_DEFLATE
269 FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
270 AUTOLOAD:=$(call AutoProbe,zlib_deflate)
271 endef
272
273 $(eval $(call KernelPackage,lib-zlib-deflate))
274
275
276 define KernelPackage/lib-cordic
277 SUBMENU:=$(LIB_MENU)
278 TITLE:=Cordic function support
279 KCONFIG:=CONFIG_CORDIC
280 FILES:=$(LINUX_DIR)/lib/math/cordic.ko
281 AUTOLOAD:=$(call AutoProbe,cordic)
282 endef
283
284 define KernelPackage/lib-cordic/description
285 Kernel module for Cordic function support
286 endef
287
288 $(eval $(call KernelPackage,lib-cordic))
289
290
291 define KernelPackage/asn1-decoder
292 SUBMENU:=$(LIB_MENU)
293 TITLE:=Simple ASN1 decoder
294 KCONFIG:= CONFIG_ASN1
295 HIDDEN:=1
296 FILES:=$(LINUX_DIR)/lib/asn1_decoder.ko
297 endef
298
299 $(eval $(call KernelPackage,asn1-decoder))
300
301 define KernelPackage/asn1-encoder
302 SUBMENU:=$(LIB_MENU)
303 TITLE:=Simple ASN1 encoder
304 KCONFIG:= CONFIG_ASN1_ENCODER
305 HIDDEN:=1
306 FILES:=$(LINUX_DIR)/lib/asn1_encoder.ko
307 endef
308
309 $(eval $(call KernelPackage,asn1-encoder))
310
311 define KernelPackage/oid-registry
312 SUBMENU:=$(LIB_MENU)
313 TITLE:=Object identifier registry
314 KCONFIG:= CONFIG_OID_REGISTRY
315 FILES:=$(LINUX_DIR)/lib/oid_registry.ko
316 AUTOLOAD:=$(call AutoLoad,31,oid_registry)
317 endef
318
319 $(eval $(call KernelPackage,oid-registry))