Kconfig 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. menu "DFS: device virtual file system"
  2. config RT_USING_DFS
  3. bool "DFS: 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_POSIX
  10. bool "Using posix-like functions, open/read/write/close"
  11. default y
  12. config DFS_USING_WORKDIR
  13. bool "Using working directory"
  14. default y
  15. config RT_USING_DFS_MNTTABLE
  16. bool "Using mount table for file system"
  17. default n
  18. help
  19. User can use mount table for automatically mount, for example:
  20. const struct dfs_mount_tbl mount_table[] =
  21. {
  22. {"flash0", "/", "elm", 0, 0},
  23. {0}
  24. };
  25. The mount_table must be terminated with NULL.
  26. config DFS_FD_MAX
  27. int "The maximal number of opened files"
  28. default 16
  29. choice
  30. prompt "The version of DFS"
  31. default RT_USING_DFS_V1
  32. default RT_USING_DFS_V2 if RT_USING_SMART
  33. config RT_USING_DFS_V1
  34. bool "DFS v1.0"
  35. config RT_USING_DFS_V2
  36. bool "DFS v2.0"
  37. endchoice
  38. source "$RTT_DIR/components/dfs/dfs_v1/Kconfig"
  39. source "$RTT_DIR/components/dfs/dfs_v2/Kconfig"
  40. endif
  41. endmenu