cpu/x86/tsc: Deduplicate Makefile logic
The code under `cpu/x86/tsc` is only compiled in when its `Makefile.inc` is included from platform (CPU/SoC) code and the `UDELAY_TSC` Kconfig option is enabled. Include `cpu/x86/tsc/Makefile.inc` once from `cpu/x86/Makefile.inc` and drop the now-redundant inclusions from platform code. Also, deduplicate the `UDELAY_TSC` guards. Change-Id: I41e96026f37f19de954fd5985b92a08cb97876c1 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57456 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
subdirs-y += pae
|
||||
subdirs-$(CONFIG_HAVE_SMI_HANDLER) += smm
|
||||
subdirs-$(CONFIG_UDELAY_TSC) += tsc
|
||||
|
||||
all-$(CONFIG_ARCH_ALL_STAGES_X86_64) += 64bit/mode_switch.S
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
bootblock-$(CONFIG_UDELAY_TSC) += delay_tsc.c
|
||||
ramstage-$(CONFIG_UDELAY_TSC) += delay_tsc.c
|
||||
romstage-$(CONFIG_UDELAY_TSC) += delay_tsc.c
|
||||
verstage_x86-$(CONFIG_UDELAY_TSC) += delay_tsc.c
|
||||
postcar-$(CONFIG_UDELAY_TSC) += delay_tsc.c
|
||||
smm-$(CONFIG_UDELAY_TSC) += delay_tsc.c
|
||||
bootblock-y += delay_tsc.c
|
||||
ramstage-y += delay_tsc.c
|
||||
romstage-y += delay_tsc.c
|
||||
verstage_x86-y += delay_tsc.c
|
||||
postcar-y += delay_tsc.c
|
||||
smm-y += delay_tsc.c
|
||||
|
Reference in New Issue
Block a user