From 199f6f182456294a0ce23b2a0b258d1c275438a5 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Thu, 2 Apr 2026 17:57:40 +0200 Subject: [PATCH] kenrel: crypto: fix build with Linux >= 6.18 after md5-ppc removal Linux commit 09371e1349c9 ("lib/crypto: powerpc/md5: Migrate optimized code into library") removed the PowerPC-specific MD5 implementation (md5-ppc.ko) and replaced it with an optimized library implementation in lib/crypto. As a result, CONFIG_CRYPTO_MD5_PPC and the module arch/powerpc/crypto/md5-ppc.ko no longer exist in kernels >= 6.18. Link: https://github.com/openwrt/openwrt/pull/22732 Signed-off-by: Nick Hainke --- package/kernel/linux/modules/crypto.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index baf936a3c1..650fdd598f 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -741,7 +741,7 @@ define KernelPackage/crypto-md5 KCONFIG:= \ CONFIG_CRYPTO_MD5 \ CONFIG_CRYPTO_MD5_OCTEON \ - CONFIG_CRYPTO_MD5_PPC + CONFIG_CRYPTO_MD5_PPC@lt6.18 FILES:=$(LINUX_DIR)/crypto/md5.ko \ $(LINUX_DIR)/lib/crypto/libmd5.ko@ge6.18 AUTOLOAD:=$(call AutoLoad,09,md5 libmd5@ge6.18) @@ -754,8 +754,8 @@ define KernelPackage/crypto-md5/octeon endef define KernelPackage/crypto-md5/powerpc - FILES+=$(LINUX_DIR)/arch/powerpc/crypto/md5-ppc.ko - AUTOLOAD+=$(call AutoLoad,09,md5-ppc) + FILES+=$(LINUX_DIR)/arch/powerpc/crypto/md5-ppc.ko@lt6.18 + AUTOLOAD+=$(call AutoLoad,09,LINUX_6_12:md5-ppc) endef ifdef KernelPackage/crypto-md5/$(ARCH)