summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMieczyslaw Nalewaj2025-04-27 16:29:01 +0000
committerChristian Marangi2025-04-30 14:26:35 +0000
commit0caa30b66aaa2186bb875453c2b92d9cd3e27303 (patch)
tree1c0d9493c43cabf9183fa0a4ea545c5c463564eb
parentff493d4a9b986a41a304351f38f946f470ac624d (diff)
downloadopenwrt-0caa30b66aaa2186bb875453c2b92d9cd3e27303.tar.gz
kernel: add new kmod and update kmod-tpm
Create a crypto-lib-aescfb package needed for new deps for kmod-tpm. Package kmod-tpm is missing dependencies for the following libraries: ecdh_generic.ko kpp.ko libaescfb.ko Co-authored-by: John Audia <therealgraysky@proton.me> Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/16547 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--package/kernel/linux/modules/crypto.mk11
-rw-r--r--package/kernel/linux/modules/other.mk5
2 files changed, 15 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index 78c9712176..2e6ee14572 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -558,6 +558,17 @@ endef
$(eval $(call KernelPackage,crypto-kpp))
+define KernelPackage/crypto-lib-aescfb
+ TITLE:=AES cipher operations feedback mode library
+ DEPENDS:=@!LINUX_6_6
+ KCONFIG:=CONFIG_CRYPTO_LIB_AESCFB
+ FILES:=$(LINUX_DIR)/lib/crypto/libaescfb.ko
+ AUTOLOAD:=$(call AutoLoad,09,libaescfb)
+ $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-lib-aescfb))
+
define KernelPackage/crypto-lib-chacha20
TITLE:=ChaCha library interface
KCONFIG:=CONFIG_CRYPTO_LIB_CHACHA
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 35e442aa24..e93a9b8407 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -928,7 +928,10 @@ define KernelPackage/tpm
SUBMENU:=$(OTHER_MENU)
TITLE:=TPM Hardware Support
DEPENDS:= +kmod-random-core +kmod-asn1-decoder \
- +kmod-asn1-encoder +kmod-oid-registry
+ +kmod-asn1-encoder +kmod-oid-registry \
+ +!LINUX_6_6:kmod-crypto-ecdh \
+ +!LINUX_6_6:kmod-crypto-kpp \
+ +!LINUX_6_6:kmod-crypto-lib-aescfb
KCONFIG:= CONFIG_TCG_TPM
FILES:= $(LINUX_DIR)/drivers/char/tpm/tpm.ko
AUTOLOAD:=$(call AutoLoad,10,tpm,1)