c5148ce4870efd30db88d3d12c1ad16c98a4a5e4
[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 KCONFIG:= \
105 CONFIG_LZO_COMPRESS \
106 CONFIG_LZO_DECOMPRESS
107 HIDDEN:=1
108 FILES:= \
109 $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
110 $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
111 AUTOLOAD:=$(call AutoProbe,lzo_compress lzo_decompress)
112 endef
113
114 define KernelPackage/lib-lzo/description
115 Kernel module for LZO compression/decompression support
116 endef
117
118 $(eval $(call KernelPackage,lib-lzo))
119
120
121 define KernelPackage/lib-lz4
122 SUBMENU:=$(LIB_MENU)
123 TITLE:=LZ4 support
124 HIDDEN:=1
125 KCONFIG:= \
126 CONFIG_LZ4_COMPRESS \
127 CONFIG_LZ4_DECOMPRESS
128 FILES:= \
129 $(LINUX_DIR)/lib/lz4/lz4_compress.ko \
130 $(LINUX_DIR)/lib/lz4/lz4_decompress.ko
131 AUTOLOAD:=$(call AutoProbe,lz4_compress lz4_decompress)
132 endef
133
134 define KernelPackage/lib-lz4/description
135 Kernel module for LZ4 compression/decompression support
136 endef
137
138 $(eval $(call KernelPackage,lib-lz4))
139
140
141 define KernelPackage/lib-raid6
142 SUBMENU:=$(LIB_MENU)
143 TITLE:=RAID6 algorithm support
144 HIDDEN:=1
145 KCONFIG:=CONFIG_RAID6_PQ
146 FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
147 AUTOLOAD:=$(call AutoProbe,raid6_pq)
148 endef
149
150 define KernelPackage/lib-raid6/description
151 Kernel module for RAID6 algorithms
152 endef
153
154 $(eval $(call KernelPackage,lib-raid6))
155
156
157 define KernelPackage/lib-xor
158 SUBMENU:=$(LIB_MENU)
159 TITLE:=XOR blocks algorithm support
160 HIDDEN:=1
161 KCONFIG:=CONFIG_XOR_BLOCKS
162 ifneq ($(wildcard $(LINUX_DIR)/arch/arm/lib/xor-neon.ko),)
163 FILES:= \
164 $(LINUX_DIR)/crypto/xor.ko \
165 $(LINUX_DIR)/arch/arm/lib/xor-neon.ko
166 AUTOLOAD:=$(call AutoProbe,xor-neon xor)
167 else
168 FILES:=$(LINUX_DIR)/crypto/xor.ko
169 AUTOLOAD:=$(call AutoProbe,xor)
170 endif
171 endef
172
173 define KernelPackage/lib-xor/description
174 Kernel module for XOR blocks algorithms
175 endef
176
177 $(eval $(call KernelPackage,lib-xor))
178
179
180 define KernelPackage/lib-textsearch
181 SUBMENU:=$(LIB_MENU)
182 TITLE:=Textsearch support
183 KCONFIG:= \
184 CONFIG_TEXTSEARCH=y \
185 CONFIG_TEXTSEARCH_KMP \
186 CONFIG_TEXTSEARCH_BM \
187 CONFIG_TEXTSEARCH_FSM
188 FILES:= \
189 $(LINUX_DIR)/lib/ts_kmp.ko \
190 $(LINUX_DIR)/lib/ts_bm.ko \
191 $(LINUX_DIR)/lib/ts_fsm.ko
192 AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
193 endef
194
195 $(eval $(call KernelPackage,lib-textsearch))
196
197
198 define KernelPackage/lib-zlib
199 SUBMENU:=$(LIB_MENU)
200 TITLE:=Zlib support
201 HIDDEN:=1
202 KCONFIG:= \
203 CONFIG_ZLIB_DEFLATE \
204 CONFIG_ZLIB_INFLATE
205 FILES:= \
206 $(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko \
207 $(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
208 AUTOLOAD:=$(call AutoProbe,zlib_deflate zlib_inflate)
209 endef
210
211 $(eval $(call KernelPackage,lib-zlib))
212
213
214 define KernelPackage/lib-cordic
215 SUBMENU:=$(LIB_MENU)
216 TITLE:=Cordic function support
217 KCONFIG:=CONFIG_CORDIC
218 FILES:=$(LINUX_DIR)/lib/cordic.ko
219 AUTOLOAD:=$(call AutoProbe,cordic)
220 endef
221
222 define KernelPackage/lib-cordic/description
223 Kernel module for Cordic function support
224 endef
225
226 $(eval $(call KernelPackage,lib-cordic))