2018-05-29 09:01:25 +00:00
|
|
|
menu "Virtual file system"
|
|
|
|
|
2020-03-20 12:35:00 +00:00
|
|
|
config VFS_SUPPORT_IO
|
|
|
|
bool "Provide basic I/O functions"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If enabled, the following functions are provided by the VFS component.
|
|
|
|
|
|
|
|
open, close, read, write, pread, pwrite, lseek, fstat, fsync, ioctl, fcntl
|
|
|
|
|
|
|
|
Filesystem drivers can then be registered to handle these functions
|
|
|
|
for specific paths.
|
|
|
|
|
|
|
|
Disabling this option can save memory when the support for these functions
|
|
|
|
is not required.
|
|
|
|
|
2021-08-13 07:29:28 +00:00
|
|
|
Note that the following functions can still be used with socket file descriptors
|
|
|
|
when this option is disabled:
|
|
|
|
|
|
|
|
close, read, write, ioctl, fcntl.
|
|
|
|
|
2020-03-20 12:35:00 +00:00
|
|
|
config VFS_SUPPORT_DIR
|
|
|
|
bool "Provide directory related functions"
|
|
|
|
default y
|
|
|
|
# If some filesystem is used, adding I/O support is probably needed and
|
|
|
|
# is not a big overhead, compared to code size of the filesystem,
|
|
|
|
# so make this depend on IO.
|
|
|
|
depends on VFS_SUPPORT_IO
|
|
|
|
help
|
|
|
|
If enabled, the following functions are provided by the VFS component.
|
|
|
|
|
|
|
|
stat, link, unlink, rename, utime, access, truncate, rmdir, mkdir,
|
|
|
|
opendir, closedir, readdir, readdir_r, seekdir, telldir, rewinddir
|
|
|
|
|
|
|
|
Filesystem drivers can then be registered to handle these functions
|
|
|
|
for specific paths.
|
|
|
|
|
|
|
|
Disabling this option can save memory when the support for these functions
|
|
|
|
is not required.
|
|
|
|
|
|
|
|
config VFS_SUPPORT_SELECT
|
|
|
|
bool "Provide select function"
|
|
|
|
default y
|
|
|
|
# Dependency on !LWIP_USE_ONLY_LWIP_SELECT is for compatibility
|
|
|
|
depends on VFS_SUPPORT_IO && !LWIP_USE_ONLY_LWIP_SELECT
|
|
|
|
help
|
|
|
|
If enabled, select function is provided by the VFS component, and can be used
|
|
|
|
on peripheral file descriptors (such as UART) and sockets at the same time.
|
|
|
|
|
|
|
|
If disabled, the default select implementation will be provided by LWIP for
|
|
|
|
sockets only.
|
|
|
|
|
|
|
|
Disabling this option can reduce code size if support for "select" on UART file
|
|
|
|
descriptors is not required.
|
|
|
|
|
2019-07-02 15:14:58 +00:00
|
|
|
config VFS_SUPPRESS_SELECT_DEBUG_OUTPUT
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "Suppress select() related debug outputs"
|
2020-03-20 12:35:00 +00:00
|
|
|
depends on VFS_SUPPORT_SELECT
|
2019-01-25 16:10:53 +00:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Select() related functions might produce an unconveniently lot of
|
|
|
|
debug outputs when one sets the default log level to DEBUG or higher.
|
|
|
|
It is possible to suppress these debug outputs by enabling this
|
|
|
|
option.
|
2018-05-29 09:01:25 +00:00
|
|
|
|
2019-07-02 15:14:58 +00:00
|
|
|
config VFS_SUPPORT_TERMIOS
|
2020-03-20 12:35:00 +00:00
|
|
|
bool "Provide termios.h functions"
|
2019-01-25 16:10:53 +00:00
|
|
|
default y
|
2020-03-20 12:35:00 +00:00
|
|
|
# Very likely, only makes sense for UART VFS driver, which itself depends on VFS_SUPPORT_IO
|
|
|
|
depends on VFS_SUPPORT_IO
|
2019-01-25 16:10:53 +00:00
|
|
|
help
|
|
|
|
Disabling this option can save memory when the support for termios.h is not required.
|
2018-08-14 11:39:30 +00:00
|
|
|
|
2023-03-14 16:29:11 +00:00
|
|
|
config VFS_MAX_COUNT
|
|
|
|
int "Maximum Number of Virtual Filesystems"
|
|
|
|
default 8
|
|
|
|
range 1 20
|
|
|
|
depends on VFS_SUPPORT_IO
|
|
|
|
help
|
|
|
|
Define maximum number of virtual filesystems that can be registered.
|
|
|
|
|
2020-03-30 09:50:08 +00:00
|
|
|
|
2019-02-19 19:50:18 +00:00
|
|
|
menu "Host File System I/O (Semihosting)"
|
2020-03-20 12:35:00 +00:00
|
|
|
depends on VFS_SUPPORT_IO
|
|
|
|
|
2020-03-30 09:50:08 +00:00
|
|
|
config VFS_SEMIHOSTFS_MAX_MOUNT_POINTS
|
|
|
|
int "Host FS: Maximum number of the host filesystem mount points"
|
2019-02-19 19:50:18 +00:00
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Define maximum number of host filesystem mount points.
|
|
|
|
endmenu
|
|
|
|
|
2018-05-29 09:01:25 +00:00
|
|
|
endmenu
|