[openwrt/openwrt] kernel: kmod-crypto-gf128: Fix build with kernel 6.6

LEDE Commits lede-commits at lists.infradead.org
Thu Mar 14 13:03:59 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c00fbba57c321fa5a1d063527f7e851aa30458ab

commit c00fbba57c321fa5a1d063527f7e851aa30458ab
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Wed Mar 13 20:24:23 2024 +0100

    kernel: kmod-crypto-gf128: Fix build with kernel 6.6
    
    The gf128mul.ko module was moved in kernel 6.2:
    https://git.kernel.org/linus/61c581a46a9668747d355436bd4b2505594539bd
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/crypto.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index ea2a104335..21b7aa51bd 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -290,8 +290,12 @@ $(eval $(call KernelPackage,crypto-xcbc))
 
 define KernelPackage/crypto-gf128
   TITLE:=GF(2^128) multiplication functions CryptoAPI module
-  KCONFIG:=CONFIG_CRYPTO_GF128MUL
-  FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
+  KCONFIG:= \
+	CONFIG_CRYPTO_GF128MUL \
+	CONFIG_CRYPTO_LIB_GF128MUL
+  FILES:= \
+	$(LINUX_DIR)/crypto/gf128mul.ko at lt6.2 \
+	$(LINUX_DIR)/lib/crypto/gf128mul.ko at ge6.2
   AUTOLOAD:=$(call AutoLoad,09,gf128mul)
   $(call AddDepends/crypto)
 endef




More information about the lede-commits mailing list