arch/x86: Avoid HAVE_SMI_HANDLER conditional with smm-class
Build of the entire smm-class is skipped if we have HAVE_SMI_HANDLER=n. Change-Id: I10b4300ddd18b1673c404b45fd9642488ab3186c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34125 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Lance Zhao <lance.zhao@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -27,7 +27,7 @@ romstage-y += raminit.c
|
||||
romstage-y += ../../../arch/x86/walkcbfs.S
|
||||
romstage-y += port_access.c
|
||||
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += udelay.c
|
||||
smm-y += udelay.c
|
||||
|
||||
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)
|
||||
|
||||
|
@@ -35,7 +35,7 @@ ramstage-y += ram_calc.c
|
||||
ramstage-y += northbridge.c
|
||||
ramstage-y += gma.c
|
||||
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += ../../../cpu/x86/lapic/apic_timer.c
|
||||
smm-y += ../../../cpu/x86/lapic/apic_timer.c
|
||||
|
||||
postcar-y += ram_calc.c
|
||||
|
||||
|
@@ -29,7 +29,7 @@ romstage-y += raminit.c
|
||||
romstage-y += early_init.c
|
||||
romstage-y += report_platform.c
|
||||
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
|
||||
smm-y += finalize.c
|
||||
|
||||
# We don't ship that, but booting without it is bound to fail
|
||||
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
||||
|
@@ -27,7 +27,7 @@ romstage-y += raminit.c
|
||||
romstage-y += early_init.c
|
||||
romstage-y += ../../../arch/x86/walkcbfs.S
|
||||
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
|
||||
smm-y += finalize.c
|
||||
|
||||
postcar-y += ram_calc.c
|
||||
|
||||
|
@@ -26,7 +26,7 @@ romstage-y += ram_calc.c
|
||||
|
||||
ramstage-y += common.c
|
||||
romstage-y += common.c
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += common.c
|
||||
smm-y += common.c
|
||||
|
||||
ifeq ($(CONFIG_USE_NATIVE_RAMINIT),y)
|
||||
romstage-y += early_dmi.c
|
||||
@@ -46,7 +46,7 @@ romstage-y += romstage.c
|
||||
romstage-y += early_init.c
|
||||
romstage-y += ../../../arch/x86/walkcbfs.S
|
||||
|
||||
smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
|
||||
smm-y += finalize.c
|
||||
|
||||
postcar-y += ram_calc.c
|
||||
|
||||
|
Reference in New Issue
Block a user