Alloc CONFIG_FS_READABLE/WRITABLE to be defined in Kconfig files while preserving backward compatibility with legacy configurations (for the time being)

This commit is contained in:
Gregory Nutt 2013-11-15 09:49:27 -06:00
parent 121de26583
commit f1671bb6a7
10 changed files with 25 additions and 4 deletions

View File

@ -427,6 +427,8 @@ endif
config USBMSC
bool "USB Mass storage class device"
default n
select FS_READABLE
select FS_WRITABLE
---help---
References:
"Universal Serial Bus Mass Storage Class, Specification Overview,"

View File

@ -9,6 +9,14 @@ config DISABLE_MOUNTPOINT
bool "Disable support for mount points"
default n
config FS_READABLE
bool
default n
config FS_WRITABLE
bool
default n
source fs/mmap/Kconfig
source fs/fat/Kconfig
source fs/nfs/Kconfig

View File

@ -7,6 +7,7 @@ config FS_BINFS
bool "BINFS File System"
default n
depends on BUILTIN
select FS_READABLE
---help---
The BINFS file system is provides access to builtin applications through
the NuttX file system. The BINFS may, for example, be mount at /bin.

View File

@ -7,6 +7,8 @@ config FS_FAT
bool "FAT file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
select FS_WRITABLE
---help---
Enable FAT filesystem support

View File

@ -7,6 +7,8 @@ config NFS
bool "NFS client file system"
default n
depends on NET && !DISABLE_MOUNTPOINT
select FS_READABLE
select FS_WRITABLE
---help---
Enable network file system (NFS) client file system

View File

@ -7,6 +7,8 @@ config FS_NXFFS
bool "NXFFS file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
select FS_WRITABLE
---help---
Enable NuttX FLASH file system (NXFF) support.

View File

@ -6,8 +6,9 @@
config FS_PROCFS
bool "PROCFS File System"
default n
select FS_WRITABLE
---help---
The PROCFS file system is provides access to task status through the
NuttX file system. The PROCFS may, for example, be mount at /proc.
Then information about all of the currently active tasks and threads
will be available in proc/.
will be available in proc/.

View File

@ -7,6 +7,7 @@ config FS_ROMFS
bool "ROMFS file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable ROMFS filesystem support

View File

@ -7,6 +7,8 @@ config FS_SMARTFS
bool "SMART file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
select FS_WRITABLE
---help---
Enable NuttX SMART Flash file system (SMARTFS) support.

View File

@ -222,15 +222,15 @@ int main(int argc, char **argv, char **envp)
printf("# undef CONFIG_NFS\n");
printf("#endif\n\n");
printf("/* Check if any readable and writable filesystem (OR USB storage) is supported */\n\n");
printf("#undef CONFIG_FS_READABLE\n");
printf("#undef CONFIG_FS_WRITABLE\n\n");
printf("#if defined(CONFIG_FS_FAT) || defined(CONFIG_FS_ROMFS) || defined(CONFIG_USBMSC) || \\\n");
printf(" defined(CONFIG_FS_NXFFS) || defined(CONFIG_FS_SMARTFS) || defined(CONFIG_FS_BINFS) || \\\n");
printf(" defined(CONFIG_NFS)\n");
printf(" defined(CONFIG_NFS) || defined(CONFIG_FS_PROCFS)\n");
printf("# undef CONFIG_FS_READABLE\n");
printf("# define CONFIG_FS_READABLE 1\n");
printf("#endif\n\n");
printf("#if defined(CONFIG_FS_FAT) || defined(CONFIG_USBMSC) || defined(CONFIG_FS_NXFFS) || \\\n");
printf(" defined(CONFIG_FS_SMARTFS) || defined(CONFIG_NFS)\n");
printf("# undef CONFIG_FS_WRITABLE\n");
printf("# define CONFIG_FS_WRITABLE 1\n");
printf("#endif\n\n");
printf("/* There can be no network support with no socket descriptors */\n\n");