From: Florian Fainelli Date: Wed, 10 Jul 2013 19:42:48 +0000 (+0000) Subject: kernel: package the HW random core module X-Git-Tag: reboot~9975 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0e479250a6ed6fd6653df8da6d17a44046afd43c;p=openwrt%2Fstaging%2Fblogic.git kernel: package the HW random core module And update the crypto-hw-hifn-795x to use it. Signed-off-by: Florian Fainelli SVN-Revision: 37231 --- diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index be76f5325120..065ddbfecb3c 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -164,8 +164,8 @@ $(eval $(call KernelPackage,crypto-hw-geode)) define KernelPackage/crypto-hw-hifn-795x TITLE:=HIFN 795x crypto accelerator + DEPENDS:=+kmod-random-core KCONFIG:= \ - CONFIG_HW_RANDOM=y \ CONFIG_CRYPTO_DEV_HIFN_795X \ CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 387090aec3aa..94bf5dd6cf85 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -684,3 +684,17 @@ define KernelPacakge/ptp-gianfar/description endef $(eval $(call KernelPackage,ptp-gianfar)) + +define KernelPackage/random-core + SUBMENU:=$(OTHER_MENU) + TITLE:=Hardware Random Number Generator Core support + KCONFIG:=CONFIG_HW_RANDOM + FILES:=$(LINUX_DIR)/drivers/char/hw_random/rng-core.ko + AUTOLOAD:=$(call AutoLoad,10,rng-core) +endef + +define KernelPackage/random-core/description + Kernel module for the HW random number generator core infrastructure +endef + +$(eval $(call KernelPackage,random-core))