2016-07-26 07:20:54 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-07-26 07:20:54 +08:00
|
|
|
#
|
|
|
|
|
2017-09-30 20:27:02 +08:00
|
|
|
menu "File Systems"
|
2016-07-26 07:20:54 +08:00
|
|
|
|
|
|
|
config FILE_SYSTEM
|
|
|
|
bool "File system support"
|
|
|
|
default n
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enables support for file system.
|
2016-07-26 07:20:54 +08:00
|
|
|
|
2016-10-30 21:38:33 +08:00
|
|
|
if FILE_SYSTEM
|
|
|
|
|
2017-08-08 21:12:55 +08:00
|
|
|
choice
|
2017-09-30 20:27:02 +08:00
|
|
|
prompt "Supported file systems"
|
|
|
|
default NO_FILE_SYSTEM
|
|
|
|
|
2018-02-07 14:50:51 +08:00
|
|
|
config NO_FILE_SYSTEM
|
2017-09-30 20:27:02 +08:00
|
|
|
bool "No File System"
|
|
|
|
help
|
2017-10-18 00:46:49 +08:00
|
|
|
No file system chosen.
|
2017-08-08 21:12:55 +08:00
|
|
|
|
2017-09-30 20:49:22 +08:00
|
|
|
config FAT_FILESYSTEM_ELM
|
|
|
|
bool "ELM FAT File System"
|
2017-12-15 04:11:13 +08:00
|
|
|
select DISK_ACCESS
|
2016-07-26 07:20:54 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Use the ELM FAT File system implementation.
|
2016-07-26 07:20:54 +08:00
|
|
|
|
2017-08-08 21:12:55 +08:00
|
|
|
config FILE_SYSTEM_NFFS
|
|
|
|
bool "NFFS file system support"
|
|
|
|
select FLASH_PAGE_LAYOUT
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enables NFFS file system support.
|
|
|
|
Note: NFFS requires 1-byte unaligned access to flash thus it
|
|
|
|
will not work on devices that support only aligned flash access.
|
2017-08-08 21:12:55 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2017-09-30 20:27:02 +08:00
|
|
|
config FILE_SYSTEM_SHELL
|
|
|
|
bool "Enable file system shell"
|
|
|
|
depends on CONSOLE_SHELL
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This shell provides basic browsing of the contents of the
|
|
|
|
file system.
|
2017-09-30 20:27:02 +08:00
|
|
|
|
|
|
|
|
2017-08-08 21:12:55 +08:00
|
|
|
menu "NFFS Settings"
|
|
|
|
visible if FILE_SYSTEM_NFFS
|
|
|
|
|
|
|
|
config FS_NFFS_FLASH_DEV_NAME
|
|
|
|
string
|
|
|
|
prompt "Flash device name to be used"
|
|
|
|
|
|
|
|
config FS_NFFS_NUM_INODES
|
|
|
|
int "Maximum number of inodes"
|
|
|
|
range 1 32768
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config FS_NFFS_NUM_BLOCKS
|
|
|
|
int "Maximum number of blocks"
|
|
|
|
range 1 32768
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config FS_NFFS_NUM_FILES
|
|
|
|
int "Maximum number of opened files"
|
|
|
|
range 1 256
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config FS_NFFS_NUM_DIRS
|
|
|
|
int "Maximum number of opened directories"
|
|
|
|
range 1 256
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config FS_NFFS_NUM_CACHE_INODES
|
|
|
|
int "Number of cached files' inodes"
|
|
|
|
range 1 512
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config FS_NFFS_NUM_CACHE_BLOCKS
|
|
|
|
int "Number of cached blocks"
|
|
|
|
range 1 512
|
|
|
|
default 64
|
|
|
|
|
2017-09-30 20:42:59 +08:00
|
|
|
source "ext/fs/nffs/Kconfig"
|
|
|
|
|
2017-08-08 21:12:55 +08:00
|
|
|
endmenu
|
|
|
|
|
2016-10-30 21:38:33 +08:00
|
|
|
endif # FILE_SYSTEM
|
2016-07-31 11:46:13 +08:00
|
|
|
|
2017-12-13 22:53:20 +08:00
|
|
|
source "subsys/fs/fcb/Kconfig"
|
|
|
|
|
2016-07-26 07:20:54 +08:00
|
|
|
endmenu
|