From 368ccdf3f8be716fb603337ccebfb21902469f35 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 17 Nov 2021 15:50:21 +0100 Subject: [PATCH 1/2] sys/vfs: model Kconfig --- cpu/native/Kconfig | 1 + cpu/native/vfs/Kconfig | 11 +++++++++++ sys/Kconfig | 1 + sys/vfs/Kconfig | 11 +++++++++++ 4 files changed, 24 insertions(+) create mode 100644 cpu/native/vfs/Kconfig create mode 100644 sys/vfs/Kconfig diff --git a/cpu/native/Kconfig b/cpu/native/Kconfig index e45e0cbaf0..4e9365a899 100644 --- a/cpu/native/Kconfig +++ b/cpu/native/Kconfig @@ -90,3 +90,4 @@ rsource "backtrace/Kconfig" endmenu # Native modules rsource "periph/Kconfig" +rsource "vfs/Kconfig" diff --git a/cpu/native/vfs/Kconfig b/cpu/native/vfs/Kconfig new file mode 100644 index 0000000000..d493aaa2a5 --- /dev/null +++ b/cpu/native/vfs/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 MODULE_NATIVE_VFS + bool + depends on HAS_ARCH_NATIVE + default y if MODULE_VFS diff --git a/sys/Kconfig b/sys/Kconfig index f6d5e3979c..8e156144ee 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -78,6 +78,7 @@ rsource "timex/Kconfig" rsource "tsrb/Kconfig" rsource "uri_parser/Kconfig" rsource "usb/Kconfig" +rsource "vfs/Kconfig" rsource "xtimer/Kconfig" rsource "ztimer/Kconfig" diff --git a/sys/vfs/Kconfig b/sys/vfs/Kconfig new file mode 100644 index 0000000000..d22284d828 --- /dev/null +++ b/sys/vfs/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 MODULE_VFS + bool "Virtual File System (VFS)" + depends on TEST_KCONFIG + select MODULE_POSIX_HEADERS From fe2d239a0cc9345759254741c3b23c0d3aa32bb8 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Mon, 29 Nov 2021 10:33:56 +0100 Subject: [PATCH 2/2] tests/vfs_plus_stdio: add Kconfig configuration --- tests/vfs_plus_stdio/app.config.test | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/vfs_plus_stdio/app.config.test diff --git a/tests/vfs_plus_stdio/app.config.test b/tests/vfs_plus_stdio/app.config.test new file mode 100644 index 0000000000..5a93753419 --- /dev/null +++ b/tests/vfs_plus_stdio/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_FMT=y +CONFIG_MODULE_VFS=y