KConfig 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. menu "Device virtual file system"
  2. config RT_USING_DFS
  3. bool "Using device virtual file system"
  4. default y
  5. help
  6. The device file system is a light weight virtual file system.
  7. if RT_USING_DFS
  8. config DFS_USING_WORKDIR
  9. bool "Using working directory"
  10. default y
  11. config DFS_FILESYSTEMS_MAX
  12. int "The maximal number of mounted file system"
  13. default 2
  14. config DFS_FD_MAX
  15. int "The maximal number of opened files"
  16. default 4
  17. config RT_USING_DFS_ELMFAT
  18. bool "Enable elm-chan fatfs"
  19. default y
  20. help
  21. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  22. if RT_USING_DFS_ELMFAT
  23. config RT_DFS_ELM_CODE_PAGE
  24. int "OEM code page"
  25. default 437
  26. config RT_DFS_ELM_USE_LFN
  27. int "Support long file name"
  28. default 0
  29. range 0 3
  30. help
  31. 0: LFN disable
  32. 1: LFN with static LFN working buffer
  33. 2: LFN with dynamic LFN working buffer on the stack
  34. 3: LFN with dynamic LFN working buffer on the heap
  35. config RT_DFS_ELM_MAX_LFN
  36. int "Maximal size of file name length"
  37. default 256
  38. config RT_DFS_ELM_DRIVES
  39. int "Number of volumes (logical drives) to be used."
  40. default 2
  41. config RT_DFS_ELM_MAX_SECTOR_SIZE
  42. int "Maximum sector size to be handled."
  43. default 512
  44. help
  45. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  46. config RT_DFS_ELM_USE_ERASE
  47. bool "Enable sector erase feature"
  48. default n
  49. config RT_DFS_ELM_REENTRANT
  50. bool "Enable the reentrancy (thread safe) of the FatFs module"
  51. default y
  52. endif
  53. config RT_USING_DFS_DEVFS
  54. bool "Using devfs for device objects"
  55. default y
  56. config RT_USING_DFS_NET
  57. bool "Enable BSD socket operated by file system API"
  58. default n
  59. help
  60. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  61. config RT_USING_DFS_NFS
  62. bool "Using NFS v3 client file system"
  63. default n
  64. if RT_USING_DFS_NFS
  65. config RT_NFS_HOST_EXPORT
  66. string "NFSv3 host export"
  67. default "192.168.1.5:/"
  68. endif
  69. endif
  70. endmenu