Skip to content

Commit 9c55d99

Browse files
committed
x86/microcode: Add explicit CPU vendor dependency
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]
1 parent 3123109 commit 9c55d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ config MICROCODE
13131313

13141314
config MICROCODE_INTEL
13151315
bool "Intel microcode loading support"
1316-
depends on MICROCODE
1316+
depends on CPU_SUP_INTEL && MICROCODE
13171317
default MICROCODE
13181318
help
13191319
This options enables microcode patch loading support for Intel
@@ -1325,7 +1325,7 @@ config MICROCODE_INTEL
13251325

13261326
config MICROCODE_AMD
13271327
bool "AMD microcode loading support"
1328-
depends on MICROCODE
1328+
depends on CPU_SUP_AMD && MICROCODE
13291329
help
13301330
If you select this option, microcode patch loading support for AMD
13311331
processors will be enabled.

0 commit comments

Comments
 (0)