From 77dda92fc950fac95a77ac88ef747bdb83a390af Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 10 Apr 2012 23:01:40 +0000 Subject: [PATCH] A little bit of file system configuration logic git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4586 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/fs/Kconfig | 7 +++++ nuttx/fs/fat/Kconfig | 59 ++++++++++++++++++++++++++++++++++++++++++ nuttx/fs/mmap/Kconfig | 2 ++ nuttx/fs/nfs/Kconfig | 2 ++ nuttx/fs/nxffs/Kconfig | 52 +++++++++++++++++++++++++++++++++++++ nuttx/fs/romfs/Kconfig | 2 ++ 6 files changed, 124 insertions(+) diff --git a/nuttx/fs/Kconfig b/nuttx/fs/Kconfig index ae2bf31307..2e1fd37837 100644 --- a/nuttx/fs/Kconfig +++ b/nuttx/fs/Kconfig @@ -2,3 +2,10 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +comment "File system configuration" +source fs/fat/Kconfig +source fs/mmap/Kconfig +source fs/nfs/Kconfig +source fs/nxffs/Kconfig +source fs/romfs/Kconfig \ No newline at end of file diff --git a/nuttx/fs/fat/Kconfig b/nuttx/fs/fat/Kconfig index ae2bf31307..9a023c297d 100644 --- a/nuttx/fs/fat/Kconfig +++ b/nuttx/fs/fat/Kconfig @@ -2,3 +2,62 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +menu "FAT file system configuration" +comment "FAT file system configuration" + +config FS_FAT + bool "FAT file system" + default n +# depends on CONFIG_NFILE_DESCRIPTORS > 0 && !CONFIG_DISABLE_MOUNTPOINT + ---help--- + Enable FAT filesystem support + +config FAT_SECTORSIZE + int "FAT sector size" + default 512 + depends on FS_FAT + ---help--- + Max supported sector size + +config FAT_LCNAMES + bool "FAT upper/lower names" + default n + depends on FS_FAT + ---help--- + Enable use of the NT-style upper/lower case 8.3 + file name support. + +config FAT_LFN + bool "FAT long file names" + default n + depends on FS_FAT + ---help--- + Enable FAT long file names. NOTE: Microsoft claims + patents on FAT long file name technology. Please read the + disclaimer in the top-level COPYING file and only enable this + feature if you understand these issues. + +config FAT_MAXFNAME + int "FAT maximum file name size" + default n + depends on FAT_LFN + ---help--- + If CONFIG_FAT_LFN is defined, then the + default, maximum long file name is 255 bytes. This can eat up + a lot of memory (especially stack space). If you are willing + to live with some non-standard, short long file names, then + define this value. A good choice would be the same value as + selected for CONFIG_NAME_MAX which will limit the visibility + of longer file names anyway. + +config FS_FATTIME + bool "FAT timestamps" + default n + depends on FS_FAT + ---help--- + Support FAT date and time. NOTE: There is not + much sense in supporting FAT date and time unless you have a + hardware RTC or other way to get the time and date. + +endmenu diff --git a/nuttx/fs/mmap/Kconfig b/nuttx/fs/mmap/Kconfig index ae2bf31307..a7b696c6a7 100644 --- a/nuttx/fs/mmap/Kconfig +++ b/nuttx/fs/mmap/Kconfig @@ -2,3 +2,5 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +comment "File mapping emulation" diff --git a/nuttx/fs/nfs/Kconfig b/nuttx/fs/nfs/Kconfig index ae2bf31307..88a562cb35 100644 --- a/nuttx/fs/nfs/Kconfig +++ b/nuttx/fs/nfs/Kconfig @@ -2,3 +2,5 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +comment "Network file system (NFS) client file system" diff --git a/nuttx/fs/nxffs/Kconfig b/nuttx/fs/nxffs/Kconfig index ae2bf31307..39170a9274 100644 --- a/nuttx/fs/nxffs/Kconfig +++ b/nuttx/fs/nxffs/Kconfig @@ -2,3 +2,55 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +menu "NXFFS file system configuration" +comment "NXFFS file system configuration" + +config FS_NXFFS + bool "NXFFS file system" + default n + ---help--- + Enable NuttX FLASH file system (NXFF) support. + +config NXFFS_ERASEDSTATE + bool "FLASH erased state" + default n + depends on FS_NXFFS + ---help--- + The erased state of FLASH. + This must have one of the values of 0xff or 0x00. + Default: 0xff. + +config NXFFS_PACKTHRESHOLD + bool "Re-packing threshold" + default n + depends on FS_NXFFS + ---help--- + When packing flash file data, + don't both with file chunks smaller than this number of data bytes. + Default: 32. + +config NXFFS_MAXNAMLEN + bool "Maximum file name length" + default n + depends on FS_NXFFS + ---help--- + The maximum size of an NXFFS file name. + Default: 255. + +config NXFFS_TAILTHRESHOLD + bool "Tail threshold" + default n + depends on FS_NXFFS + ---help--- + clean-up can either mean + packing files together toward the end of the file or, if file are + deleted at the end of the file, clean up can simply mean erasing + the end of FLASH memory so that it can be re-used again. However, + doing this can also harm the life of the FLASH part because it can + mean that the tail end of the FLASH is re-used too often. This + threshold determines if/when it is worth erased the tail end of FLASH + and making it available for re-use (and possible over-wear). + Default: 8192. + +endmenu diff --git a/nuttx/fs/romfs/Kconfig b/nuttx/fs/romfs/Kconfig index ae2bf31307..22274681ad 100644 --- a/nuttx/fs/romfs/Kconfig +++ b/nuttx/fs/romfs/Kconfig @@ -2,3 +2,5 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +comment "ROMFS file system"