add ipv6 conntrack support (closes: #2192)
[openwrt.git] / package / kernel / modules / crypto.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 CRYPTO_MENU:=Cryptographic API modules
10
11 define KernelPackage/crypto-core
12 SUBMENU:=$(CRYPTO_MENU)
13 TITLE:=Core CryptoAPI modules
14 KCONFIG:= \
15 CONFIG_CRYPTO=y \
16 CONFIG_CRYPTO_ALGAPI \
17 CONFIG_CRYPTO_BLKCIPHER \
18 CONFIG_CRYPTO_CBC \
19 CONFIG_CRYPTO_DEFLATE \
20 CONFIG_CRYPTO_ECB \
21 CONFIG_CRYPTO_HASH \
22 CONFIG_CRYPTO_MANAGER
23 FILES:= \
24 $(LINUX_DIR)/crypto/crypto_algapi.$(LINUX_KMOD_SUFFIX) \
25 $(LINUX_DIR)/crypto/blkcipher.$(LINUX_KMOD_SUFFIX) \
26 $(LINUX_DIR)/crypto/cbc.$(LINUX_KMOD_SUFFIX) \
27 $(LINUX_DIR)/crypto/deflate.$(LINUX_KMOD_SUFFIX) \
28 $(LINUX_DIR)/crypto/ecb.$(LINUX_KMOD_SUFFIX) \
29 $(LINUX_DIR)/crypto/crypto_hash.$(LINUX_KMOD_SUFFIX) \
30 $(LINUX_DIR)/crypto/cryptomgr.$(LINUX_KMOD_SUFFIX)
31 AUTOLOAD:=$(call AutoLoad,01, \
32 crypto_algapi \
33 cryptomgr \
34 crypto_hash \
35 blkcipher \
36 cbc \
37 ecb \
38 deflate \
39 )
40 endef
41
42 define KernelPackage/crypto-core/2.4
43 FILES:=$(LINUX_DIR)/crypto/deflate.$(LINUX_KMOD_SUFFIX)
44 AUTOLOAD:=$(call AutoLoad,01, deflate)
45 endef
46
47 $(eval $(call KernelPackage,crypto-core))
48
49
50 define KernelPackage/crypto-aes
51 SUBMENU:=$(CRYPTO_MENU)
52 TITLE:=AES cipher CryptoAPI module
53 DEPENDS:=kmod-crypto-core
54 KCONFIG:= \
55 CONFIG_CRYPTO_AES \
56 CONFIG_CRYPTO_AES_586
57 FILES:=$(LINUX_DIR)/crypto/aes.$(LINUX_KMOD_SUFFIX)
58 AUTOLOAD:=$(call AutoLoad,09,aes)
59 endef
60
61 define KernelPackage/crypto-aes/x86-2.6
62 KCONFIG:=CONFIG_CRYPTO_AES_586
63 FILES:=$(LINUX_DIR)/arch/i386/crypto/aes-i586.$(LINUX_KMOD_SUFFIX)
64 AUTOLOAD:=$(call AutoLoad,09,aes-i586)
65 endef
66
67 $(eval $(call KernelPackage,crypto-aes))
68
69
70 define KernelPackage/crypto-arc4
71 SUBMENU:=$(CRYPTO_MENU)
72 TITLE:=ARC4 (RC4) cipher CryptoAPI module
73 DEPENDS:=kmod-crypto-core
74 KCONFIG:=CONFIG_CRYPTO_ARC4
75 FILES:=$(LINUX_DIR)/crypto/arc4.$(LINUX_KMOD_SUFFIX)
76 AUTOLOAD:=$(call AutoLoad,09,arc4)
77 endef
78
79 $(eval $(call KernelPackage,crypto-arc4))
80
81
82 define KernelPackage/crypto-des
83 SUBMENU:=$(CRYPTO_MENU)
84 TITLE:=DES/3DES cipher CryptoAPI module
85 DEPENDS:=kmod-crypto-core
86 KCONFIG:=CONFIG_CRYPTO_AES
87 FILES:=$(LINUX_DIR)/crypto/aes.$(LINUX_KMOD_SUFFIX)
88 AUTOLOAD:=$(call AutoLoad,09,des)
89 endef
90
91 $(eval $(call KernelPackage,crypto-des))
92
93
94 define KernelPackage/crypto-hmac
95 SUBMENU:=$(CRYPTO_MENU)
96 TITLE:=HMAC digest CryptoAPI module
97 DEPENDS:=kmod-crypto-core
98 KCONFIG:=CONFIG_CRYPTO_HMAC
99 FILES:=$(LINUX_DIR)/crypto/hmac.$(LINUX_KMOD_SUFFIX)
100 AUTOLOAD:=$(call AutoLoad,09,hmac)
101 endef
102
103 $(eval $(call KernelPackage,crypto-hmac))
104
105
106 define KernelPackage/crypto-md5
107 SUBMENU:=$(CRYPTO_MENU)
108 TITLE:=MD5 digest CryptoAPI module
109 DEPENDS:=kmod-crypto-core
110 KCONFIG:=CONFIG_CRYPTO_MD5
111 FILES:=$(LINUX_DIR)/crypto/md5.$(LINUX_KMOD_SUFFIX)
112 AUTOLOAD:=$(call AutoLoad,09,md5)
113 endef
114
115 $(eval $(call KernelPackage,crypto-md5))
116
117
118 define KernelPackage/crypto-michael-mic
119 SUBMENU:=$(CRYPTO_MENU)
120 TITLE:=Michael MIC keyed digest CryptoAPI module
121 DEPENDS:=kmod-crypto-core
122 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
123 FILES:=$(LINUX_DIR)/crypto/michael_mic.$(LINUX_KMOD_SUFFIX)
124 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
125 endef
126
127 $(eval $(call KernelPackage,crypto-michael-mic))
128
129
130 define KernelPackage/crypto-sha1
131 SUBMENU:=$(CRYPTO_MENU)
132 TITLE:=SHA1 digest CryptoAPI module
133 DEPENDS:=kmod-crypto-core
134 KCONFIG:=CONFIG_CRYPTO_SHA1
135 FILES:=$(LINUX_DIR)/crypto/sha1.$(LINUX_KMOD_SUFFIX)
136 AUTOLOAD:=$(call AutoLoad,09,sha1)
137 endef
138
139 $(eval $(call KernelPackage,crypto-sha1))
140
141
142 define KernelPackage/crypto-misc
143 SUBMENU:=$(CRYPTO_MENU)
144 TITLE:=Other CryptoAPI modules
145 DEPENDS:=kmod-crypto-core
146 KCONFIG:= \
147 CONFIG_CRYPTO_ANUBIS \
148 CONFIG_CRYPTO_BLOWFISH \
149 CONFIG_CRYPTO_CAMELLIA \
150 CONFIG_CRYPTO_CAST5 \
151 CONFIG_CRYPTO_CAST6 \
152 CONFIG_CRYPTO_CRC32C \
153 CONFIG_CRYPTO_FCRYPT \
154 CONFIG_CRYPTO_KHAZAD \
155 CONFIG_CRYPTO_MD4 \
156 CONFIG_CRYPTO_SERPENT \
157 CONFIG_CRYPTO_SHA256 \
158 CONFIG_CRYPTO_SHA512 \
159 CONFIG_CRYPTO_TEA \
160 CONFIG_CRYPTO_TGR192 \
161 CONFIG_CRYPTO_TWOFISH \
162 CONFIG_CRYPTO_TWOFISH_586 \
163 CONFIG_CRYPTO_WP512
164 FILES:= \
165 $(LINUX_DIR)/crypto/anubis.$(LINUX_KMOD_SUFFIX) \
166 $(LINUX_DIR)/crypto/blowfish.$(LINUX_KMOD_SUFFIX) \
167 $(LINUX_DIR)/crypto/cast5.$(LINUX_KMOD_SUFFIX) \
168 $(LINUX_DIR)/crypto/cast6.$(LINUX_KMOD_SUFFIX) \
169 $(LINUX_DIR)/crypto/khazad.$(LINUX_KMOD_SUFFIX) \
170 $(LINUX_DIR)/crypto/md4.$(LINUX_KMOD_SUFFIX) \
171 $(LINUX_DIR)/crypto/serpent.$(LINUX_KMOD_SUFFIX) \
172 $(LINUX_DIR)/crypto/sha256.$(LINUX_KMOD_SUFFIX) \
173 $(LINUX_DIR)/crypto/sha512.$(LINUX_KMOD_SUFFIX) \
174 $(LINUX_DIR)/crypto/tea.$(LINUX_KMOD_SUFFIX) \
175 $(LINUX_DIR)/crypto/twofish.$(LINUX_KMOD_SUFFIX) \
176 $(LINUX_DIR)/crypto/wp512.$(LINUX_KMOD_SUFFIX)
177 endef
178
179 define KernelPackage/crypto-misc/2.6
180 FILES+= \
181 $(LINUX_DIR)/crypto/camellia.$(LINUX_KMOD_SUFFIX) \
182 $(LINUX_DIR)/crypto/crc32c.$(LINUX_KMOD_SUFFIX) \
183 $(LINUX_DIR)/crypto/fcrypt.$(LINUX_KMOD_SUFFIX) \
184 $(LINUX_DIR)/crypto/tgr192.$(LINUX_KMOD_SUFFIX)
185 endef
186
187 $(eval $(call KernelPackage,crypto-misc))
188
189
190 define KernelPackage/crypto-null
191 SUBMENU:=$(CRYPTO_MENU)
192 TITLE:=Null CryptoAPI module
193 DEPENDS:=kmod-crypto-core
194 KCONFIG:=CONFIG_CRYPTO_NULL
195 FILES:=$(LINUX_DIR)/crypto/crypto_null.$(LINUX_KMOD_SUFFIX)
196 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
197 endef
198
199 $(eval $(call KernelPackage,crypto-null))
200
201
202 define KernelPackage/crypto-test
203 SUBMENU:=$(CRYPTO_MENU)
204 TITLE:=Test CryptoAPI module
205 DEPENDS:=kmod-crypto-core
206 KCONFIG:=CONFIG_CRYPTO_NULL
207 FILES:=$(LINUX_DIR)/crypto/tcrypt.$(LINUX_KMOD_SUFFIX)
208 AUTOLOAD:=$(call AutoLoad,09,tcrypt)
209 endef
210
211 $(eval $(call KernelPackage,crypto-test))
212
This page took 0.063173 seconds and 5 git commands to generate.