kernel: split out lib-raid6
[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 AutoLoad,20,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 AutoLoad,20,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 AutoLoad,20,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 AutoLoad,20,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 AutoLoad,20,libcrc32c,1)
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   FILES:= \
108         $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
109         $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
110   AUTOLOAD:=$(call AutoLoad,20, lzo_compress lzo_decompress,1)
111 endef
112
113 define KernelPackage/lib-lzo/description
114  Kernel module for LZO compression/decompression support
115 endef
116
117 $(eval $(call KernelPackage,lib-lzo))
118
119
120 define KernelPackage/lib-raid6
121   SUBMENU:=$(LIB_MENU)
122   TITLE:=RAID6 algorithm support
123   HIDDEN:=1
124   KCONFIG:=CONFIG_RAID6_PQ
125   FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
126   AUTOLOAD:=$(call AutoLoad,20,raid6_pq,1)
127 endef
128
129 define KernelPackage/lib-raid6/description
130  Kernel module for RAID6 algorithms.
131 endef
132
133 $(eval $(call KernelPackage,lib-raid6))
134
135
136 define KernelPackage/lib-textsearch
137 SUBMENU:=$(LIB_MENU)
138   TITLE:=Textsearch support
139   KCONFIG:= \
140     CONFIG_TEXTSEARCH=y \
141     CONFIG_TEXTSEARCH_KMP \
142     CONFIG_TEXTSEARCH_BM \
143     CONFIG_TEXTSEARCH_FSM
144   FILES:= \
145     $(LINUX_DIR)/lib/ts_kmp.ko \
146     $(LINUX_DIR)/lib/ts_bm.ko \
147     $(LINUX_DIR)/lib/ts_fsm.ko
148   AUTOLOAD:=$(call AutoLoad,20,ts_kmp ts_bm ts_fsm)
149 endef
150
151 $(eval $(call KernelPackage,lib-textsearch))
152
153
154 define KernelPackage/lib-zlib
155   SUBMENU:=$(LIB_MENU)
156   TITLE:=Zlib support
157   KCONFIG:= \
158     CONFIG_ZLIB_DEFLATE \
159     CONFIG_ZLIB_INFLATE
160   FILES:= \
161     $(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko \
162     $(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
163   AUTOLOAD:=$(call AutoLoad,08,zlib_deflate zlib_inflate,1)
164 endef
165
166 $(eval $(call KernelPackage,lib-zlib))
167
168
169 define KernelPackage/lib-cordic
170   SUBMENU:=$(LIB_MENU)
171   TITLE:=Cordic function support
172   KCONFIG:=CONFIG_CORDIC
173   FILES:=$(LINUX_DIR)/lib/cordic.ko
174   AUTOLOAD:=$(call AutoLoad,20,cordic)
175 endef
176
177 define KernelPackage/lib-cordic/description
178  Kernel module for Cordic function support
179 endef
180
181 $(eval $(call KernelPackage,lib-cordic))