kernel: add new kmod and update kmod-tpm
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Thu, 21 Nov 2024 19:35:41 +0000 (20:35 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Tue, 17 Dec 2024 22:28:10 +0000 (23:28 +0100)
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>
package/kernel/linux/modules/crypto.mk
package/kernel/linux/modules/other.mk

index 2257a36c802cdaf576c535758e7b2d0ba877d589..ba7434189b3b66c8644adffde6630c71e23c63f6 100644 (file)
@@ -538,6 +538,17 @@ endef
 
 $(eval $(call KernelPackage,crypto-kpp))
 
+define KernelPackage/crypto-lib-aescfb
+  TITLE:=AES cipher operations feedback mode library
+  DEPENDS:=@LINUX_6_12
+  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
index 7b64985fd69e7df95d2f19822cb3c8e4106dd267..a73d4207793c8ca2b830f9ba07c0323a2043ffbe 100644 (file)
@@ -1042,7 +1042,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_12:kmod-crypto-ecdh \
+         +LINUX_6_12:kmod-crypto-kpp \
+         +LINUX_6_12:kmod-crypto-lib-aescfb
   KCONFIG:= CONFIG_TCG_TPM
   FILES:= $(LINUX_DIR)/drivers/char/tpm/tpm.ko
   AUTOLOAD:=$(call AutoLoad,10,tpm,1)