summaryrefslogtreecommitdiff
path: root/src/cpu/x86/Makefile.inc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-10-14 11:35:51 +0200
committerDavid Hendricks <david.hendricks@gmail.com>2021-05-18 16:54:21 +0000
commit6419cd3335ef0aa20566ebc07812fcc0c7049604 (patch)
tree56052ccb1e400fe19fd7e75d20a40f765f21e421 /src/cpu/x86/Makefile.inc
parent3c79777cd62a66ede560b1069565fc42a8e0f008 (diff)
cpu/x86: Only include smm code if CONFIG_HAVE_SMI_HANDLER=y
This removes the need to include this code separately on each platform. Change-Id: I3d848b1adca4921d7ffa2203348073f0a11d090e Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46380 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/cpu/x86/Makefile.inc')
-rw-r--r--src/cpu/x86/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/x86/Makefile.inc b/src/cpu/x86/Makefile.inc
index f1d41bd1b4..1c621192f5 100644
--- a/src/cpu/x86/Makefile.inc
+++ b/src/cpu/x86/Makefile.inc
@@ -1,4 +1,5 @@
subdirs-y += pae
+subdirs-$(CONFIG_HAVE_SMI_HANDLER) += smm
all-$(CONFIG_ARCH_ALL_STAGES_X86_64) += 64bit/mode_switch.S