Kconfig 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file kconfig-language.txt in the NuttX tools repository.
  4. #
  5. config FS_SMARTFS
  6. bool "SMART file system"
  7. default n
  8. depends on !DISABLE_MOUNTPOINT
  9. select FS_READABLE
  10. select FS_WRITABLE
  11. ---help---
  12. Enable NuttX SMART Flash file system (SMARTFS) support.
  13. if FS_SMARTFS
  14. config SMARTFS_ERASEDSTATE
  15. hex "FLASH erased state"
  16. default 0xff
  17. ---help---
  18. The erased state of FLASH.
  19. This must have one of the values of 0xff or 0x00.
  20. Default: 0xff.
  21. config SMARTFS_MAXNAMLEN
  22. int "Maximum file name length"
  23. default 16
  24. ---help---
  25. The maximum size of a SMARTFS file name at a given
  26. directory level. Overall path name is not restricted
  27. by this value, only individual segments in a path,
  28. such as (assuming /usr is the mount point):
  29. /usr/games/chess/player_stats/game1.xml
  30. Default: 16.
  31. config SMARTFS_MULTI_ROOT_DIRS
  32. bool "Support multiple Root Directories / Mount Points"
  33. default n
  34. ---help---
  35. Enables support for multiple root directory entries
  36. on the SMART FLASH. Multiple root directories means
  37. the device can have multiple mount point in the VFS,
  38. each with it's own unique directory structure under it.
  39. When this option is enabled, instead of reporting the
  40. SMART block devices as "/dev/mtdsmart0", they will be
  41. reported as "/dev/mtdsmart0d1", "/dev/mtdsmart0d2", etc.
  42. The number of root entries actually created is set
  43. during the "mksmartfs" command when the device is
  44. initialized.
  45. Default: y.
  46. config SMARTFS_ALIGNED_ACCESS
  47. bool "Ensure 16 and 32 bit accesses are aligned"
  48. default n
  49. ---help---
  50. Performs little endian byte accesses to 16 and 32 values
  51. within the directory list to ensure processors that can't
  52. handle un-aligned accesses don't bomb out. Default should
  53. probably by 'Y', but set to 'N' in case any existing Big
  54. Endian instances of SmartFS exist that already have
  55. directories with data stored in big endian mode.
  56. endif