summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-10 23:49:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-10 23:49:13 +0000
commit3e83a91922974bdbbf76dd40960c774e85868cc1 (patch)
tree4f0e385ebcff6b7691547de0d9b05867d5214b92 /nuttx/fs
parent4dfecaf427d884d0a3e81bdf0850fa51af0e9ce0 (diff)
downloadpx4-nuttx-3e83a91922974bdbbf76dd40960c774e85868cc1.tar.gz
px4-nuttx-3e83a91922974bdbbf76dd40960c774e85868cc1.tar.bz2
px4-nuttx-3e83a91922974bdbbf76dd40960c774e85868cc1.zip
Add a little more configuration logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4587 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fat/Kconfig8
-rw-r--r--nuttx/fs/nxffs/Kconfig7
2 files changed, 6 insertions, 9 deletions
diff --git a/nuttx/fs/fat/Kconfig b/nuttx/fs/fat/Kconfig
index 9a023c297..8c9617af7 100644
--- a/nuttx/fs/fat/Kconfig
+++ b/nuttx/fs/fat/Kconfig
@@ -9,21 +9,20 @@ comment "FAT file system configuration"
config FS_FAT
bool "FAT file system"
default n
-# depends on CONFIG_NFILE_DESCRIPTORS > 0 && !CONFIG_DISABLE_MOUNTPOINT
+ depends on !DISABLE_MOUNTPOINT
---help---
Enable FAT filesystem support
+if FS_FAT
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.
@@ -31,7 +30,6 @@ config FAT_LCNAMES
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
@@ -54,10 +52,10 @@ config FAT_MAXFNAME
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.
+endif
endmenu
diff --git a/nuttx/fs/nxffs/Kconfig b/nuttx/fs/nxffs/Kconfig
index 39170a927..f6aede4a2 100644
--- a/nuttx/fs/nxffs/Kconfig
+++ b/nuttx/fs/nxffs/Kconfig
@@ -9,13 +9,14 @@ comment "NXFFS file system configuration"
config FS_NXFFS
bool "NXFFS file system"
default n
+ depends on !DISABLE_MOUNTPOINT
---help---
Enable NuttX FLASH file system (NXFF) support.
+if FS_NXFFS
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.
@@ -24,7 +25,6 @@ config NXFFS_ERASEDSTATE
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.
@@ -33,7 +33,6 @@ config NXFFS_PACKTHRESHOLD
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.
@@ -41,7 +40,6 @@ config NXFFS_MAXNAMLEN
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
@@ -53,4 +51,5 @@ config NXFFS_TAILTHRESHOLD
and making it available for re-use (and possible over-wear).
Default: 8192.
+endif
endmenu