[PATCH] x86, microcode: Correct kconfig dependencies

From: Borislav Petkov
Date: Sun Oct 13 2013 - 12:36:44 EST


From: Borislav Petkov <bp@xxxxxxx>

I have a randconfig here which has enabled only

CONFIG_MICROCODE=y
CONFIG_MICROCODE_OLD_INTERFACE=y

with both

# CONFIG_MICROCODE_INTEL is not set
# CONFIG_MICROCODE_AMD is not set

off. Which makes building the microcode functionality a little
pointless. Don't do that in such cases then.

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
---
arch/x86/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 8076f1d9e4e7..945492c9b285 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1071,6 +1071,7 @@ config X86_REBOOTFIXUPS

config MICROCODE
tristate "CPU microcode loading support"
+ depends on CPU_SUP_AMD || CPU_SUP_INTEL
select FW_LOADER
---help---

--
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/