Commit fed806f4 authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds

[PATCH] allow hwrandom core to be a module

Despite it being small, there should be the option of making it a
module...
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Cc: Michael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1df1e63b
...@@ -3,17 +3,20 @@ ...@@ -3,17 +3,20 @@
# #
config HW_RANDOM config HW_RANDOM
bool "Hardware Random Number Generator Core support" tristate "Hardware Random Number Generator Core support"
default y default m
---help--- ---help---
Hardware Random Number Generator Core infrastructure. Hardware Random Number Generator Core infrastructure.
To compile this driver as a module, choose M here: the
module will be called rng-core.
If unsure, say Y. If unsure, say Y.
config HW_RANDOM_INTEL config HW_RANDOM_INTEL
tristate "Intel HW Random Number Generator support" tristate "Intel HW Random Number Generator support"
depends on HW_RANDOM && (X86 || IA64) && PCI depends on HW_RANDOM && (X86 || IA64) && PCI
default y default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
Generator hardware found on Intel i8xx-based motherboards. Generator hardware found on Intel i8xx-based motherboards.
...@@ -26,7 +29,7 @@ config HW_RANDOM_INTEL ...@@ -26,7 +29,7 @@ config HW_RANDOM_INTEL
config HW_RANDOM_AMD config HW_RANDOM_AMD
tristate "AMD HW Random Number Generator support" tristate "AMD HW Random Number Generator support"
depends on HW_RANDOM && X86 && PCI depends on HW_RANDOM && X86 && PCI
default y default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
Generator hardware found on AMD 76x-based motherboards. Generator hardware found on AMD 76x-based motherboards.
...@@ -39,7 +42,7 @@ config HW_RANDOM_AMD ...@@ -39,7 +42,7 @@ config HW_RANDOM_AMD
config HW_RANDOM_GEODE config HW_RANDOM_GEODE
tristate "AMD Geode HW Random Number Generator support" tristate "AMD Geode HW Random Number Generator support"
depends on HW_RANDOM && X86 && PCI depends on HW_RANDOM && X86 && PCI
default y default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
Generator hardware found on the AMD Geode LX. Generator hardware found on the AMD Geode LX.
...@@ -52,7 +55,7 @@ config HW_RANDOM_GEODE ...@@ -52,7 +55,7 @@ config HW_RANDOM_GEODE
config HW_RANDOM_VIA config HW_RANDOM_VIA
tristate "VIA HW Random Number Generator support" tristate "VIA HW Random Number Generator support"
depends on HW_RANDOM && X86_32 depends on HW_RANDOM && X86_32
default y default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
Generator hardware found on VIA based motherboards. Generator hardware found on VIA based motherboards.
...@@ -65,7 +68,7 @@ config HW_RANDOM_VIA ...@@ -65,7 +68,7 @@ config HW_RANDOM_VIA
config HW_RANDOM_IXP4XX config HW_RANDOM_IXP4XX
tristate "Intel IXP4xx NPU HW Random Number Generator support" tristate "Intel IXP4xx NPU HW Random Number Generator support"
depends on HW_RANDOM && ARCH_IXP4XX depends on HW_RANDOM && ARCH_IXP4XX
default y default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random This driver provides kernel-side support for the Random
Number Generator hardware found on the Intel IXP4xx NPU. Number Generator hardware found on the Intel IXP4xx NPU.
...@@ -78,7 +81,7 @@ config HW_RANDOM_IXP4XX ...@@ -78,7 +81,7 @@ config HW_RANDOM_IXP4XX
config HW_RANDOM_OMAP config HW_RANDOM_OMAP
tristate "OMAP Random Number Generator support" tristate "OMAP Random Number Generator support"
depends on HW_RANDOM && (ARCH_OMAP16XX || ARCH_OMAP24XX) depends on HW_RANDOM && (ARCH_OMAP16XX || ARCH_OMAP24XX)
default y default HW_RANDOM
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
Generator hardware found on OMAP16xx and OMAP24xx multimedia Generator hardware found on OMAP16xx and OMAP24xx multimedia
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
# Makefile for HW Random Number Generator (RNG) device drivers. # Makefile for HW Random Number Generator (RNG) device drivers.
# #
obj-$(CONFIG_HW_RANDOM) += core.o obj-$(CONFIG_HW_RANDOM) += rng-core.o
rng-core-y := core.o
obj-$(CONFIG_HW_RANDOM_INTEL) += intel-rng.o obj-$(CONFIG_HW_RANDOM_INTEL) += intel-rng.o
obj-$(CONFIG_HW_RANDOM_AMD) += amd-rng.o obj-$(CONFIG_HW_RANDOM_AMD) += amd-rng.o
obj-$(CONFIG_HW_RANDOM_GEODE) += geode-rng.o obj-$(CONFIG_HW_RANDOM_GEODE) += geode-rng.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment