[PATCH] Don't always ask about Intel or AMD RNGs

Tom Rini (trini@kernel.crashing.org)
Wed, 3 Apr 2002 07:56:04 -0700


Hello. The following patch hides the option for Intel (i8x0) RNG
support. I suspect this is an ia32-only option, but since it's possible
that it's used on ia64 as well, this tests for both. By similar logic,
the AMD (768) RNG support is only asked for on ia32 and x86-64.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

===== drivers/char/Config.in 1.19 vs edited ===== --- 1.19/drivers/char/Config.in Fri Mar 29 07:49:29 2002 +++ edited/drivers/char/Config.in Wed Apr 3 07:52:57 2002 @@ -217,8 +217,12 @@ tristate 'NetWinder flash support' CONFIG_NWFLASH fi -dep_tristate 'AMD 768 Random Number Generator support' CONFIG_AMD_RNG $CONFIG_PCI -dep_tristate 'Intel i8x0 Random Number Generator support' CONFIG_INTEL_RNG $CONFIG_PCI +if [ "$CONFIG_X86" = "y" -o "$CONFIG_X86_64" = "y" ]; then + dep_tristate 'AMD 768 Random Number Generator support' CONFIG_AMD_RNG $CONFIG_PCI +fi +if [ "$CONFIG_X86" = "y" -o "$CONFIG_IA64" = "y" ]; then + dep_tristate 'Intel i8x0 Random Number Generator support' CONFIG_INTEL_RNG $CONFIG_PCI +fi tristate '/dev/nvram support' CONFIG_NVRAM tristate 'Enhanced Real Time Clock Support' CONFIG_RTC if [ "$CONFIG_IA64" = "y" ]; then - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/