package/kernel: remove SetDepends not needed anymore
[oweals/openwrt.git] / package / kernel / 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/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/crc-ccitt/description
19  Kernel module for CRC-CCITT support
20 endef
21
22 $(eval $(call KernelPackage,crc-ccitt))
23
24
25 define KernelPackage/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/crc-itu-t/description
34  Kernel module for CRC ITU-T V.41 support
35 endef
36
37 $(eval $(call KernelPackage,crc-itu-t))
38
39
40 define KernelPackage/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/crc7/description
49  Kernel module for CRC7 support
50 endef
51
52 $(eval $(call KernelPackage,crc7))
53
54
55 define KernelPackage/crc16
56   SUBMENU:=$(LIB_MENU)
57   TITLE:=CRC16 support
58   KCONFIG:=CONFIG_CRC16
59   FILES:=$(LINUX_DIR)/lib/crc16.ko
60   AUTOLOAD:=$(call AutoLoad,20,crc16,1)
61 endef
62
63 define KernelPackage/crc16/description
64  Kernel module for CRC16 support
65 endef
66
67 $(eval $(call KernelPackage,crc16))
68
69
70 define KernelPackage/libcrc32c
71   SUBMENU:=$(LIB_MENU)
72   TITLE:=CRC32 library support
73   KCONFIG:=CONFIG_LIBCRC32C
74   DEPENDS:=+kmod-crypto-crc32c
75   FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
76   AUTOLOAD:=$(call AutoLoad,20,libcrc32c,1)
77 endef
78
79 define KernelPackage/libcrc32c/description
80  Kernel module for CRC32 support
81 endef
82
83 $(eval $(call KernelPackage,libcrc32c))
84
85
86 define KernelPackage/textsearch
87 SUBMENU:=$(LIB_MENU)
88   TITLE:=Textsearch support is selected if needed
89   KCONFIG:= \
90     CONFIG_TEXTSEARCH=y \
91     CONFIG_TEXTSEARCH_KMP \
92     CONFIG_TEXTSEARCH_BM \
93     CONFIG_TEXTSEARCH_FSM
94   FILES:= \
95     $(LINUX_DIR)/lib/ts_kmp.ko \
96     $(LINUX_DIR)/lib/ts_bm.ko \
97     $(LINUX_DIR)/lib/ts_fsm.ko
98   AUTOLOAD:=$(call AutoLoad,20,ts_kmp ts_bm ts_fsm)
99 endef
100
101 $(eval $(call KernelPackage,textsearch))
102
103
104 define KernelPackage/zlib
105   SUBMENU:=$(LIB_MENU)
106   TITLE:=zlib support is selected if needed
107   KCONFIG:=CONFIG_ZLIB_DEFLATE
108   FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
109   AUTOLOAD:=$(call AutoLoad,08,zlib_deflate,1)
110 endef
111
112 $(eval $(call KernelPackage,zlib))