2023-04-04 15:02:56 +08:00
|
|
|
menu "DFS: device virtual file system"
|
|
|
|
|
|
|
|
config RT_USING_DFS
|
2022-03-25 23:07:18 +08:00
|
|
|
bool "DFS: device virtual file system"
|
2018-06-27 10:10:50 +08:00
|
|
|
select RT_USING_MUTEX
|
2017-01-31 11:54:12 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
The device file system is a light weight virtual file system.
|
|
|
|
|
|
|
|
if RT_USING_DFS
|
2021-11-16 00:22:49 +08:00
|
|
|
config DFS_USING_POSIX
|
|
|
|
bool "Using posix-like functions, open/read/write/close"
|
|
|
|
default y
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
config DFS_USING_WORKDIR
|
|
|
|
bool "Using working directory"
|
|
|
|
default y
|
2017-12-18 15:47:30 +08:00
|
|
|
|
2018-07-28 20:22:14 +08:00
|
|
|
config RT_USING_DFS_MNTTABLE
|
|
|
|
bool "Using mount table for file system"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
User can use mount table for automatically mount, for example:
|
|
|
|
const struct dfs_mount_tbl mount_table[] =
|
|
|
|
{
|
|
|
|
{"flash0", "/", "elm", 0, 0},
|
|
|
|
{0}
|
|
|
|
};
|
|
|
|
The mount_table must be terminated with NULL.
|
|
|
|
|
2023-04-04 15:02:56 +08:00
|
|
|
config DFS_FD_MAX
|
|
|
|
int "The maximal number of opened files"
|
|
|
|
default 16
|
2022-12-03 12:07:44 +08:00
|
|
|
|
2023-04-04 15:02:56 +08:00
|
|
|
choice
|
|
|
|
prompt "The version of DFS"
|
|
|
|
default RT_USING_DFS_V1
|
|
|
|
default RT_USING_DFS_V2 if RT_USING_SMART
|
2017-10-25 14:21:49 +08:00
|
|
|
|
2023-04-04 15:02:56 +08:00
|
|
|
config RT_USING_DFS_V1
|
|
|
|
bool "DFS v1.0"
|
2022-12-03 12:07:44 +08:00
|
|
|
|
2023-04-04 15:02:56 +08:00
|
|
|
config RT_USING_DFS_V2
|
|
|
|
bool "DFS v2.0"
|
|
|
|
endchoice
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2023-04-04 15:02:56 +08:00
|
|
|
source "$RTT_DIR/components/dfs/dfs_v1/Kconfig"
|
|
|
|
source "$RTT_DIR/components/dfs/dfs_v2/Kconfig"
|
2017-01-31 11:54:12 +08:00
|
|
|
|
|
|
|
endif
|
2023-04-04 15:02:56 +08:00
|
|
|
|
|
|
|
endmenu
|