From: Robert Marko Date: Thu, 7 Mar 2024 13:47:13 +0000 (+0100) Subject: kernel: crypto: package geniv as a separate module for 6.6 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b065981e15d454351e04e2c27ad2c13745a1bf7a;p=openwrt%2Fstaging%2Fnbd.git 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 --- 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