From 030785fa60f8e41af2885f4c043f11a81372b2c5 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sun, 19 Jul 2020 18:02:52 +0800 Subject: [PATCH] kernel/crypto: add rk3328 crypto support Signed-off-by: CN_SZTL --- package/kernel/linux/modules/crypto.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 8d630c0335..5f9fd5df8d 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -841,6 +841,7 @@ define KernelPackage/crypto-wq AUTOLOAD:=$(call AutoLoad,09,crypto_wq) $(call AddDepends/crypto) endef + $(eval $(call KernelPackage,crypto-wq)) @@ -855,3 +856,14 @@ endef $(eval $(call KernelPackage,crypto-xts)) + +define KernelPackage/crypto-rk3328 + TITLE:=Rockchip RK3328 CryptoAPI module + DEPENDS:=@TARGET_rockchip +kmod-crypto-des +kmod-crypto-md5 +kmod-crypto-sha1 +kmod-crypto-sha256 + KCONFIG:=CONFIG_CRYPTO_DEV_ROCKCHIP + FILES:=$(LINUX_DIR)/drivers/crypto/rockchip/rk_crypto.ko + AUTOLOAD:=$(call AutoLoad,09,rk_crypto) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-rk3328))