From cbcda7c2bfad01c2fed2925bef9d9040a102260f Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 23 Apr 2022 19:53:29 +0200 Subject: [PATCH 1/5] sys: make MODULE_LIBC_GETTIMEOFDAY prompt visible --- sys/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/Kconfig b/sys/Kconfig index ef749da2b6..e98bf85838 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -52,11 +52,9 @@ config MODULE_PICOLIBC endchoice config MODULE_LIBC_GETTIMEOFDAY - bool + bool "Support for gettimeofday()" select MODULE_XTIMER select MODULE_ZTIMER64_XTIMER_COMPAT if MODULE_ZTIMER_XTIMER_COMPAT - help - Support for gettimeofday() rsource "Kconfig.newlib" rsource "Kconfig.picolibc" From c38eb27fe06d12aaa6690365e1f0bceb5ab01f78 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sun, 24 Apr 2022 15:14:26 +0200 Subject: [PATCH 2/5] sys/posix: add Kconfig file for pthread module --- sys/posix/Kconfig | 1 + sys/posix/pthread/Kconfig | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 sys/posix/pthread/Kconfig diff --git a/sys/posix/Kconfig b/sys/posix/Kconfig index d4a984d7eb..6d4f651821 100644 --- a/sys/posix/Kconfig +++ b/sys/posix/Kconfig @@ -12,6 +12,7 @@ config MODULE_POSIX_HEADERS bool rsource "inet/Kconfig" +rsource "pthread/Kconfig" rsource "sleep/Kconfig" endmenu # Posix diff --git a/sys/posix/pthread/Kconfig b/sys/posix/pthread/Kconfig new file mode 100644 index 0000000000..38f384d15f --- /dev/null +++ b/sys/posix/pthread/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2022 Inria +# +# 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 MODULE_PTHREAD + bool "Pthread Support" + depends on TEST_KCONFIG From 1db89df391ab35083109247e2927623b81940b66 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 23 Apr 2022 15:55:48 +0200 Subject: [PATCH 3/5] sys: add Kconfig support for cpp11-compat module --- sys/Kconfig | 1 + sys/cpp11-compat/Kconfig | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 sys/cpp11-compat/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index e98bf85838..37943f299b 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -21,6 +21,7 @@ rsource "chunked_ringbuffer/Kconfig" rsource "color/Kconfig" rsource "crypto/Kconfig" rsource "congure/Kconfig" +rsource "cpp11-compat/Kconfig" rsource "cpp_new_delete/Kconfig" rsource "cxx_ctor_guards/Kconfig" rsource "div/Kconfig" diff --git a/sys/cpp11-compat/Kconfig b/sys/cpp11-compat/Kconfig new file mode 100644 index 0000000000..d1a9e55309 --- /dev/null +++ b/sys/cpp11-compat/Kconfig @@ -0,0 +1,18 @@ +# Copyright (C) 2022 Inria +# +# 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 MODULE_CPP11-COMPAT + bool "C++11 wrapper for RIOT" + depends on TEST_KCONFIG + depends on HAS_CPP + depends on HAS_LIBSTDCPP + + select MODULE_CPP + select MODULE_CPP_NEW_DELETE + select MODULE_XTIMER + select MODULE_TIMEX + select MODULE_ZTIMER64_XTIMER_COMPAT if MODULE_ZTIMER_XTIMER_COMPAT From 925cf7f969fc0b2a4b8c71f7635e44f265695294 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 23 Apr 2022 16:47:27 +0200 Subject: [PATCH 4/5] tests/cpp11_*: add Kconfig support --- tests/cpp11_condition_variable/app.config.test | 3 +++ tests/cpp11_mutex/app.config.test | 3 +++ tests/cpp11_thread/app.config.test | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 tests/cpp11_condition_variable/app.config.test create mode 100644 tests/cpp11_mutex/app.config.test create mode 100644 tests/cpp11_thread/app.config.test diff --git a/tests/cpp11_condition_variable/app.config.test b/tests/cpp11_condition_variable/app.config.test new file mode 100644 index 0000000000..709fc283e5 --- /dev/null +++ b/tests/cpp11_condition_variable/app.config.test @@ -0,0 +1,3 @@ +CONFIG_MODULE_CPP11-COMPAT=y +CONFIG_MODULE_TIMEX=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/cpp11_mutex/app.config.test b/tests/cpp11_mutex/app.config.test new file mode 100644 index 0000000000..1fd4781207 --- /dev/null +++ b/tests/cpp11_mutex/app.config.test @@ -0,0 +1,3 @@ +CONFIG_MODULE_CPP11-COMPAT=y +CONFIG_MODULE_LIBC_GETTIMEOFDAY=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/cpp11_thread/app.config.test b/tests/cpp11_thread/app.config.test new file mode 100644 index 0000000000..709fc283e5 --- /dev/null +++ b/tests/cpp11_thread/app.config.test @@ -0,0 +1,3 @@ +CONFIG_MODULE_CPP11-COMPAT=y +CONFIG_MODULE_TIMEX=y +CONFIG_MODULE_XTIMER=y From 684cabff719c587d88e22ce7e050f08b80204f85 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 23 Apr 2022 16:49:59 +0200 Subject: [PATCH 5/5] tests/cpp_ctors: add Kconfig support --- tests/cpp_ctors/app.config.test | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/cpp_ctors/app.config.test diff --git a/tests/cpp_ctors/app.config.test b/tests/cpp_ctors/app.config.test new file mode 100644 index 0000000000..d50f5b2c36 --- /dev/null +++ b/tests/cpp_ctors/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_CPP=y +CONFIG_MODULE_EMBUNIT=y