rt-thread/components/dfs/Kconfig

174 lines
5.0 KiB
Plaintext
Raw Normal View History

2017-01-31 11:54:12 +08:00
menu "Device virtual file system"
config RT_USING_DFS
bool "Using device virtual file system"
default y
help
The device file system is a light weight virtual file system.
if RT_USING_DFS
config DFS_USING_WORKDIR
bool "Using working directory"
default y
2017-12-18 15:42:23 +08:00
2017-01-31 11:54:12 +08:00
config DFS_FILESYSTEMS_MAX
2017-12-18 15:42:23 +08:00
int "The maximal number of mounted file system"
default 4 if RT_USING_DFS_NFS
default 2
config DFS_FILESYSTEM_TYPES_MAX
int "The maximal number of file system type"
2017-12-18 15:42:23 +08:00
default 4 if RT_USING_DFS_NFS
default 2
2017-01-31 11:54:12 +08:00
config DFS_FD_MAX
int "The maximal number of opened files"
2017-12-18 15:42:23 +08:00
default 16 if RT_USING_DFS_NFS
2017-01-31 11:54:12 +08:00
default 4
2017-12-18 15:42:23 +08:00
2017-01-31 11:54:12 +08:00
config RT_USING_DFS_ELMFAT
bool "Enable elm-chan fatfs"
default y
help
FatFs is a generic FAT/exFAT file system module for small embedded systems.
2017-10-25 14:21:49 +08:00
2017-01-31 11:54:12 +08:00
if RT_USING_DFS_ELMFAT
2017-10-25 14:21:49 +08:00
menu "elm-chan's FatFs, Generic FAT Filesystem Module"
2017-01-31 11:54:12 +08:00
config RT_DFS_ELM_CODE_PAGE
int "OEM code page"
default 437
2017-10-09 15:12:42 +08:00
config RT_DFS_ELM_WORD_ACCESS
bool "Using RT_DFS_ELM_WORD_ACCESS"
default y
choice
prompt "Support long file name"
default RT_DFS_ELM_USE_LFN_0
config RT_DFS_ELM_USE_LFN_0
bool "0: LFN disable"
config RT_DFS_ELM_USE_LFN_1
bool "1: LFN with static LFN working buffer"
config RT_DFS_ELM_USE_LFN_2
bool "2: LFN with dynamic LFN working buffer on the stack"
config RT_DFS_ELM_USE_LFN_3
bool "3: LFN with dynamic LFN working buffer on the heap"
endchoice
config RT_DFS_ELM_USE_LFN
int
default 0 if RT_DFS_ELM_USE_LFN_0
default 1 if RT_DFS_ELM_USE_LFN_1
default 2 if RT_DFS_ELM_USE_LFN_2
default 3 if RT_DFS_ELM_USE_LFN_3
2017-01-31 11:54:12 +08:00
config RT_DFS_ELM_MAX_LFN
int "Maximal size of file name length"
range 12 255
default 255
2017-01-31 11:54:12 +08:00
config RT_DFS_ELM_DRIVES
int "Number of volumes (logical drives) to be used."
default 2
2017-01-31 11:54:12 +08:00
config RT_DFS_ELM_MAX_SECTOR_SIZE
int "Maximum sector size to be handled."
default 512
help
if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
config RT_DFS_ELM_USE_ERASE
bool "Enable sector erase feature"
default n
config RT_DFS_ELM_REENTRANT
bool "Enable the reentrancy (thread safe) of the FatFs module"
default y
2017-10-25 14:21:49 +08:00
endmenu
2017-01-31 11:54:12 +08:00
endif
config RT_USING_DFS_DEVFS
bool "Using devfs for device objects"
default y
config RT_USING_DFS_NET
bool "Enable BSD socket operated by file system API"
select RT_USING_LWIP
select RT_USING_POSIX
2017-01-31 11:54:12 +08:00
default n
help
Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
if RT_USING_DFS_NET
config HAVE_SYS_SELECT_H
2017-11-06 20:01:35 +08:00
bool "Toolchains/libc have provided sys/select.h"
default n
help
2017-11-06 20:01:35 +08:00
Toolchains/libc have provided sys/select.h file, therefore, disable the sys/select.h in RT-Thread.
config HAVE_SYS_SOCKET_H
2017-11-06 20:01:35 +08:00
bool "Toolchains/libc have provided sys/socket.h"
default n
help
2017-11-06 20:01:35 +08:00
Toolchains/libc have provided sys/socket.h file, therefore, disable the sys/socket.h in RT-Thread.
endif
2017-10-25 14:21:49 +08:00
config RT_USING_DFS_ROMFS
bool "Enable ReadOnly file system on flash"
default n
config RT_USING_DFS_RAMFS
bool "Enable RAM file system"
default n
config RT_USING_DFS_UFFS
bool "Enable UFFS file system: Ultra-low-cost Flash File System"
select RT_USING_MTD_NAND
default n
2017-10-25 16:23:02 +08:00
if RT_USING_DFS_UFFS
choice
prompt "UFFS ECC mode"
default RT_UFFS_ECC_MODE_1
config RT_UFFS_ECC_MODE_0
bool "0: Do not use ECC"
config RT_UFFS_ECC_MODE_1
bool "1: UFFS calculate the ECC"
config RT_UFFS_ECC_MODE_2
bool "2: Flash driver(or by hardware) calculate the ECC"
config RT_UFFS_ECC_MODE_3
bool "3: Hardware calculate the ECC and automatically write to spare."
endchoice
config RT_UFFS_ECC_MODE
int
default 0 if RT_UFFS_ECC_MODE_0
default 1 if RT_UFFS_ECC_MODE_1
default 2 if RT_UFFS_ECC_MODE_2
default 3 if RT_UFFS_ECC_MODE_3
endif
2017-01-31 11:54:12 +08:00
config RT_USING_DFS_NFS
bool "Using NFS v3 client file system"
2017-12-18 15:42:23 +08:00
select RT_USING_LWIP
2017-01-31 11:54:12 +08:00
default n
if RT_USING_DFS_NFS
config RT_NFS_HOST_EXPORT
string "NFSv3 host export"
default "192.168.1.5:/"
endif
endif
endmenu