[riot-notifications] [RIOT-OS/RIOT] .murdock: Add nucleo boards to kconfig test (#16845)

Leandro Lanzieri notifications at github.com
Thu Sep 16 10:10:39 CEST 2021


And the RTC mem module is missing:
```diff
diff --git a/drivers/periph_common/Kconfig.rtc b/drivers/periph_common/Kconfig.rtc
index 45bd98fe3b..c45ebb4752 100644
--- a/drivers/periph_common/Kconfig.rtc
+++ b/drivers/periph_common/Kconfig.rtc
@@ -10,10 +10,29 @@ config MODULE_PERIPH_RTC
     depends on HAS_PERIPH_RTC
     select MODULE_PERIPH_COMMON
 
+if MODULE_PERIPH_RTC
+
 config MODULE_PERIPH_INIT_RTC
     bool "Auto initialize RTC peripheral"
     default y if MODULE_PERIPH_INIT
-    depends on MODULE_PERIPH_RTC
+
+config MODULE_PERIPH_RTC_MEM
+    bool "Low-Power RTC Memory"
+    depends on HAS_PERIPH_RTC_MEM
+    help
+        Provides an interface to access low-power memory present on some RTCs.
+        This memory is retained even when the rest of the system is powered off.
+
+# TODO: this module is actually just an artifact from the way periph_init_%
+# modules are handled in Makefile. We need to define it to keep the list the
+# same for now. We should be able to remove it later on.
+
+config MODULE_PERIPH_INIT_RTC_MEM
+    bool
+    default y if MODULE_PERIPH_INIT
+    depends on MODULE_PERIPH_RTC_MEM
+
+endif # MODULE_PERIPH_RTC
 
 # Include CPU specific configurations
 osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.rtc"
diff --git a/tests/periph_rtc/Kconfig b/tests/periph_rtc/Kconfig
new file mode 100644
index 0000000000..6384225e04
--- /dev/null
+++ b/tests/periph_rtc/Kconfig
@@ -0,0 +1,11 @@
+# Copyright (c) 2021 HAW Hamburg
+#
+# This file is subject to the terms and conditions of the GNU Lesser
+# General Public License v2.1. See the file LICENSE in the top level
+# directory for more details.
+#
+
+config APPLICATION
+    bool
+    default y
+    imply MODULE_PERIPH_RTC_MEM
diff --git a/tests/periph_rtc/Makefile b/tests/periph_rtc/Makefile
index c717733c39..eef8bb11ac 100644
--- a/tests/periph_rtc/Makefile
+++ b/tests/periph_rtc/Makefile
@@ -8,4 +8,7 @@ DISABLE_MODULE += periph_init_rtc
 
 USEMODULE += xtimer
 
+# avoid running Kconfig by default
+SHOULD_RUN_KCONFIG ?=
+
 include $(RIOTBASE)/Makefile.include
diff --git a/tests/periph_rtt/Kconfig b/tests/periph_rtt/Kconfig
index a2d35dbf35..adca5a3148 100644
--- a/tests/periph_rtt/Kconfig
+++ b/tests/periph_rtt/Kconfig
@@ -9,4 +9,6 @@ config APPLICATION
     bool
     default y
     imply MODULE_PERIPH_RTT_SET_COUNTER
+    imply MODULE_PERIPH_RTC
+    imply MODULE_PERIPH_RTC_MEM
     depends on TEST_KCONFIG
diff --git a/tests/periph_rtt/Makefile b/tests/periph_rtt/Makefile
index 75b7c29ac3..288072512b 100644
--- a/tests/periph_rtt/Makefile
+++ b/tests/periph_rtt/Makefile
@@ -7,6 +7,9 @@ FEATURES_OPTIONAL += periph_rtc_mem
 
 DISABLE_MODULE += periph_init_rtt
 
+# avoid running Kconfig by default
+SHOULD_RUN_KCONFIG ?=
+
 include $(RIOTBASE)/Makefile.include
 
 # Put board specific dependencies here
```

Still, the binary is not equal at least for the nucleo-l073rz, could it be something with the clocks as well?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16845#issuecomment-920685075
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210916/2aa1af4a/attachment.htm>


More information about the notifications mailing list