[OpenWrt-Devel] [PATCH] kernel: crypto: add fsl CAAM package

Dirk Neukirchen dirkneukirchen at web.de
Fri Feb 5 20:42:11 EST 2016


some comments:

- follow alphabetic order
- keep crypto-hw prefix
- dump vendor
I would suggest: crypto-hw-caam
Reasoning: talitos, omap, ccp, geode do not contain hw vendor name

unsure: since this package is specific to imx6 you may want to use
target/linux/imx6/modules.mk (like sunxi, ar71xx ...)


On 06.02.2016 00:11, Pushpal Sidhu wrote:
> Kernel package enables the Freescale CAAM (crypto accelerator and assurance
> module, aka SEC4). Sets kernel defaults for ringsize, intc, and debug.
> 
> Signed-off-by: Pushpal Sidhu <psidhu at gateworks.com>
> ---
>  package/kernel/linux/modules/crypto.mk | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
> index 99fb5a0..f328ac5 100644
> --- a/package/kernel/linux/modules/crypto.mk
> +++ b/package/kernel/linux/modules/crypto.mk
> @@ -194,6 +194,30 @@ endef
>  
>  $(eval $(call KernelPackage,crypto-hw-ccp))
>  
> +define KernelPackage/crypto-fsl-caam
> +  TITLE:=Freescale CAAM driver
> +  DEPENDS:=@TARGET_imx6 +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-hash +kmod-random-core
> +  KCONFIG:= \
> +	CONFIG_CRYPTO_HW=y \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_JR \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=n \
> +	CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=n
> +  FILES:= \
> +	$(LINUX_DIR)/drivers/crypto/caam/caam.ko \
> +	$(LINUX_DIR)/drivers/crypto/caam/caamalg.ko \
> +	$(LINUX_DIR)/drivers/crypto/caam/caamhash.ko \
> +	$(LINUX_DIR)/drivers/crypto/caam/caam_jr.ko \
> +	$(LINUX_DIR)/drivers/crypto/caam/caamrng.ko
> +  AUTOLOAD:=$(call AutoLoad,09,caam caamalg caamhash caam_jr caamrng)
> +  $(call AddDepends/crypto)
> +endef
> +
> +$(eval $(call KernelPackage,crypto-fsl-caam))
>  
>  define KernelPackage/crypto-hw-geode
>    TITLE:=AMD Geode hardware crypto module
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list