mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #17992 from aabadie/pr/sys/cpp_kconfig
sys/cpp11-compat: add kconfig support and add Kconfig for cpp11 test applications
This commit is contained in:
commit
c56e28a7e6
@ -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"
|
||||
@ -52,11 +53,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"
|
||||
|
18
sys/cpp11-compat/Kconfig
Normal file
18
sys/cpp11-compat/Kconfig
Normal file
@ -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
|
@ -12,6 +12,7 @@ config MODULE_POSIX_HEADERS
|
||||
bool
|
||||
|
||||
rsource "inet/Kconfig"
|
||||
rsource "pthread/Kconfig"
|
||||
rsource "sleep/Kconfig"
|
||||
|
||||
endmenu # Posix
|
||||
|
10
sys/posix/pthread/Kconfig
Normal file
10
sys/posix/pthread/Kconfig
Normal file
@ -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
|
3
tests/cpp11_condition_variable/app.config.test
Normal file
3
tests/cpp11_condition_variable/app.config.test
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_MODULE_CPP11-COMPAT=y
|
||||
CONFIG_MODULE_TIMEX=y
|
||||
CONFIG_MODULE_XTIMER=y
|
3
tests/cpp11_mutex/app.config.test
Normal file
3
tests/cpp11_mutex/app.config.test
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_MODULE_CPP11-COMPAT=y
|
||||
CONFIG_MODULE_LIBC_GETTIMEOFDAY=y
|
||||
CONFIG_MODULE_XTIMER=y
|
3
tests/cpp11_thread/app.config.test
Normal file
3
tests/cpp11_thread/app.config.test
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_MODULE_CPP11-COMPAT=y
|
||||
CONFIG_MODULE_TIMEX=y
|
||||
CONFIG_MODULE_XTIMER=y
|
2
tests/cpp_ctors/app.config.test
Normal file
2
tests/cpp_ctors/app.config.test
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_MODULE_CPP=y
|
||||
CONFIG_MODULE_EMBUNIT=y
|
Loading…
Reference in New Issue
Block a user