Kconfig 4.2 KB

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