diff options
author | Martin Roth <martin@coreboot.org> | 2020-06-06 09:45:20 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2020-06-15 22:47:40 +0000 |
commit | cbf6e6bdba556fac90dabd361764e4efc044241f (patch) | |
tree | 30a76dc155ec1332568b480602638a8e8c132a1d /src/drivers/pc80 | |
parent | 6b303d54aa4e0e19a9a773ff6f4cf77ac4528d6a (diff) |
Makefile.inc: Remove all-y with CONFIG_ARCH_xx guards
The assumption up to this point was that if the system had an x86
processor, verstage would be running on the x86 processor. With running
verstage on the PSP, that assumption no longer holds true, so exclude
pieces of code that cause problems for verstage on the PSP.
As a generalization, remove all-y for CONFIG_ARCH_xx guarded
makefiles.
BUG=b:158124527
TEST=Build and boot on Trembyle
Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: Ia7dcfed699ee1c0cd5a5250431c5f05bf6d8b9c7
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42221
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/drivers/pc80')
-rw-r--r-- | src/drivers/pc80/rtc/Makefile.inc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/drivers/pc80/rtc/Makefile.inc b/src/drivers/pc80/rtc/Makefile.inc index 4938d78ad2..c0dd1275d8 100644 --- a/src/drivers/pc80/rtc/Makefile.inc +++ b/src/drivers/pc80/rtc/Makefile.inc @@ -1,6 +1,10 @@ ifeq ($(CONFIG_ARCH_X86),y) -all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c +bootblock-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c +verstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c +postcar-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c +romstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c +ramstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c bootblock-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c postcar-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c @@ -8,10 +12,18 @@ romstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c ramstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c -all-$(CONFIG_USE_OPTION_TABLE) += option.c +bootblock-$(CONFIG_USE_OPTION_TABLE) += option.c +verstage-$(CONFIG_USE_OPTION_TABLE) += option.c +postcar-$(CONFIG_USE_OPTION_TABLE) += option.c +romstage-$(CONFIG_USE_OPTION_TABLE) += option.c +ramstage-$(CONFIG_USE_OPTION_TABLE) += option.c smm-$(CONFIG_USE_OPTION_TABLE) += option.c -all-$(CONFIG_CMOS_POST) += post.c +bootblock-$(CONFIG_CMOS_POST) += post.c +verstage-$(CONFIG_CMOS_POST) += post.c +postcar-$(CONFIG_CMOS_POST) += post.c +romstage-$(CONFIG_CMOS_POST) += post.c +ramstage-$(CONFIG_CMOS_POST) += post.c ifeq ($(CONFIG_USE_OPTION_TABLE),y) cbfs-files-$(CONFIG_HAVE_CMOS_DEFAULT) += cmos.default |