]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
linux: crypto: fix dependencies for curve25519 and poly1305 21483/head
authorRobert Marko <robimarko@gmail.com>
Fri, 9 Jan 2026 19:37:01 +0000 (20:37 +0100)
committerRobert Marko <robimarko@gmail.com>
Sat, 10 Jan 2026 23:25:06 +0000 (00:25 +0100)
Currently, kmod-crypto-kpp is only implied for curve25519 and thus it
can get unselected and then building will fail due to missing kpp.ko.

Same issue happens with kmod-crypto-hash for poly1305.

So, lets drop the whole implies logic and make sure to always select
them as dependencies.

Fixes: #21386
Link: https://github.com/openwrt/openwrt/pull/21483
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/linux/modules/crypto.mk

index 3f6b20fbbbbc24a2149869127956d43f2966bd22..869601eb7037c05535ca4debc89308d2c992a40a 100644 (file)
@@ -624,11 +624,7 @@ define KernelPackage/crypto-lib-curve25519
   FILES:= \
        $(LINUX_DIR)/lib/crypto/libcurve25519.ko \
        $(LINUX_DIR)/lib/crypto/libcurve25519-generic.ko
-  $(call AddDepends/crypto,+PACKAGE_kmod-crypto-kpp:kmod-crypto-kpp)
-endef
-
-define KernelPackage/crypto-lib-curve25519/config
-  imply PACKAGE_kmod-crypto-kpp
+  $(call AddDepends/crypto,+kmod-crypto-kpp)
 endef
 
 ifndef CONFIG_TARGET_uml
@@ -661,11 +657,7 @@ define KernelPackage/crypto-lib-poly1305
   KCONFIG:=CONFIG_CRYPTO_LIB_POLY1305
   HIDDEN:=1
   FILES:=$(LINUX_DIR)/lib/crypto/libpoly1305.ko
-  $(call AddDepends/crypto,+PACKAGE_kmod-crypto-hash:kmod-crypto-hash)
-endef
-
-define KernelPackage/crypto-lib-poly1305/config
-  imply PACKAGE_kmod-crypto-hash
+  $(call AddDepends/crypto,+kmod-crypto-hash)
 endef
 
 ifndef CONFIG_TARGET_uml