kernel: lib-textsearch needs to be auto probed for amanda nat to work
[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 endef
16
17 define KernelPackage/lib-crc-ccitt/description
18 Kernel module for CRC-CCITT support
19 endef
20
21 $(eval $(call KernelPackage,lib-crc-ccitt))
22
23
24 define KernelPackage/lib-crc-itu-t
25 SUBMENU:=$(LIB_MENU)
26 TITLE:=CRC ITU-T V.41 support
27 KCONFIG:=CONFIG_CRC_ITU_T
28 FILES:=$(LINUX_DIR)/lib/crc-itu-t.ko
29 endef
30
31 define KernelPackage/lib-crc-itu-t/description
32 Kernel module for CRC ITU-T V.41 support
33 endef
34
35 $(eval $(call KernelPackage,lib-crc-itu-t))
36
37
38 define KernelPackage/lib-crc7
39 SUBMENU:=$(LIB_MENU)
40 TITLE:=CRC7 support
41 KCONFIG:=CONFIG_CRC7
42 FILES:=$(LINUX_DIR)/lib/crc7.ko
43 endef
44
45 define KernelPackage/lib-crc7/description
46 Kernel module for CRC7 support
47 endef
48
49 $(eval $(call KernelPackage,lib-crc7))
50
51
52 define KernelPackage/lib-crc8
53 SUBMENU:=$(LIB_MENU)
54 TITLE:=CRC8 support
55 KCONFIG:=CONFIG_CRC8
56 FILES:=$(LINUX_DIR)/lib/crc8.ko
57 endef
58
59 define KernelPackage/lib-crc8/description
60 Kernel module for CRC8 support
61 endef
62
63 $(eval $(call KernelPackage,lib-crc8))
64
65
66 define KernelPackage/lib-crc16
67 SUBMENU:=$(LIB_MENU)
68 TITLE:=CRC16 support
69 KCONFIG:=CONFIG_CRC16
70 FILES:=$(LINUX_DIR)/lib/crc16.ko
71 endef
72
73 define KernelPackage/lib-crc16/description
74 Kernel module for CRC16 support
75 endef
76
77 $(eval $(call KernelPackage,lib-crc16))
78
79
80 define KernelPackage/lib-crc32c
81 SUBMENU:=$(LIB_MENU)
82 TITLE:=CRC32 support
83 KCONFIG:=CONFIG_LIBCRC32C
84 DEPENDS:=+kmod-crypto-crc32c
85 FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
86 endef
87
88 define KernelPackage/lib-crc32c/description
89 Kernel module for CRC32 support
90 endef
91
92 $(eval $(call KernelPackage,lib-crc32c))
93
94
95 define KernelPackage/lib-lzo
96 SUBMENU:=$(LIB_MENU)
97 TITLE:=LZO support
98 KCONFIG:= \
99 CONFIG_LZO_COMPRESS \
100 CONFIG_LZO_DECOMPRESS
101 FILES:= \
102 $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
103 $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
104 endef
105
106 define KernelPackage/lib-lzo/description
107 Kernel module for LZO compression/decompression support
108 endef
109
110 $(eval $(call KernelPackage,lib-lzo))
111
112
113 define KernelPackage/lib-raid6
114 SUBMENU:=$(LIB_MENU)
115 TITLE:=RAID6 algorithm support
116 HIDDEN:=1
117 KCONFIG:=CONFIG_RAID6_PQ
118 FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
119 endef
120
121 define KernelPackage/lib-raid6/description
122 Kernel module for RAID6 algorithms
123 endef
124
125 $(eval $(call KernelPackage,lib-raid6))
126
127
128 define KernelPackage/lib-xor
129 SUBMENU:=$(LIB_MENU)
130 TITLE:=XOR blocks algorithm support
131 HIDDEN:=1
132 KCONFIG:=CONFIG_XOR_BLOCKS
133 FILES:=$(LINUX_DIR)/crypto/xor.ko
134 endef
135
136 define KernelPackage/lib-xor/description
137 Kernel module for XOR blocks algorithms
138 endef
139
140 $(eval $(call KernelPackage,lib-xor))
141
142
143 define KernelPackage/lib-textsearch
144 SUBMENU:=$(LIB_MENU)
145 TITLE:=Textsearch support
146 KCONFIG:= \
147 CONFIG_TEXTSEARCH=y \
148 CONFIG_TEXTSEARCH_KMP \
149 CONFIG_TEXTSEARCH_BM \
150 CONFIG_TEXTSEARCH_FSM
151 FILES:= \
152 $(LINUX_DIR)/lib/ts_kmp.ko \
153 $(LINUX_DIR)/lib/ts_bm.ko \
154 $(LINUX_DIR)/lib/ts_fsm.ko
155 AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
156 endef
157
158 $(eval $(call KernelPackage,lib-textsearch))
159
160
161 define KernelPackage/lib-zlib
162 SUBMENU:=$(LIB_MENU)
163 TITLE:=Zlib support
164 KCONFIG:= \
165 CONFIG_ZLIB_DEFLATE \
166 CONFIG_ZLIB_INFLATE
167 FILES:= \
168 $(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko \
169 $(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
170 endef
171
172 $(eval $(call KernelPackage,lib-zlib))
173
174
175 define KernelPackage/lib-cordic
176 SUBMENU:=$(LIB_MENU)
177 TITLE:=Cordic function support
178 KCONFIG:=CONFIG_CORDIC
179 FILES:=$(LINUX_DIR)/lib/cordic.ko
180 endef
181
182 define KernelPackage/lib-cordic/description
183 Kernel module for Cordic function support
184 endef
185
186 $(eval $(call KernelPackage,lib-cordic))