summaryrefslogtreecommitdiff
path: root/src/cpu/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/Kconfig')
-rw-r--r--src/cpu/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cpu/Kconfig b/src/cpu/Kconfig
index 7317bccbfd..6c118b7908 100644
--- a/src/cpu/Kconfig
+++ b/src/cpu/Kconfig
@@ -77,6 +77,17 @@ config CPU_MICROCODE_IN_CBFS
bool
default n
+# This variable is used to determine if we add CPU microcode to CBFS during the
+# build. Microcode can be added manually afterwards, or removed. As a result,
+# code should not rely on this to tell if a microcode update is present or not,
+# and should instead search CBFS.
+# This variable is useful in determining if certain automated post-processing
+# steps can be performed right after the build, such as automatically adding
+# a firmware interface table.
+config CPU_MICROCODE_ADDED_DURING_BUILD
+ bool
+ default y if CPU_MICROCODE_CBFS_GENERATE || CPU_MICROCODE_CBFS_EXTERNAL
+
choice
prompt "Include CPU microcode in CBFS" if ARCH_X86
default CPU_MICROCODE_CBFS_GENERATE if CPU_MICROCODE_IN_CBFS