X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/eb30c3b7ceb6ded6394c37007a25fd887ac44d8b..5c835e4d31216d7dd5f0d090f726ee33fc27c8d3:/package/kernel/modules/crypto.mk diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk index 7c6835135..a371e9611 100644 --- a/package/kernel/modules/crypto.mk +++ b/package/kernel/modules/crypto.mk @@ -278,7 +278,7 @@ endef define KernelPackage/crypto-misc/2.6 FILES+= \ $(LINUX_DIR)/crypto/camellia.$(LINUX_KMOD_SUFFIX) \ - $(LINUX_DIR)/crypto/crc32c.$(LINUX_KMOD_SUFFIX) \ + $(if $(findstring y,$(CONFIG_CRYPTO_CRC32C)),,$(LINUX_DIR)/crypto/crc32c.$(LINUX_KMOD_SUFFIX)) \ $(LINUX_DIR)/crypto/fcrypt.$(LINUX_KMOD_SUFFIX) \ $(LINUX_DIR)/crypto/tgr192.$(LINUX_KMOD_SUFFIX) \ $(LINUX_DIR)/crypto/twofish_common.$(LINUX_KMOD_SUFFIX) @@ -293,7 +293,7 @@ $(eval $(call KernelPackage,crypto-misc)) define KernelPackage/crypto-ocf TITLE:=OCF modules - DEPENDS:=@LINUX_2_6 +@OPENSSL_ENGINE @!TARGET_uml + DEPENDS:=+@OPENSSL_ENGINE @!TARGET_uml KCONFIG:= \ CONFIG_OCF_OCF \ CONFIG_OCF_CRYPTODEV \ @@ -315,6 +315,30 @@ endef $(eval $(call KernelPackage,crypto-ocf)) +define KernelPackage/crypto-ocf-hifn7751 + TITLE:=OCF support for Hifn 6500/7751/7811/795x, Invertex AEON and NetSec 7751 devices + DEPENDS:=+@OPENSSL_ENGINE @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf + KCONFIG:=CONFIG_OCF_HIFN + FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifn7751.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,10,hifn7751) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-ocf-hifn7751)) + + +define KernelPackage/crypto-ocf-hifnhipp + TITLE:=OCF support for Hifn 7855/8155 devices + DEPENDS:=+@OPENSSL_ENGINE @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf + KCONFIG:=CONFIG_OCF_HIFNHIPP + FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifnHIPP.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,10,hifnhipp) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-ocf-hifnhipp)) + + define KernelPackage/crypto-null TITLE:=Null CryptoAPI module KCONFIG:=CONFIG_CRYPTO_NULL