From 8b45ed87be85d81702861c80cb85a3e35d0d3404 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 18 Jan 2022 13:45:21 +0100 Subject: [PATCH] drivers/rtt_rtc: select rtc_utils --- drivers/rtt_rtc/Kconfig | 1 + drivers/rtt_rtc/Makefile.dep | 2 ++ makefiles/features_modules.inc.mk | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/rtt_rtc/Kconfig b/drivers/rtt_rtc/Kconfig index 68cbf8c42c..93c0227600 100644 --- a/drivers/rtt_rtc/Kconfig +++ b/drivers/rtt_rtc/Kconfig @@ -10,5 +10,6 @@ config MODULE_RTT_RTC depends on HAS_PERIPH_RTT depends on TEST_KCONFIG select MODULE_PERIPH_RTT + select MODULE_RTC_UTILS help Basic RTC implementation based on a RTT. diff --git a/drivers/rtt_rtc/Makefile.dep b/drivers/rtt_rtc/Makefile.dep index f8141a0a55..ff0e6305f5 100644 --- a/drivers/rtt_rtc/Makefile.dep +++ b/drivers/rtt_rtc/Makefile.dep @@ -2,3 +2,5 @@ ifeq (,$(UNIT_TESTS)) FEATURES_REQUIRED += periph_rtt endif + +USEMODULE += rtc_utils diff --git a/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index 9c3785c3f3..3fb6eccf6f 100644 --- a/makefiles/features_modules.inc.mk +++ b/makefiles/features_modules.inc.mk @@ -52,7 +52,7 @@ ifneq (,$(filter periph_%, $(USEMODULE))) endif # include rtc_utils if periph_rtc is used -ifneq (,$(filter periph_rtc, $(USEMODULE))) +ifneq (,$(filter periph_rtc,$(USEMODULE))) USEMODULE += rtc_utils endif