From: Michalis Pappas Date: Mon, 14 Apr 2025 10:03:20 +0000 (+0200) Subject: lib: Add Kconfig option to signify support of VFS X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=56da4c412b6d63469477230cc02dd3dfb98a2ba1;p=unikraft%2Funikraft.git lib: Add Kconfig option to signify support of VFS Add HAVE_VFS option in Kconfig for features that depend on VFS support, and remove redundant defaults. Update libvfscore to select HAVE_VFS. Signed-off-by: Michalis Pappas Approved-by: Andrei Tatar Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar GitHub-Closes: #1627 --- diff --git a/lib/Config.uk b/lib/Config.uk index 29843300f..794721f4d 100644 --- a/lib/Config.uk +++ b/lib/Config.uk @@ -7,31 +7,27 @@ config HAVE_BOOTENTRY bool - default n config HAVE_LIBC bool - default n config HAVE_TIME bool - default n config HAVE_SCHED bool - default n config HAVE_NW_STACK bool - default n config HAVE_SYSCALL bool - default n + +config HAVE_VFS + bool config HAVE_X86PKU bool - default n ## # Compatibility entries for legacy libraries diff --git a/lib/vfscore/Config.uk b/lib/vfscore/Config.uk index b721f7e63..3f518b051 100644 --- a/lib/vfscore/Config.uk +++ b/lib/vfscore/Config.uk @@ -12,6 +12,7 @@ menuconfig LIBVFSCORE select LIBPOSIX_POLL select LIBPOSIX_PIPE select LIBPOSIX_TTY + select HAVE_VFS if LIBVFSCORE config LIBVFSCORE_NONLARGEFILE