From b8eb12d43b57d7764ea99111defd3dcdbbbe2bbc Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Thu, 11 Feb 2021 16:13:40 +0100 Subject: [PATCH] sys/posix_sleep: add module to Kconfig --- sys/Kconfig | 1 + sys/posix/Kconfig | 16 ++++++++++++++++ sys/posix/sleep/Kconfig | 12 ++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 sys/posix/Kconfig create mode 100644 sys/posix/sleep/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index 3a6991737d..a9d0acc0da 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -27,6 +27,7 @@ rsource "net/Kconfig" rsource "Kconfig.newlib" rsource "Kconfig.stdio" rsource "od/Kconfig" +rsource "posix/Kconfig" rsource "phydat/Kconfig" rsource "pm_layered/Kconfig" rsource "ps/Kconfig" diff --git a/sys/posix/Kconfig b/sys/posix/Kconfig new file mode 100644 index 0000000000..d4a5ba363d --- /dev/null +++ b/sys/posix/Kconfig @@ -0,0 +1,16 @@ +# 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. +# + +menu "Posix" + depends on TEST_KCONFIG + +config MODULE_POSIX_HEADERS + bool + +rsource "sleep/Kconfig" + +endmenu # Posix diff --git a/sys/posix/sleep/Kconfig b/sys/posix/sleep/Kconfig new file mode 100644 index 0000000000..d69349b1a2 --- /dev/null +++ b/sys/posix/sleep/Kconfig @@ -0,0 +1,12 @@ +# 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 MODULE_POSIX_SLEEP + bool "Posix Sleep" + depends on MODULE_ZTIMER_MSEC + depends on MODULE_ZTIMER_USEC + select MODULE_POSIX_HEADERS