diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-07-10 19:42:48 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2013-07-10 19:42:48 +0000 |
commit | 7d30edeb3c69a9a7552ecabdb8f6154baba21e0d (patch) | |
tree | 675dbc8de1fbe2b99dadd2baf177ef3c2f08808a /package | |
parent | c7ae72df76848f1b5be2410d30cd322f18b6991f (diff) | |
download | upstream-7d30edeb3c69a9a7552ecabdb8f6154baba21e0d.tar.gz upstream-7d30edeb3c69a9a7552ecabdb8f6154baba21e0d.tar.bz2 upstream-7d30edeb3c69a9a7552ecabdb8f6154baba21e0d.zip |
kernel: package the HW random core module
And update the crypto-hw-hifn-795x to use it.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37231 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/linux/modules/crypto.mk | 2 | ||||
-rw-r--r-- | package/kernel/linux/modules/other.mk | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index be76f53251..065ddbfecb 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 387090aec3..94bf5dd6cf 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)) |