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>
This commit is contained in:
parent
3c79777cd6
commit
6419cd3335
|
@ -12,4 +12,3 @@ subdirs-y += ../../../x86/lapic
|
|||
subdirs-y += ../../../x86/cache
|
||||
subdirs-y += ../../../x86/mtrr
|
||||
subdirs-y += ../../../x86/pae
|
||||
subdirs-y += ../../../x86/smm
|
||||
|
|
|
@ -15,4 +15,3 @@ subdirs-y += ../../../x86/lapic
|
|||
subdirs-y += ../../../x86/cache
|
||||
subdirs-y += ../../../x86/mtrr
|
||||
subdirs-y += ../../../x86/pae
|
||||
subdirs-y += ../../../x86/smm
|
||||
|
|
|
@ -12,4 +12,3 @@ subdirs-y += ../../../x86/lapic
|
|||
subdirs-y += ../../../x86/cache
|
||||
subdirs-y += ../../../x86/mtrr
|
||||
subdirs-y += ../../../x86/pae
|
||||
subdirs-y += ../../../x86/smm
|
||||
|
|
|
@ -15,4 +15,3 @@ subdirs-y += ../../../x86/lapic
|
|||
subdirs-y += ../../../x86/cache
|
||||
subdirs-y += ../../../x86/mtrr
|
||||
subdirs-y += ../../../x86/pae
|
||||
subdirs-y += ../../../x86/smm
|
||||
|
|
|
@ -13,4 +13,3 @@ subdirs-y += ../../../x86/lapic
|
|||
subdirs-y += ../../../x86/cache
|
||||
subdirs-y += ../../../x86/mtrr
|
||||
subdirs-y += ../../../x86/pae
|
||||
subdirs-y += ../../../x86/smm
|
||||
|
|
|
@ -19,7 +19,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../turbo
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ subdirs-y += ../../x86/lapic
|
|||
subdirs-y += ../../x86/tsc
|
||||
subdirs-y += ../../intel/turbo
|
||||
subdirs-y += ../../intel/microcode
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../smm/gen1
|
||||
|
||||
ramstage-y += acpi.c
|
||||
|
|
|
@ -6,7 +6,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../turbo
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
|
||||
bootblock-y += ../car/p3/cache_as_ram.S
|
||||
|
|
|
@ -3,7 +3,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
subdirs-y += ../speedstep
|
||||
|
|
|
@ -3,7 +3,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
subdirs-y += ../speedstep
|
||||
|
|
|
@ -3,7 +3,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
subdirs-y += ../speedstep
|
||||
|
|
|
@ -8,7 +8,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
subdirs-y += ../speedstep
|
||||
|
|
|
@ -4,7 +4,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
subdirs-y += ../speedstep
|
||||
|
|
|
@ -3,7 +3,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ subdirs-y += ../../x86/tsc
|
|||
subdirs-y += ../../x86/mtrr
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
subdirs-y += ../microcode
|
||||
subdirs-y += ../hyperthreading
|
||||
subdirs-y += ../speedstep
|
||||
|
|
|
@ -9,5 +9,4 @@ ramstage-y += qemu.c
|
|||
|
||||
subdirs-y += ../x86/mtrr
|
||||
subdirs-y += ../x86/lapic
|
||||
subdirs-y += ../x86/smm
|
||||
subdirs-y += ../x86/tsc
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
subdirs-y += pae
|
||||
subdirs-$(CONFIG_HAVE_SMI_HANDLER) += smm
|
||||
|
||||
all-$(CONFIG_ARCH_ALL_STAGES_X86_64) += 64bit/mode_switch.S
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_SMM),y)
|
||||
|
||||
subdirs-y += ../../../../../../cpu/x86/smm
|
||||
|
||||
romstage-y += smm_helper.c
|
||||
postcar-y += smm_helper.c
|
||||
ramstage-y += finalize.c
|
||||
|
|
|
@ -4,7 +4,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
|
||||
# all (bootblock, verstage, romstage, postcar, ramstage)
|
||||
|
|
|
@ -5,7 +5,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../cpu/x86/cache
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ ifeq ($(CONFIG_SOC_INTEL_BAYTRAIL),y)
|
|||
subdirs-y += romstage
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../cpu/intel/microcode
|
||||
subdirs-y += ../../../cpu/intel/turbo
|
||||
|
|
|
@ -3,7 +3,6 @@ ifeq ($(CONFIG_SOC_INTEL_BRASWELL),y)
|
|||
subdirs-y += romstage
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../cpu/intel/microcode
|
||||
subdirs-y += ../../../cpu/intel/turbo
|
||||
|
|
|
@ -5,7 +5,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../cpu/intel/common
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../cpu/x86/cache
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
|
||||
# all (bootblock, verstage, romstage, postcar, ramstage)
|
||||
|
|
|
@ -5,7 +5,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
|
||||
# all (bootblock, verstage, romstage, postcar, ramstage)
|
||||
|
|
|
@ -5,7 +5,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
|
||||
# all (bootblock, verstage, romstage, postcar, ramstage)
|
||||
|
|
|
@ -7,7 +7,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
|
||||
bootblock-y += bootblock/bootblock.c
|
||||
|
|
|
@ -5,7 +5,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../cpu/x86/smm
|
||||
subdirs-y += ../../../cpu/x86/tsc
|
||||
|
||||
# all (bootblock, verstage, romstage, postcar, ramstage)
|
||||
|
|
|
@ -5,7 +5,6 @@ ifeq ($(CONFIG_SOC_INTEL_COOPERLAKE_SP),y)
|
|||
subdirs-y += ../../../../cpu/intel/turbo
|
||||
subdirs-y += ../../../../cpu/x86/lapic
|
||||
subdirs-y += ../../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../../cpu/x86/smm
|
||||
subdirs-y += ../../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../../cpu/intel/microcode
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ subdirs-y += ../../../../cpu/x86/lapic
|
|||
subdirs-y += ../../../../cpu/x86/mtrr
|
||||
subdirs-y += ../../../../cpu/x86/tsc
|
||||
subdirs-y += ../../../../cpu/x86/cache
|
||||
subdirs-$(CONFIG_HAVE_SMI_HANDLER) += ../../../../cpu/x86/smm
|
||||
|
||||
postcar-y += soc_util.c
|
||||
|
||||
|
|
Loading…
Reference in New Issue