diff --git a/drivers/rtt_rtc/Kconfig b/drivers/rtt_rtc/Kconfig index 68cbf8c42c42..93c0227600c0 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/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index 9c3785c3f3a9..3fb6eccf6f52 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 diff --git a/sys/Makefile.dep b/sys/Makefile.dep index 3cf58b0b7c03..c395420f8556 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -853,4 +853,8 @@ ifneq (,$(filter fido2_ctap,$(USEMODULE))) USEMODULE += fido2 endif +ifneq (,$(filter rtt_rtc,$(USEMODULE))) + USEMODULE += rtc_utils +endif + include $(RIOTBASE)/sys/test_utils/Makefile.dep