kernel: package kmod-keys-encrypted and kmod-keys-trusted
[openwrt/openwrt.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)/lib/lzo/lzo_compress.ko \
113 $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
114 AUTOLOAD:=$(call AutoProbe,lzo lzo_compress lzo_decompress)
115 endef
116
117 define KernelPackage/lib-lzo/description
118 Kernel module for LZO compression/decompression support
119 endef
120
121 $(eval $(call KernelPackage,lib-lzo))
122
123
124 define KernelPackage/lib-zstd
125 SUBMENU:=$(LIB_MENU)
126 TITLE:=ZSTD support
127 DEPENDS:=+kmod-crypto-acompress
128 KCONFIG:= \
129 CONFIG_CRYPTO_ZSTD \
130 CONFIG_ZSTD_COMPRESS \
131 CONFIG_ZSTD_DECOMPRESS \
132 CONFIG_XXHASH
133 FILES:= \
134 $(LINUX_DIR)/crypto/zstd.ko \
135 $(LINUX_DIR)/lib/xxhash.ko \
136 $(LINUX_DIR)/lib/zstd/zstd_compress.ko \
137 $(LINUX_DIR)/lib/zstd/zstd_decompress.ko
138 AUTOLOAD:=$(call AutoProbe,xxhash zstd zstd_compress zstd_decompress)
139 endef
140
141 define KernelPackage/lib-zstd/description
142 Kernel module for ZSTD compression/decompression support
143 endef
144
145 $(eval $(call KernelPackage,lib-zstd))
146
147
148 define KernelPackage/lib-lz4
149 SUBMENU:=$(LIB_MENU)
150 TITLE:=LZ4 support
151 DEPENDS:=+kmod-crypto-acompress
152 KCONFIG:= \
153 CONFIG_CRYPTO_LZ4 \
154 CONFIG_LZ4_COMPRESS \
155 CONFIG_LZ4_DECOMPRESS
156 FILES:= \
157 $(LINUX_DIR)/crypto/lz4.ko \
158 $(LINUX_DIR)/lib/lz4/lz4_compress.ko \
159 $(LINUX_DIR)/lib/lz4/lz4_decompress.ko
160 AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress lz4_decompress)
161 endef
162
163 define KernelPackage/lib-lz4/description
164 Kernel module for LZ4 compression/decompression support
165 endef
166
167 $(eval $(call KernelPackage,lib-lz4))
168
169
170 define KernelPackage/lib-raid6
171 SUBMENU:=$(LIB_MENU)
172 TITLE:=RAID6 algorithm support
173 HIDDEN:=1
174 KCONFIG:=CONFIG_RAID6_PQ
175 FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
176 AUTOLOAD:=$(call AutoProbe,raid6_pq)
177 endef
178
179 define KernelPackage/lib-raid6/description
180 Kernel module for RAID6 algorithms
181 endef
182
183 $(eval $(call KernelPackage,lib-raid6))
184
185
186 define KernelPackage/lib-xor
187 SUBMENU:=$(LIB_MENU)
188 TITLE:=XOR blocks algorithm support
189 HIDDEN:=1
190 KCONFIG:=CONFIG_XOR_BLOCKS
191 ifneq ($(wildcard $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko),)
192 FILES:= \
193 $(LINUX_DIR)/crypto/xor.ko \
194 $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko
195 AUTOLOAD:=$(call AutoProbe,xor-neon xor)
196 else
197 FILES:=$(LINUX_DIR)/crypto/xor.ko
198 AUTOLOAD:=$(call AutoProbe,xor)
199 endif
200 endef
201
202 define KernelPackage/lib-xor/description
203 Kernel module for XOR blocks algorithms
204 endef
205
206 $(eval $(call KernelPackage,lib-xor))
207
208
209 define KernelPackage/lib-textsearch
210 SUBMENU:=$(LIB_MENU)
211 TITLE:=Textsearch support
212 KCONFIG:= \
213 CONFIG_TEXTSEARCH=y \
214 CONFIG_TEXTSEARCH_KMP \
215 CONFIG_TEXTSEARCH_BM \
216 CONFIG_TEXTSEARCH_FSM
217 FILES:= \
218 $(LINUX_DIR)/lib/ts_kmp.ko \
219 $(LINUX_DIR)/lib/ts_bm.ko \
220 $(LINUX_DIR)/lib/ts_fsm.ko
221 AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
222 endef
223
224 $(eval $(call KernelPackage,lib-textsearch))
225
226
227 define KernelPackage/lib-zlib-inflate
228 SUBMENU:=$(LIB_MENU)
229 TITLE:=Zlib support
230 HIDDEN:=1
231 KCONFIG:=CONFIG_ZLIB_INFLATE
232 FILES:=$(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
233 AUTOLOAD:=$(call AutoProbe,zlib_inflate)
234 endef
235
236 $(eval $(call KernelPackage,lib-zlib-inflate))
237
238
239 define KernelPackage/lib-zlib-deflate
240 SUBMENU:=$(LIB_MENU)
241 TITLE:=Zlib support
242 HIDDEN:=1
243 KCONFIG:=CONFIG_ZLIB_DEFLATE
244 FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
245 AUTOLOAD:=$(call AutoProbe,zlib_deflate)
246 endef
247
248 $(eval $(call KernelPackage,lib-zlib-deflate))
249
250
251 define KernelPackage/lib-cordic
252 SUBMENU:=$(LIB_MENU)
253 TITLE:=Cordic function support
254 KCONFIG:=CONFIG_CORDIC
255 FILES:=$(LINUX_DIR)/lib/math/cordic.ko
256 AUTOLOAD:=$(call AutoProbe,cordic)
257 endef
258
259 define KernelPackage/lib-cordic/description
260 Kernel module for Cordic function support
261 endef
262
263 $(eval $(call KernelPackage,lib-cordic))
264
265
266 define KernelPackage/asn1-decoder
267 SUBMENU:=$(LIB_MENU)
268 TITLE:=Simple ASN1 decoder
269 KCONFIG:= CONFIG_ASN1
270 HIDDEN:=1
271 FILES:=$(LINUX_DIR)/lib/asn1_decoder.ko
272 endef
273
274 $(eval $(call KernelPackage,asn1-decoder))