[openwrt/openwrt] kernel: crypto: package geniv as a separate module for 6.6

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 11 12:18:03 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b065981e15d454351e04e2c27ad2c13745a1bf7a

commit b065981e15d454351e04e2c27ad2c13745a1bf7a
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Thu Mar 7 14:47:13 2024 +0100

    kernel: crypto: package geniv as a separate module for 6.6
    
    In kernel 6.5 geniv was split from AEAD config symbol, in order to manage
    its dependencies on other code.
    
    So, lets do the same in OpenWrt and split it from aead module so others
    can depend on geniv directly.
    
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/linux/modules/crypto.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index f61f258603..335930cfaa 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -891,6 +891,19 @@ endef
 $(eval $(call KernelPackage,crypto-rng))
 
 
+define KernelPackage/crypto-geniv
+  TITLE:=CryptoAPI Shared IV generator
+  HIDDEN:=1
+  DEPENDS:=+kmod-crypto-rng +kmod-crypto-aead @LINUX_6_6
+  KCONFIG:=CONFIG_CRYPTO_GENIV
+  FILES:=$(LINUX_DIR)/crypto/geniv.ko
+  AUTOLOAD:=$(call AutoLoad,09,geniv)
+  $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-geniv))
+
+
 define KernelPackage/crypto-seqiv
   TITLE:=CryptoAPI Sequence Number IV Generator
   DEPENDS:=+kmod-crypto-aead +kmod-crypto-rng




More information about the lede-commits mailing list