aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/modules/crypto.mk
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-01-01 19:04:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-01-01 19:04:17 +0000
commitab4ea8ad168998869958e90260f709ae3d54eecb (patch)
tree9612b3de3173a1af89b6920189cf59daf9a08fd6 /package/kernel/modules/crypto.mk
parentd91117459c1536173ed71f3a4f64e5d4603aac4b (diff)
downloadupstream-ab4ea8ad168998869958e90260f709ae3d54eecb.tar.gz
upstream-ab4ea8ad168998869958e90260f709ae3d54eecb.tar.bz2
upstream-ab4ea8ad168998869958e90260f709ae3d54eecb.zip
package/kernel: create separate package for the sha256 crypto module
Based on a patch from #12711 Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34955
Diffstat (limited to 'package/kernel/modules/crypto.mk')
-rw-r--r--package/kernel/modules/crypto.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk
index 2fed357ea8..02e3f68b0c 100644
--- a/package/kernel/modules/crypto.mk
+++ b/package/kernel/modules/crypto.mk
@@ -332,6 +332,17 @@ endef
$(eval $(call KernelPackage,crypto-sha1))
+define KernelPackage/crypto-sha256
+ TITLE:=SHA224 SHA256 digest CryptoAPI module
+ DEPENDS:=+kmod-crypto-hash
+ KCONFIG:=CONFIG_CRYPTO_SHA256
+ FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
+ AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
+ $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-sha256))
+
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1)
camellia_mod_suffix=_generic
endif
@@ -351,7 +362,6 @@ define KernelPackage/crypto-misc
CONFIG_CRYPTO_FCRYPT \
CONFIG_CRYPTO_KHAZAD \
CONFIG_CRYPTO_SERPENT \
- CONFIG_CRYPTO_SHA256 \
CONFIG_CRYPTO_SHA512 \
CONFIG_CRYPTO_TEA \
CONFIG_CRYPTO_TGR192 \
@@ -366,7 +376,6 @@ define KernelPackage/crypto-misc
$(LINUX_DIR)/crypto/cast6$(cast56_mod_suffix).ko \
$(LINUX_DIR)/crypto/fcrypt.ko \
$(LINUX_DIR)/crypto/khazad.ko \
- $(LINUX_DIR)/crypto/sha256_generic.ko \
$(LINUX_DIR)/crypto/sha512_generic.ko \
$(LINUX_DIR)/crypto/tea.ko \
$(LINUX_DIR)/crypto/tgr192.ko \