Skip to content

Commit 907dd7b

Browse files
andrewjlamarchePolynomialDivision
authored andcommitted
kernel: crypto: fix build with Linux >= 6.18 after octeon-md5 removal
Linux commit c9e5ac0 ("lib/crypto: mips/md5: Migrate optimized code into library") removed the MIPS-Octeon-specific MD5 implementation (octeon-md5.ko) and replaced it with an optimized library implementation in lib/crypto. As a result, CONFIG_CRYPTO_MD5_OCTEON and the module arch/mips/crypto/octeon-md5.ko no longer exist in kernels >= 6.18. Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com> Link: openwrt/openwrt#23031 Signed-off-by: Nick Hainke <vincent@systemli.org>
1 parent 1cf45ad commit 907dd7b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

package/kernel/linux/modules/crypto.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ define KernelPackage/crypto-md5
740740
DEPENDS:=+kmod-crypto-hash
741741
KCONFIG:= \
742742
CONFIG_CRYPTO_MD5 \
743-
CONFIG_CRYPTO_MD5_OCTEON \
743+
CONFIG_CRYPTO_MD5_OCTEON@lt6.18 \
744744
CONFIG_CRYPTO_MD5_PPC@lt6.18
745745
FILES:=$(LINUX_DIR)/crypto/md5.ko \
746746
$(LINUX_DIR)/lib/crypto/libmd5.ko@ge6.18
@@ -749,8 +749,8 @@ define KernelPackage/crypto-md5
749749
endef
750750

751751
define KernelPackage/crypto-md5/octeon
752-
FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
753-
AUTOLOAD+=$(call AutoLoad,09,octeon-md5)
752+
FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko@lt6.18
753+
AUTOLOAD+=$(call AutoLoad,09,LINUX_6_12:octeon-md5)
754754
endef
755755

756756
define KernelPackage/crypto-md5/powerpc

0 commit comments

Comments
 (0)