X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8236d49861d359413815cb4a0fd6a3f5a4fd5737..f72d4a34322e17d45287eb440301b51ade5e61ca:/package/kernel/modules/crypto.mk diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk index 53f95eb3a..5aa954900 100644 --- a/package/kernel/modules/crypto.mk +++ b/package/kernel/modules/crypto.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -57,7 +57,7 @@ define KernelPackage/crypto-hash TITLE:=CryptoAPI hash support KCONFIG:=CONFIG_CRYPTO_HASH FILES:=$(LINUX_DIR)/crypto/crypto_hash.ko - AUTOLOAD:=$(call AutoLoad,02,crypto_hash.ko) + AUTOLOAD:=$(call AutoLoad,02,crypto_hash) $(call AddDepends/crypto) endef $(eval $(call KernelPackage,crypto-hash)) @@ -76,6 +76,38 @@ define KernelPackage/crypto-manager endef $(eval $(call KernelPackage,crypto-manager)) +define KernelPackage/crypto-wq + TITLE:=CryptoAPI work queue handling + KCONFIG:=CONFIG_CRYPTO_WORKQUEUE + FILES:=$(LINUX_DIR)/crypto/crypto_wq.ko + AUTOLOAD:=$(call AutoLoad,09,crypto_wq) + $(call AddDepends/crypto) +endef +$(eval $(call KernelPackage,crypto-wq)) + +define KernelPackage/crypto-rng + TITLE:=CryptoAPI random number generation + KCONFIG:=CONFIG_CRYPTO_RNG2 + FILES:= \ + $(LINUX_DIR)/crypto/rng.ko \ + $(LINUX_DIR)/crypto/krng.ko + AUTOLOAD:=$(call AutoLoad,09,rng krng) + $(call AddDepends/crypto) +endef +$(eval $(call KernelPackage,crypto-rng)) + +define KernelPackage/crypto-iv + TITLE:=CryptoAPI initialization vectors + DEPENDS:=+kmod-crypto-rng +kmod-crypto-wq + KCONFIG:= CONFIG_CRYPTO_BLKCIPHER2 + FILES:= \ + $(LINUX_DIR)/crypto/eseqiv.ko \ + $(LINUX_DIR)/crypto/chainiv.ko + AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv) + $(call AddDepends/crypto) +endef +$(eval $(call KernelPackage,crypto-iv)) + define KernelPackage/crypto-hw-padlock TITLE:=VIA PadLock ACE with AES/SHA hw crypto module DEPENDS:=+kmod-crypto-aes @@ -215,6 +247,7 @@ $(eval $(call KernelPackage,crypto-des)) define KernelPackage/crypto-deflate TITLE:=Deflate compression CryptoAPI module + DEPENDS:=+kmod-zlib KCONFIG:=CONFIG_CRYPTO_DEFLATE FILES:=$(LINUX_DIR)/crypto/deflate.ko AUTOLOAD:=$(call AutoLoad,09,deflate) @@ -317,9 +350,12 @@ define KernelPackage/crypto-misc $(LINUX_DIR)/crypto/sha256$(SHA256_SUFFIX).ko \ $(LINUX_DIR)/crypto/sha512$(SHA512_SUFFIX).ko \ $(LINUX_DIR)/crypto/tea.ko \ - $(if $(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.35)),,$(LINUX_DIR)/crypto/twofish.ko) \ - $(if $(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.36)),,$(LINUX_DIR)/crypto/twofish_generic.ko) \ $(LINUX_DIR)/crypto/wp512.ko + ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.35)),1) + FILES += $(LINUX_DIR)/crypto/twofish.ko + else + FILES += $(LINUX_DIR)/crypto/twofish_generic.ko + endif $(call AddDepends/crypto) endef @@ -341,7 +377,7 @@ $(eval $(call KernelPackage,crypto-misc)) define KernelPackage/crypto-ocf TITLE:=OCF modules - DEPENDS:=+@OPENSSL_ENGINE @!TARGET_uml + DEPENDS:=+@OPENSSL_ENGINE @!TARGET_uml +kmod-crypto-manager KCONFIG:= \ CONFIG_OCF_OCF \ CONFIG_OCF_CRYPTODEV \ @@ -427,12 +463,12 @@ endef $(eval $(call KernelPackage,crypto-xts)) define KernelPackage/crypto-mv-cesa - TITLE:=Marvell crypto engine - KCONFIG:=CONFIG_CRYPTO_DEV_MV_CESA - FILES:=$(LINUX_DIR)/drivers/crypto/mv_cesa.ko - AUTOLOAD:=$(call AutoLoad,09,mv_cesa) - SUBMENU:=Cryptographic API modules - DEPENDS:=kmod-crypto-core @TARGET_kirkwood||TARGET_orion + TITLE:=Marvell crypto engine + DEPENDS:=+kmod-crypto-manager @TARGET_kirkwood||TARGET_orion + KCONFIG:=CONFIG_CRYPTO_DEV_MV_CESA + FILES:=$(LINUX_DIR)/drivers/crypto/mv_cesa.ko + AUTOLOAD:=$(call AutoLoad,09,mv_cesa) + $(call AddDepends/crypto) endef $(eval $(call KernelPackage,crypto-mv-cesa))