X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9a58094292a8b7e19fd3a42f8278a95b5ffd508e..03dd7f31977df09b73dd223730c77adbaa6bcf5f:/package/kernel/modules/crypto.mk diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk index 133c790ee..d2c9dc499 100644 --- a/package/kernel/modules/crypto.mk +++ b/package/kernel/modules/crypto.mk @@ -14,14 +14,12 @@ CRYPTO_MENU:=Cryptographic API modules # - sha1 > sha1_generic (2.6.24) # - sha256 > sha256_generic (2.6.24) # - sha512 > sha512_generic (2.6.26) -ifneq ($(CONFIG_LINUX_2_6),) - CRYPTO_GENERIC:=_generic - AES_SUFFIX:=$(CRYPTO_GENERIC) - DES_SUFFIX:=$(CRYPTO_GENERIC) - SHA1_SUFFIX:=$(CRYPTO_GENERIC) - SHA256_SUFFIX:=$(CRYPTO_GENERIC) - SHA512_SUFFIX:=$(CRYPTO_GENERIC) -endif +CRYPTO_GENERIC:=_generic +AES_SUFFIX:=$(CRYPTO_GENERIC) +DES_SUFFIX:=$(CRYPTO_GENERIC) +SHA1_SUFFIX:=$(CRYPTO_GENERIC) +SHA256_SUFFIX:=$(CRYPTO_GENERIC) +SHA512_SUFFIX:=$(CRYPTO_GENERIC) CRYPTO_MODULES = \ ALGAPI=crypto_algapi \ @@ -64,7 +62,6 @@ endef define KernelPackage/crypto-hw-padlock TITLE:=VIA PadLock ACE with AES/SHA hw crypto module - DEPENDS:=@LINUX_2_6 KCONFIG:= \ CONFIG_CRYPTO_HW=y \ CONFIG_CRYPTO_DEV_PADLOCK \ @@ -82,7 +79,6 @@ $(eval $(call KernelPackage,crypto-hw-padlock)) define KernelPackage/crypto-hw-geode TITLE:=AMD Geode hardware crypto module - DEPENDS:=@LINUX_2_6 KCONFIG:= \ CONFIG_CRYPTO_HW=y \ CONFIG_CRYPTO_DEV_GEODE @@ -96,7 +92,7 @@ $(eval $(call KernelPackage,crypto-hw-geode)) define KernelPackage/crypto-hw-hifn-795x TITLE:=HIFN 795x crypto accelerator - DEPENDS:=@LINUX_2_6 @!TARGET_ubicom32 + DEPENDS:=@!TARGET_ubicom32 KCONFIG:= \ CONFIG_CRYPTO_HW=y \ CONFIG_HW_RANDOM=y \ @@ -278,7 +274,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) @@ -329,7 +325,7 @@ $(eval $(call KernelPackage,crypto-ocf-hifn7751)) define KernelPackage/crypto-ocf-hifnhipp TITLE:=OCF support for Hifn 7855/8155 devices - DEPENDS:=+@OPENSSL_ENGINE @!TARGET_uml kmod-crypto-ocf + 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)