X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Fkernel%2Flinux%2Fmodules%2Fcrypto.mk;h=d1ae0614608b1a604fb2674f3b18780229294275;hb=5f6a2732f892b6229473576d89cc963ae9c97d5d;hp=73f36beaa124a3ec9a4d01748f7b60ccad5a5fe2;hpb=3744e12c5e060c4e7b9a944f3bd320f9944e4a5b;p=openwrt.git diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 73f36beaa1..d1ae061460 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -262,10 +262,12 @@ define KernelPackage/crypto-aes $(call AddDepends/crypto) endef -define KernelPackage/crypto-aes/x86 - FILES+=$(LINUX_DIR)/arch/x86/crypto/aes-i586.ko - AUTOLOAD:=$(call AutoLoad,09,aes-i586) -endef +ifndef CONFIG_TARGET_x86_64 + define KernelPackage/crypto-aes/x86 + FILES+=$(LINUX_DIR)/arch/x86/crypto/aes-i586.ko + AUTOLOAD:=$(call AutoLoad,09,aes-i586) + endef +endif $(eval $(call KernelPackage,crypto-aes)) @@ -329,13 +331,10 @@ define KernelPackage/crypto-crc32c TITLE:=CRC32c CRC module DEPENDS:=+kmod-crypto-hash KCONFIG:=CONFIG_CRYPTO_CRC32C -ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.15.0)),1) - FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko - AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1) -else - FILES:=$(LINUX_DIR)/crypto/crc32c.ko - AUTOLOAD:=$(call AutoLoad,04,crc32c,1) -endif + FILES:= \ + $(LINUX_DIR)/crypto/crc32c.ko@lt3.15 \ + $(LINUX_DIR)/crypto/crc32c_generic.ko@ge3.15 + AUTOLOAD:=$(call AutoLoad,04,crc32c@lt3.15 crc32c_generic@ge3.15,1) $(call AddDepends/crypto) endef @@ -425,7 +424,7 @@ $(eval $(call KernelPackage,crypto-gf128)) define KernelPackage/crypto-ghash TITLE:=GHASH digest CryptoAPI module - DEPENDS:=+kmod-crypto-gf128 + DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash KCONFIG:=CONFIG_CRYPTO_GHASH FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko AUTOLOAD:=$(call AutoLoad,09,ghash-generic) @@ -495,13 +494,6 @@ endef $(eval $(call KernelPackage,crypto-sha256)) -ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1) -camellia_mod_suffix=_generic -endif -ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.7.0)),1) -cast56_mod_suffix=_generic -endif - define KernelPackage/crypto-misc TITLE:=Other CryptoAPI modules DEPENDS:=+kmod-crypto-manager @@ -523,10 +515,10 @@ define KernelPackage/crypto-misc CONFIG_CRYPTO_WP512 FILES:= \ $(LINUX_DIR)/crypto/anubis.ko \ - $(LINUX_DIR)/crypto/camellia$(camellia_mod_suffix).ko \ - $(if $(call kernel_patchver_ge,3.7),$(LINUX_DIR)/crypto/cast_common.ko) \ - $(LINUX_DIR)/crypto/cast5$(cast56_mod_suffix).ko \ - $(LINUX_DIR)/crypto/cast6$(cast56_mod_suffix).ko \ + $(LINUX_DIR)/crypto/camellia_generic.ko \ + $(LINUX_DIR)/crypto/cast_common.ko \ + $(LINUX_DIR)/crypto/cast5_generic.ko \ + $(LINUX_DIR)/crypto/cast6_generic.ko \ $(LINUX_DIR)/crypto/khazad.ko \ $(LINUX_DIR)/crypto/sha512_generic.ko \ $(LINUX_DIR)/crypto/tea.ko \ @@ -540,9 +532,11 @@ define KernelPackage/crypto-misc $(call AddDepends/crypto) endef -define KernelPackage/crypto-misc/x86 - FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko -endef +ifndef CONFIG_TARGET_x86_64 + define KernelPackage/crypto-misc/x86 + FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko + endef +endif $(eval $(call KernelPackage,crypto-misc))