Kconfig 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. menu "Virtual file system"
  2. config VFS_SUPPORT_IO
  3. bool "Provide basic I/O functions"
  4. default y
  5. help
  6. If enabled, the following functions are provided by the VFS component.
  7. open, close, read, write, pread, pwrite, lseek, fstat, fsync, ioctl, fcntl
  8. Filesystem drivers can then be registered to handle these functions
  9. for specific paths.
  10. Disabling this option can save memory when the support for these functions
  11. is not required.
  12. config VFS_SUPPORT_DIR
  13. bool "Provide directory related functions"
  14. default y
  15. # If some filesystem is used, adding I/O support is probably needed and
  16. # is not a big overhead, compared to code size of the filesystem,
  17. # so make this depend on IO.
  18. depends on VFS_SUPPORT_IO
  19. help
  20. If enabled, the following functions are provided by the VFS component.
  21. stat, link, unlink, rename, utime, access, truncate, rmdir, mkdir,
  22. opendir, closedir, readdir, readdir_r, seekdir, telldir, rewinddir
  23. Filesystem drivers can then be registered to handle these functions
  24. for specific paths.
  25. Disabling this option can save memory when the support for these functions
  26. is not required.
  27. config VFS_SUPPORT_SELECT
  28. bool "Provide select function"
  29. default y
  30. # Dependency on !LWIP_USE_ONLY_LWIP_SELECT is for compatibility
  31. depends on VFS_SUPPORT_IO && !LWIP_USE_ONLY_LWIP_SELECT
  32. help
  33. If enabled, select function is provided by the VFS component, and can be used
  34. on peripheral file descriptors (such as UART) and sockets at the same time.
  35. If disabled, the default select implementation will be provided by LWIP for
  36. sockets only.
  37. Disabling this option can reduce code size if support for "select" on UART file
  38. descriptors is not required.
  39. config VFS_SUPPRESS_SELECT_DEBUG_OUTPUT
  40. bool "Suppress select() related debug outputs"
  41. depends on VFS_SUPPORT_SELECT
  42. default y
  43. help
  44. Select() related functions might produce an unconveniently lot of
  45. debug outputs when one sets the default log level to DEBUG or higher.
  46. It is possible to suppress these debug outputs by enabling this
  47. option.
  48. config VFS_SUPPORT_TERMIOS
  49. bool "Provide termios.h functions"
  50. default y
  51. # Very likely, only makes sense for UART VFS driver, which itself depends on VFS_SUPPORT_IO
  52. depends on VFS_SUPPORT_IO
  53. help
  54. Disabling this option can save memory when the support for termios.h is not required.
  55. menu "Host File System I/O (Semihosting)"
  56. depends on VFS_SUPPORT_IO
  57. config VFS_SEMIHOSTFS_MAX_MOUNT_POINTS
  58. int "Host FS: Maximum number of the host filesystem mount points"
  59. default 1
  60. help
  61. Define maximum number of host filesystem mount points.
  62. config VFS_SEMIHOSTFS_HOST_PATH_MAX_LEN
  63. int "Host FS: Maximum path length for the host base directory"
  64. default 128
  65. help
  66. Define maximum path length for the host base directory which is to be mounted.
  67. If host path passed to esp_vfs_semihost_register() is longer than this value
  68. it will be truncated.
  69. endmenu
  70. endmenu