summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2020-09-28 18:31:10 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-09-30 10:14:23 +0000
commitd09064e432ca971738570811da00b0b75738ca07 (patch)
tree9a1388749e31511af46d5af4f7ba119aac29b76c /src
parent1a43de16bbe9958d8cb2cb24f299a69028ce7d61 (diff)
drivers/pc80/rtc: Fix linking verstage (and use `all` target)
`option.c` was already linked into verstage but needs `mc146818rtc.c` to work. While we are at it, also make use of the `all` target. Change-Id: I8f545e036962ed0716bcd3b9a5b5d06e18a367f6 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45802 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/pc80/rtc/Makefile.inc27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/drivers/pc80/rtc/Makefile.inc b/src/drivers/pc80/rtc/Makefile.inc
index c0dd1275d8..5f6055e872 100644
--- a/src/drivers/pc80/rtc/Makefile.inc
+++ b/src/drivers/pc80/rtc/Makefile.inc
@@ -1,29 +1,14 @@
ifeq ($(CONFIG_ARCH_X86),y)
-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
+all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c
-bootblock-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
-postcar-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
-romstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
-ramstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
-smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
+all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
+smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.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_USE_OPTION_TABLE) += option.c
+smm-$(CONFIG_USE_OPTION_TABLE) += option.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
+all-$(CONFIG_CMOS_POST) += post.c
ifeq ($(CONFIG_USE_OPTION_TABLE),y)
cbfs-files-$(CONFIG_HAVE_CMOS_DEFAULT) += cmos.default