Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. menu "Device virtual file system"
  2. config RT_USING_DFS
  3. bool "Using device virtual file system"
  4. select RT_USING_MUTEX
  5. default y
  6. help
  7. The device file system is a light weight virtual file system.
  8. if RT_USING_DFS
  9. config DFS_USING_WORKDIR
  10. bool "Using working directory"
  11. default y
  12. config DFS_FILESYSTEMS_MAX
  13. int "The maximal number of mounted file system"
  14. default 4 if RT_USING_DFS_NFS
  15. default 2
  16. config DFS_FILESYSTEM_TYPES_MAX
  17. int "The maximal number of file system type"
  18. default 4 if RT_USING_DFS_NFS
  19. default 2
  20. config DFS_FD_MAX
  21. int "The maximal number of opened files"
  22. default 16 if RT_USING_DFS_NFS
  23. default 4
  24. config RT_USING_DFS_ELMFAT
  25. bool "Enable elm-chan fatfs"
  26. default y
  27. help
  28. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  29. if RT_USING_DFS_ELMFAT
  30. menu "elm-chan's FatFs, Generic FAT Filesystem Module"
  31. config RT_DFS_ELM_CODE_PAGE
  32. int "OEM code page"
  33. default 437
  34. config RT_DFS_ELM_WORD_ACCESS
  35. bool "Using RT_DFS_ELM_WORD_ACCESS"
  36. default y
  37. choice
  38. prompt "Support long file name"
  39. default RT_DFS_ELM_USE_LFN_0
  40. config RT_DFS_ELM_USE_LFN_0
  41. bool "0: LFN disable"
  42. config RT_DFS_ELM_USE_LFN_1
  43. bool "1: LFN with static LFN working buffer"
  44. config RT_DFS_ELM_USE_LFN_2
  45. bool "2: LFN with dynamic LFN working buffer on the stack"
  46. config RT_DFS_ELM_USE_LFN_3
  47. bool "3: LFN with dynamic LFN working buffer on the heap"
  48. endchoice
  49. config RT_DFS_ELM_USE_LFN
  50. int
  51. default 0 if RT_DFS_ELM_USE_LFN_0
  52. default 1 if RT_DFS_ELM_USE_LFN_1
  53. default 2 if RT_DFS_ELM_USE_LFN_2
  54. default 3 if RT_DFS_ELM_USE_LFN_3
  55. config RT_DFS_ELM_MAX_LFN
  56. int "Maximal size of file name length"
  57. range 12 255
  58. default 255
  59. config RT_DFS_ELM_DRIVES
  60. int "Number of volumes (logical drives) to be used."
  61. default 2
  62. config RT_DFS_ELM_MAX_SECTOR_SIZE
  63. int "Maximum sector size to be handled."
  64. default 512
  65. help
  66. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  67. config RT_DFS_ELM_USE_ERASE
  68. bool "Enable sector erase feature"
  69. default n
  70. config RT_DFS_ELM_REENTRANT
  71. bool "Enable the reentrancy (thread safe) of the FatFs module"
  72. default y
  73. endmenu
  74. endif
  75. config RT_USING_DFS_DEVFS
  76. bool "Using devfs for device objects"
  77. default y
  78. config RT_USING_DFS_NET
  79. bool "Enable BSD socket operated by file system API"
  80. select RT_USING_LWIP
  81. select RT_USING_POSIX
  82. default n
  83. help
  84. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  85. config RT_USING_DFS_ROMFS
  86. bool "Enable ReadOnly file system on flash"
  87. default n
  88. config RT_USING_DFS_RAMFS
  89. bool "Enable RAM file system"
  90. default n
  91. config RT_USING_DFS_UFFS
  92. bool "Enable UFFS file system: Ultra-low-cost Flash File System"
  93. select RT_USING_MTD_NAND
  94. default n
  95. if RT_USING_DFS_UFFS
  96. choice
  97. prompt "UFFS ECC mode"
  98. default RT_UFFS_ECC_MODE_1
  99. config RT_UFFS_ECC_MODE_0
  100. bool "0: Do not use ECC"
  101. config RT_UFFS_ECC_MODE_1
  102. bool "1: UFFS calculate the ECC"
  103. config RT_UFFS_ECC_MODE_2
  104. bool "2: Flash driver(or by hardware) calculate the ECC"
  105. config RT_UFFS_ECC_MODE_3
  106. bool "3: Hardware calculate the ECC and automatically write to spare."
  107. endchoice
  108. config RT_UFFS_ECC_MODE
  109. int
  110. default 0 if RT_UFFS_ECC_MODE_0
  111. default 1 if RT_UFFS_ECC_MODE_1
  112. default 2 if RT_UFFS_ECC_MODE_2
  113. default 3 if RT_UFFS_ECC_MODE_3
  114. endif
  115. config RT_USING_DFS_JFFS2
  116. bool "Enable JFFS2 file system"
  117. select RT_USING_MTD_NOR
  118. default n
  119. config RT_USING_DFS_NFS
  120. bool "Using NFS v3 client file system"
  121. select RT_USING_LWIP
  122. default n
  123. if RT_USING_DFS_NFS
  124. config RT_NFS_HOST_EXPORT
  125. string "NFSv3 host export"
  126. default "192.168.1.5:/"
  127. endif
  128. endif
  129. endmenu