1
0
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:
Francisco 2022-04-25 08:46:00 +02:00 committed by GitHub
commit c56e28a7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 42 additions and 3 deletions

View File

@ -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
View 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

View File

@ -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
View 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

View File

@ -0,0 +1,3 @@
CONFIG_MODULE_CPP11-COMPAT=y
CONFIG_MODULE_TIMEX=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,3 @@
CONFIG_MODULE_CPP11-COMPAT=y
CONFIG_MODULE_LIBC_GETTIMEOFDAY=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,3 @@
CONFIG_MODULE_CPP11-COMPAT=y
CONFIG_MODULE_TIMEX=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,2 @@
CONFIG_MODULE_CPP=y
CONFIG_MODULE_EMBUNIT=y