]> Git Repo - linux.git/commitdiff
x86/microcode: Add explicit CPU vendor dependency
authorBorislav Petkov <[email protected]>
Thu, 19 May 2022 14:59:13 +0000 (16:59 +0200)
committerBorislav Petkov <[email protected]>
Fri, 20 May 2022 09:28:32 +0000 (11:28 +0200)
Add an explicit dependency to the respective CPU vendor so that the
respective microcode support for it gets built only when that support is
enabled.

Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/x86/Kconfig

index b0142e01002e3dd4fc3299f23da6ce2e6aaa3997..7ba627c60504de231faed411576410a36820f0e9 100644 (file)
@@ -1313,7 +1313,7 @@ config MICROCODE
 
 config MICROCODE_INTEL
        bool "Intel microcode loading support"
-       depends on MICROCODE
+       depends on CPU_SUP_INTEL && MICROCODE
        default MICROCODE
        help
          This options enables microcode patch loading support for Intel
@@ -1325,7 +1325,7 @@ config MICROCODE_INTEL
 
 config MICROCODE_AMD
        bool "AMD microcode loading support"
-       depends on MICROCODE
+       depends on CPU_SUP_AMD && MICROCODE
        help
          If you select this option, microcode patch loading support for AMD
          processors will be enabled.
This page took 0.064504 seconds and 4 git commands to generate.