[package] move spi_gpio driver into the kernel, clean-up SPI modules
[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 # XXX: added CRYPTO_GENERIC as a workaround for modules renamed in 2.6.24:
12 # - aes > aes_generic
13 # - des > des_generic
14 # - sha1 > sha1_generic
15 # - sha256 > sha256_generic
16 ifeq ($(KERNEL_PATCHVER),2.6.24)
17 CRYPTO_GENERIC:=_generic
18 endif
19
20
21 # XXX: added CONFIG_CRYPTO_HMAC to KCONFIG so that CONFIG_CRYPTO_HASH is
22 # always set, even if no hash modules are selected
23 define KernelPackage/crypto-core
24 SUBMENU:=$(CRYPTO_MENU)
25 TITLE:=Core CryptoAPI modules
26 KCONFIG:= \
27 CONFIG_CRYPTO=y \
28 CONFIG_CRYPTO_ALGAPI \
29 CONFIG_CRYPTO_BLKCIPHER \
30 CONFIG_CRYPTO_CBC \
31 CONFIG_CRYPTO_DEFLATE \
32 CONFIG_CRYPTO_ECB \
33 CONFIG_CRYPTO_HASH \
34 CONFIG_CRYPTO_HMAC \
35 CONFIG_CRYPTO_MANAGER
36 FILES:= \
37 $(LINUX_DIR)/crypto/crypto_algapi.$(LINUX_KMOD_SUFFIX) \
38 $(LINUX_DIR)/crypto/blkcipher.$(LINUX_KMOD_SUFFIX) \
39 $(LINUX_DIR)/crypto/cbc.$(LINUX_KMOD_SUFFIX) \
40 $(LINUX_DIR)/crypto/deflate.$(LINUX_KMOD_SUFFIX) \
41 $(LINUX_DIR)/crypto/ecb.$(LINUX_KMOD_SUFFIX) \
42 $(LINUX_DIR)/crypto/crypto_hash.$(LINUX_KMOD_SUFFIX) \
43 $(LINUX_DIR)/crypto/cryptomgr.$(LINUX_KMOD_SUFFIX)
44 AUTOLOAD:=$(call AutoLoad,01, \
45 crypto_algapi \
46 cryptomgr \
47 crypto_hash \
48 blkcipher \
49 cbc \
50 ecb \
51 deflate \
52 )
53 endef
54
55 define KernelPackage/crypto-core/2.4
56 FILES:=$(LINUX_DIR)/crypto/deflate.$(LINUX_KMOD_SUFFIX)
57 AUTOLOAD:=$(call AutoLoad,01, deflate)
58 endef
59
60 $(eval $(call KernelPackage,crypto-core))
61
62
63 define KernelPackage/crypto-aes
64 SUBMENU:=$(CRYPTO_MENU)
65 TITLE:=AES cipher CryptoAPI module
66 DEPENDS:=+kmod-crypto-core
67 KCONFIG:= \
68 CONFIG_CRYPTO_AES \
69 CONFIG_CRYPTO_AES_586
70 FILES:=$(LINUX_DIR)/crypto/aes$(CRYPTO_GENERIC).$(LINUX_KMOD_SUFFIX)
71 AUTOLOAD:=$(call AutoLoad,09,aes$(CRYPTO_GENERIC))
72 endef
73
74 define KernelPackage/crypto-aes/x86-2.6
75 KCONFIG:=CONFIG_CRYPTO_AES_586
76 FILES:=$(LINUX_DIR)/arch/x86/crypto/aes-i586.$(LINUX_KMOD_SUFFIX)
77 AUTOLOAD:=$(call AutoLoad,09,aes-i586)
78 endef
79
80 $(eval $(call KernelPackage,crypto-aes))
81
82
83 define KernelPackage/crypto-arc4
84 SUBMENU:=$(CRYPTO_MENU)
85 TITLE:=ARC4 (RC4) cipher CryptoAPI module
86 DEPENDS:=+kmod-crypto-core
87 KCONFIG:=CONFIG_CRYPTO_ARC4
88 FILES:=$(LINUX_DIR)/crypto/arc4.$(LINUX_KMOD_SUFFIX)
89 AUTOLOAD:=$(call AutoLoad,09,arc4)
90 endef
91
92 $(eval $(call KernelPackage,crypto-arc4))
93
94
95 define KernelPackage/crypto-des
96 SUBMENU:=$(CRYPTO_MENU)
97 TITLE:=DES/3DES cipher CryptoAPI module
98 DEPENDS:=+kmod-crypto-core
99 KCONFIG:=CONFIG_CRYPTO_DES
100 FILES:=$(LINUX_DIR)/crypto/des$(CRYPTO_GENERIC).$(LINUX_KMOD_SUFFIX)
101 AUTOLOAD:=$(call AutoLoad,09,des$(CRYPTO_GENERIC))
102 endef
103
104 $(eval $(call KernelPackage,crypto-des))
105
106
107 define KernelPackage/crypto-hmac
108 SUBMENU:=$(CRYPTO_MENU)
109 TITLE:=HMAC digest CryptoAPI module
110 DEPENDS:=+kmod-crypto-core
111 KCONFIG:=CONFIG_CRYPTO_HMAC
112 FILES:=$(LINUX_DIR)/crypto/hmac.$(LINUX_KMOD_SUFFIX)
113 AUTOLOAD:=$(call AutoLoad,09,hmac)
114 endef
115
116 $(eval $(call KernelPackage,crypto-hmac))
117
118
119 define KernelPackage/crypto-md5
120 SUBMENU:=$(CRYPTO_MENU)
121 TITLE:=MD5 digest CryptoAPI module
122 DEPENDS:=+kmod-crypto-core
123 KCONFIG:=CONFIG_CRYPTO_MD5
124 FILES:=$(LINUX_DIR)/crypto/md5.$(LINUX_KMOD_SUFFIX)
125 AUTOLOAD:=$(call AutoLoad,09,md5)
126 endef
127
128 $(eval $(call KernelPackage,crypto-md5))
129
130
131 define KernelPackage/crypto-michael-mic
132 SUBMENU:=$(CRYPTO_MENU)
133 TITLE:=Michael MIC keyed digest CryptoAPI module
134 DEPENDS:=+kmod-crypto-core
135 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
136 FILES:=$(LINUX_DIR)/crypto/michael_mic.$(LINUX_KMOD_SUFFIX)
137 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
138 endef
139
140 $(eval $(call KernelPackage,crypto-michael-mic))
141
142
143 define KernelPackage/crypto-sha1
144 SUBMENU:=$(CRYPTO_MENU)
145 TITLE:=SHA1 digest CryptoAPI module
146 DEPENDS:=+kmod-crypto-core
147 KCONFIG:=CONFIG_CRYPTO_SHA1
148 FILES:=$(LINUX_DIR)/crypto/sha1$(CRYPTO_GENERIC).$(LINUX_KMOD_SUFFIX)
149 AUTOLOAD:=$(call AutoLoad,09,sha1$(CRYPTO_GENERIC))
150 endef
151
152 $(eval $(call KernelPackage,crypto-sha1))
153
154
155 define KernelPackage/crypto-misc
156 SUBMENU:=$(CRYPTO_MENU)
157 TITLE:=Other CryptoAPI modules
158 DEPENDS:=+kmod-crypto-core
159 KCONFIG:= \
160 CONFIG_CRYPTO_ANUBIS \
161 CONFIG_CRYPTO_BLOWFISH \
162 CONFIG_CRYPTO_CAMELLIA \
163 CONFIG_CRYPTO_CAST5 \
164 CONFIG_CRYPTO_CAST6 \
165 CONFIG_CRYPTO_CRC32C \
166 CONFIG_CRYPTO_FCRYPT \
167 CONFIG_CRYPTO_KHAZAD \
168 CONFIG_CRYPTO_MD4 \
169 CONFIG_CRYPTO_SERPENT \
170 CONFIG_CRYPTO_SHA256 \
171 CONFIG_CRYPTO_SHA512 \
172 CONFIG_CRYPTO_TEA \
173 CONFIG_CRYPTO_TGR192 \
174 CONFIG_CRYPTO_TWOFISH \
175 CONFIG_CRYPTO_TWOFISH_586 \
176 CONFIG_CRYPTO_WP512
177 FILES:= \
178 $(LINUX_DIR)/crypto/anubis.$(LINUX_KMOD_SUFFIX) \
179 $(LINUX_DIR)/crypto/blowfish.$(LINUX_KMOD_SUFFIX) \
180 $(LINUX_DIR)/crypto/cast5.$(LINUX_KMOD_SUFFIX) \
181 $(LINUX_DIR)/crypto/cast6.$(LINUX_KMOD_SUFFIX) \
182 $(LINUX_DIR)/crypto/khazad.$(LINUX_KMOD_SUFFIX) \
183 $(LINUX_DIR)/crypto/md4.$(LINUX_KMOD_SUFFIX) \
184 $(LINUX_DIR)/crypto/serpent.$(LINUX_KMOD_SUFFIX) \
185 $(LINUX_DIR)/crypto/sha256$(CRYPTO_GENERIC).$(LINUX_KMOD_SUFFIX) \
186 $(LINUX_DIR)/crypto/sha512.$(LINUX_KMOD_SUFFIX) \
187 $(LINUX_DIR)/crypto/tea.$(LINUX_KMOD_SUFFIX) \
188 $(LINUX_DIR)/crypto/twofish.$(LINUX_KMOD_SUFFIX) \
189 $(LINUX_DIR)/crypto/wp512.$(LINUX_KMOD_SUFFIX)
190 endef
191
192 define KernelPackage/crypto-misc/2.6
193 FILES+= \
194 $(LINUX_DIR)/crypto/camellia.$(LINUX_KMOD_SUFFIX) \
195 $(LINUX_DIR)/crypto/crc32c.$(LINUX_KMOD_SUFFIX) \
196 $(LINUX_DIR)/crypto/fcrypt.$(LINUX_KMOD_SUFFIX) \
197 $(LINUX_DIR)/crypto/tgr192.$(LINUX_KMOD_SUFFIX)
198 endef
199
200 $(eval $(call KernelPackage,crypto-misc))
201
202
203 define KernelPackage/crypto-null
204 SUBMENU:=$(CRYPTO_MENU)
205 TITLE:=Null CryptoAPI module
206 DEPENDS:=+kmod-crypto-core
207 KCONFIG:=CONFIG_CRYPTO_NULL
208 FILES:=$(LINUX_DIR)/crypto/crypto_null.$(LINUX_KMOD_SUFFIX)
209 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
210 endef
211
212 $(eval $(call KernelPackage,crypto-null))
213
214
215 define KernelPackage/crypto-test
216 SUBMENU:=$(CRYPTO_MENU)
217 TITLE:=Test CryptoAPI module
218 DEPENDS:=+kmod-crypto-core
219 KCONFIG:=CONFIG_CRYPTO_TEST
220 FILES:=$(LINUX_DIR)/crypto/tcrypt.$(LINUX_KMOD_SUFFIX)
221 AUTOLOAD:=$(call AutoLoad,09,tcrypt)
222 endef
223
224 $(eval $(call KernelPackage,crypto-test))
225
This page took 0.061608 seconds and 5 git commands to generate.