[tip:,x86/microcode] x86/microcode: Provide CONFIG_MICROCODE_INITRD32

Message ID 169780188387.3135.6426131850936558292.tip-bot2@tip-bot2
State New
Headers
Series [tip:,x86/microcode] x86/microcode: Provide CONFIG_MICROCODE_INITRD32 |

Commit Message

tip-bot2 for Thomas Gleixner Oct. 20, 2023, 11:38 a.m. UTC
  The following commit has been merged into the x86/microcode branch of tip:

Commit-ID:     fdbd43819400e74c1c20a646969ea8f71706eb2b
Gitweb:        https://git.kernel.org/tip/fdbd43819400e74c1c20a646969ea8f71706eb2b
Author:        Thomas Gleixner <tglx@linutronix.de>
AuthorDate:    Tue, 17 Oct 2023 23:23:29 +02:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Wed, 18 Oct 2023 18:28:41 +02:00

x86/microcode: Provide CONFIG_MICROCODE_INITRD32

Create an aggregate config switch which covers X86_32, MICROCODE and
BLK_DEV_INITRD to avoid lengthy #ifdeffery in upcoming code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231017211722.236208250@linutronix.de
---
 arch/x86/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 66bfaba..011cb7f 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1313,6 +1313,10 @@  config MICROCODE
 	def_bool y
 	depends on CPU_SUP_AMD || CPU_SUP_INTEL
 
+config MICROCODE_INITRD32
+	def_bool y
+	depends on MICROCODE && X86_32 && BLK_DEV_INITRD
+
 config MICROCODE_LATE_LOADING
 	bool "Late microcode loading (DANGEROUS)"
 	default n