summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/rtc/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/pc80/rtc/Makefile.mk')
-rw-r--r--src/drivers/pc80/rtc/Makefile.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/drivers/pc80/rtc/Makefile.mk b/src/drivers/pc80/rtc/Makefile.mk
new file mode 100644
index 0000000000..9d248780b1
--- /dev/null
+++ b/src/drivers/pc80/rtc/Makefile.mk
@@ -0,0 +1,21 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+ifeq ($(CONFIG_ARCH_X86),y)
+
+all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc_boot.c
+
+all-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
+smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
+
+all-$(CONFIG_USE_OPTION_TABLE) += option.c
+smm-$(CONFIG_USE_OPTION_TABLE) += option.c
+
+all-$(CONFIG_CMOS_POST) += post.c
+
+ifeq ($(CONFIG_USE_OPTION_TABLE),y)
+cbfs-files-$(CONFIG_HAVE_CMOS_DEFAULT) += cmos.default
+cmos.default-file = $(CONFIG_CMOS_DEFAULT_FILE):nvramtool
+cmos.default-type = cmos_default
+endif
+
+endif