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
)/lib
/lzo
/lzo_compress.ko \
113 $(LINUX_DIR
)/lib
/lzo
/lzo_decompress.ko
114 AUTOLOAD
:=$(call AutoProbe
,lzo lzo_compress lzo_decompress
)
117 define KernelPackage
/lib-lzo
/description
118 Kernel module for LZO compression
/decompression support
121 $(eval
$(call KernelPackage
,lib-lzo
))
124 define KernelPackage
/lib-zstd
128 CONFIG_ZSTD_COMPRESS \
129 CONFIG_ZSTD_DECOMPRESS \
133 $(LINUX_DIR
)/lib
/xxhash.ko \
134 $(LINUX_DIR
)/lib
/zstd
/zstd_compress.ko \
135 $(LINUX_DIR
)/lib
/zstd
/zstd_decompress.ko
136 AUTOLOAD
:=$(call AutoProbe
,xxhash zstd_compress zstd_decompress
)
139 define KernelPackage
/lib-zstd
/description
140 Kernel module for ZSTD compression
/decompression support
143 $(eval
$(call KernelPackage
,lib-zstd
))
146 define KernelPackage
/lib-lz4
149 DEPENDS
:=+kmod-crypto-acompress
152 CONFIG_LZ4_COMPRESS \
153 CONFIG_LZ4_DECOMPRESS
155 $(LINUX_DIR
)/crypto
/lz4.ko \
156 $(LINUX_DIR
)/lib
/lz4
/lz4_compress.ko \
157 $(LINUX_DIR
)/lib
/lz4
/lz4_decompress.ko
158 AUTOLOAD
:=$(call AutoProbe
,lz4 lz4_compress lz4_decompress
)
161 define KernelPackage
/lib-lz4
/description
162 Kernel module for LZ4 compression
/decompression support
165 $(eval
$(call KernelPackage
,lib-lz4
))
168 define KernelPackage
/lib-raid6
170 TITLE
:=RAID6 algorithm support
172 KCONFIG
:=CONFIG_RAID6_PQ
173 FILES
:=$(LINUX_DIR
)/lib
/raid6
/raid6_pq.ko
174 AUTOLOAD
:=$(call AutoProbe
,raid6_pq
)
177 define KernelPackage
/lib-raid6
/description
178 Kernel module for RAID6 algorithms
181 $(eval
$(call KernelPackage
,lib-raid6
))
184 define KernelPackage
/lib-xor
186 TITLE
:=XOR blocks algorithm support
188 KCONFIG
:=CONFIG_XOR_BLOCKS
189 ifneq ($(wildcard $(LINUX_DIR
)/arch
/$(LINUX_KARCH
)/lib
/xor-neon.ko
),)
191 $(LINUX_DIR
)/crypto
/xor.ko \
192 $(LINUX_DIR
)/arch
/$(LINUX_KARCH
)/lib
/xor-neon.ko
193 AUTOLOAD
:=$(call AutoProbe
,xor-neon xor
)
195 FILES
:=$(LINUX_DIR
)/crypto
/xor.ko
196 AUTOLOAD
:=$(call AutoProbe
,xor
)
200 define KernelPackage
/lib-xor
/description
201 Kernel module for XOR blocks algorithms
204 $(eval
$(call KernelPackage
,lib-xor
))
207 define KernelPackage
/lib-textsearch
209 TITLE
:=Textsearch support
211 CONFIG_TEXTSEARCH
=y \
212 CONFIG_TEXTSEARCH_KMP \
213 CONFIG_TEXTSEARCH_BM \
214 CONFIG_TEXTSEARCH_FSM
216 $(LINUX_DIR
)/lib
/ts_kmp.ko \
217 $(LINUX_DIR
)/lib
/ts_bm.ko \
218 $(LINUX_DIR
)/lib
/ts_fsm.ko
219 AUTOLOAD
:=$(call AutoProbe
,ts_kmp ts_bm ts_fsm
)
222 $(eval
$(call KernelPackage
,lib-textsearch
))
225 define KernelPackage
/lib-zlib-inflate
229 KCONFIG
:=CONFIG_ZLIB_INFLATE
230 FILES
:=$(LINUX_DIR
)/lib
/zlib_inflate
/zlib_inflate.ko
231 AUTOLOAD
:=$(call AutoProbe
,zlib_inflate
)
234 $(eval
$(call KernelPackage
,lib-zlib-inflate
))
237 define KernelPackage
/lib-zlib-deflate
241 KCONFIG
:=CONFIG_ZLIB_DEFLATE
242 FILES
:=$(LINUX_DIR
)/lib
/zlib_deflate
/zlib_deflate.ko
243 AUTOLOAD
:=$(call AutoProbe
,zlib_deflate
)
246 $(eval
$(call KernelPackage
,lib-zlib-deflate
))
249 define KernelPackage
/lib-cordic
251 TITLE
:=Cordic function support
252 KCONFIG
:=CONFIG_CORDIC
253 FILES
:=$(LINUX_DIR
)/lib
/cordic.ko@lt5.2 \
254 $(LINUX_DIR
)/lib
/math
/cordic.ko@ge5.2
255 AUTOLOAD
:=$(call AutoProbe
,cordic
)
258 define KernelPackage
/lib-cordic
/description
259 Kernel module for Cordic function support
262 $(eval
$(call KernelPackage
,lib-cordic
))
265 define KernelPackage
/asn1-decoder
267 TITLE
:=Simple ASN1 decoder
268 KCONFIG
:= CONFIG_ASN1
270 FILES
:=$(LINUX_DIR
)/lib
/asn1_decoder.ko
273 $(eval
$(call KernelPackage
,asn1-decoder
))