summaryrefslogtreecommitdiff
path: root/src/cpu/x86/smm/Makefile.inc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-10-28 16:48:36 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-02-28 13:33:59 +0000
commitb4ba289fa5be16f3d94a0da30fc9b07a99a61a91 (patch)
tree4f3856c1097657a8935ea0ee1407377f1d99656f /src/cpu/x86/smm/Makefile.inc
parent6179f7b6182755a74ca7e92e54b4f8e1f0462d96 (diff)
cpu/x86/smm: Support PARALLEL_MP with SMM_ASEG
This will allow to migrate all platform to the parallel_mp init code and drop the old lapic_init code. Change-Id: If499e21a8dc7fca18bd5990f833170d0fc21e10c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58700 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/x86/smm/Makefile.inc')
-rw-r--r--src/cpu/x86/smm/Makefile.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cpu/x86/smm/Makefile.inc b/src/cpu/x86/smm/Makefile.inc
index 36aa113443..cd920daf1a 100644
--- a/src/cpu/x86/smm/Makefile.inc
+++ b/src/cpu/x86/smm/Makefile.inc
@@ -35,6 +35,10 @@ ramstage-y += tseg_region.c
romstage-y += tseg_region.c
postcar-y += tseg_region.c
+endif
+
+ifeq ($(CONFIG_PARALLEL_MP),y)
+
smmstub-y += smm_stub.S
smm-y += smm_module_handler.c
@@ -71,7 +75,9 @@ endif
$(obj)/smm/smm: $(obj)/smm/smm.elf.rmod
$(OBJCOPY_smm) -O binary $< $@
-else # CONFIG_SMM_TSEG
+endif
+
+ifeq ($(CONFIG_SMM_LEGACY_ASEG),y)
smm-y += smm.ld
@@ -83,4 +89,4 @@ $(obj)/smm/smm: $(obj)/smm/smm.o $(call src-to-obj,smm,$(src)/cpu/x86/smm/smm.ld
smm-y += smmhandler.S
smm-y += smihandler.c
-endif # CONFIG_SMM_TSEG
+endif # CONFIG_SMM_LEGACY_ASEG