2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 define KernelPackage
/lib-crc-ccitt
12 TITLE
:=CRC-CCITT support
13 KCONFIG
:=CONFIG_CRC_CCITT
14 FILES
:=$(LINUX_DIR
)/lib
/crc-ccitt.ko
15 AUTOLOAD
:=$(call AutoProbe
,crc-ccitt
)
18 define KernelPackage
/lib-crc-ccitt
/description
19 Kernel module for CRC-CCITT support
22 $(eval
$(call KernelPackage
,lib-crc-ccitt
))
25 define KernelPackage
/lib-crc-itu-t
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
)
33 define KernelPackage
/lib-crc-itu-t
/description
34 Kernel module for CRC ITU-T V
.41 support
37 $(eval
$(call KernelPackage
,lib-crc-itu-t
))
40 define KernelPackage
/lib-crc7
44 FILES
:=$(LINUX_DIR
)/lib
/crc7.ko
45 AUTOLOAD
:=$(call AutoProbe
,crc7
)
48 define KernelPackage
/lib-crc7
/description
49 Kernel module for CRC7 support
52 $(eval
$(call KernelPackage
,lib-crc7
))
55 define KernelPackage
/lib-crc8
59 FILES
:=$(LINUX_DIR
)/lib
/crc8.ko
60 AUTOLOAD
:=$(call AutoProbe
,crc8
)
63 define KernelPackage
/lib-crc8
/description
64 Kernel module for CRC8 support
67 $(eval
$(call KernelPackage
,lib-crc8
))
70 define KernelPackage
/lib-crc16
74 FILES
:=$(LINUX_DIR
)/lib
/crc16.ko
75 AUTOLOAD
:=$(call AutoLoad
,20,crc16
,1)
78 define KernelPackage
/lib-crc16
/description
79 Kernel module for CRC16 support
82 $(eval
$(call KernelPackage
,lib-crc16
))
85 define KernelPackage
/lib-crc32c
88 KCONFIG
:=CONFIG_LIBCRC32C
89 DEPENDS
:=+kmod-crypto-crc32c
90 FILES
:=$(LINUX_DIR
)/lib
/libcrc32c.ko
91 AUTOLOAD
:=$(call AutoProbe
,libcrc32c
)
94 define KernelPackage
/lib-crc32c
/description
95 Kernel module for CRC32 support
98 $(eval
$(call KernelPackage
,lib-crc32c
))
101 define KernelPackage
/lib-lzo
104 DEPENDS
:=+kmod-crypto-acompress
107 CONFIG_LZO_COMPRESS \
108 CONFIG_LZO_DECOMPRESS
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
)
118 define KernelPackage
/lib-lzo
/description
119 Kernel module for LZO compression
/decompression support
122 $(eval
$(call KernelPackage
,lib-lzo
))
125 define KernelPackage
/lib-zstd
128 DEPENDS
:=+kmod-crypto-acompress
131 CONFIG_ZSTD_COMPRESS \
132 CONFIG_ZSTD_DECOMPRESS \
135 $(LINUX_DIR
)/crypto
/zstd.ko \
136 $(LINUX_DIR
)/lib
/xxhash.ko \
137 $(LINUX_DIR
)/lib
/zstd
/zstd_common.ko@ge6.1 \
138 $(LINUX_DIR
)/lib
/zstd
/zstd_compress.ko \
139 $(LINUX_DIR
)/lib
/zstd
/zstd_decompress.ko
140 AUTOLOAD
:=$(call AutoProbe
,xxhash zstd zstd_compress zstd_decompress
)
143 define KernelPackage
/lib-zstd
/description
144 Kernel module for ZSTD compression
/decompression support
147 $(eval
$(call KernelPackage
,lib-zstd
))
150 define KernelPackage
/lib-lz4
153 DEPENDS
:=+kmod-crypto-acompress
156 CONFIG_CRYPTO_LZ4HC \
157 CONFIG_LZ4_COMPRESS \
158 CONFIG_LZ4_DECOMPRESS
160 $(LINUX_DIR
)/crypto
/lz4.ko \
161 $(LINUX_DIR
)/lib
/lz4
/lz4_compress.ko \
162 $(LINUX_DIR
)/lib
/lz4
/lz4hc_compress.ko \
163 $(LINUX_DIR
)/lib
/lz4
/lz4_decompress.ko
164 AUTOLOAD
:=$(call AutoProbe
,lz4 lz4_compress lz4hc_compress lz4_decompress
)
167 define KernelPackage
/lib-lz4
/description
168 Kernel module for LZ4 compression
/decompression support
171 $(eval
$(call KernelPackage
,lib-lz4
))
174 define KernelPackage
/lib-842
177 DEPENDS
:=+kmod-crypto-acompress
+kmod-crypto-crc32
180 CONFIG_842_COMPRESS \
181 CONFIG_842_DECOMPRESS
183 $(LINUX_DIR
)/crypto
/842.ko \
184 $(LINUX_DIR
)/lib
/842/842_compress.ko \
185 $(LINUX_DIR
)/lib
/842/842_decompress.ko
186 AUTOLOAD
:=$(call AutoProbe
,842 842_compress
842_decompress
)
189 define KernelPackage
/lib-842
/description
190 Kernel module for
842 compression
/decompression support
193 $(eval
$(call KernelPackage
,lib-842
))
196 define KernelPackage
/lib-raid6
198 TITLE
:=RAID6 algorithm support
200 KCONFIG
:=CONFIG_RAID6_PQ
201 FILES
:=$(LINUX_DIR
)/lib
/raid6
/raid6_pq.ko
202 AUTOLOAD
:=$(call AutoProbe
,raid6_pq
)
205 define KernelPackage
/lib-raid6
/description
206 Kernel module for RAID6 algorithms
209 $(eval
$(call KernelPackage
,lib-raid6
))
212 define KernelPackage
/lib-xor
214 TITLE
:=XOR blocks algorithm support
216 KCONFIG
:=CONFIG_XOR_BLOCKS
217 ifneq ($(wildcard $(LINUX_DIR
)/arch
/$(LINUX_KARCH
)/lib
/xor-neon.ko
),)
219 $(LINUX_DIR
)/crypto
/xor.ko \
220 $(LINUX_DIR
)/arch
/$(LINUX_KARCH
)/lib
/xor-neon.ko
221 AUTOLOAD
:=$(call AutoProbe
,xor-neon xor
)
223 FILES
:=$(LINUX_DIR
)/crypto
/xor.ko
224 AUTOLOAD
:=$(call AutoProbe
,xor
)
228 define KernelPackage
/lib-xor
/description
229 Kernel module for XOR blocks algorithms
232 $(eval
$(call KernelPackage
,lib-xor
))
235 define KernelPackage
/lib-textsearch
237 TITLE
:=Textsearch support
239 CONFIG_TEXTSEARCH
=y \
240 CONFIG_TEXTSEARCH_KMP \
241 CONFIG_TEXTSEARCH_BM \
242 CONFIG_TEXTSEARCH_FSM
244 $(LINUX_DIR
)/lib
/ts_kmp.ko \
245 $(LINUX_DIR
)/lib
/ts_bm.ko \
246 $(LINUX_DIR
)/lib
/ts_fsm.ko
247 AUTOLOAD
:=$(call AutoProbe
,ts_kmp ts_bm ts_fsm
)
250 $(eval
$(call KernelPackage
,lib-textsearch
))
253 define KernelPackage
/lib-zlib-inflate
257 KCONFIG
:=CONFIG_ZLIB_INFLATE
258 FILES
:=$(LINUX_DIR
)/lib
/zlib_inflate
/zlib_inflate.ko
259 AUTOLOAD
:=$(call AutoProbe
,zlib_inflate
)
262 $(eval
$(call KernelPackage
,lib-zlib-inflate
))
265 define KernelPackage
/lib-zlib-deflate
269 KCONFIG
:=CONFIG_ZLIB_DEFLATE
270 FILES
:=$(LINUX_DIR
)/lib
/zlib_deflate
/zlib_deflate.ko
271 AUTOLOAD
:=$(call AutoProbe
,zlib_deflate
)
274 $(eval
$(call KernelPackage
,lib-zlib-deflate
))
277 define KernelPackage
/lib-cordic
279 TITLE
:=Cordic function support
280 KCONFIG
:=CONFIG_CORDIC
281 FILES
:=$(LINUX_DIR
)/lib
/math
/cordic.ko
282 AUTOLOAD
:=$(call AutoProbe
,cordic
)
285 define KernelPackage
/lib-cordic
/description
286 Kernel module for Cordic function support
289 $(eval
$(call KernelPackage
,lib-cordic
))
292 define KernelPackage
/asn1-decoder
294 TITLE
:=Simple ASN1 decoder
295 KCONFIG
:= CONFIG_ASN1
297 FILES
:=$(LINUX_DIR
)/lib
/asn1_decoder.ko
300 $(eval
$(call KernelPackage
,asn1-decoder
))
302 define KernelPackage
/asn1-encoder
304 TITLE
:=Simple ASN1 encoder
305 KCONFIG
:= CONFIG_ASN1_ENCODER
307 FILES
:=$(LINUX_DIR
)/lib
/asn1_encoder.ko
310 $(eval
$(call KernelPackage
,asn1-encoder
))
312 define KernelPackage
/oid-registry
314 TITLE
:=Object identifier registry
315 KCONFIG
:= CONFIG_OID_REGISTRY
316 FILES
:=$(LINUX_DIR
)/lib
/oid_registry.ko
317 AUTOLOAD
:=$(call AutoLoad
,31,oid_registry
)
320 $(eval
$(call KernelPackage
,oid-registry
))