blob: 9545b19a6febe188a67981638bf369a9692903f6 [file] [log] [blame]
Ramesh Thomascc745722016-07-25 16:20:54 -07001#
2# Copyright (c) 2016 Intel Corporation
3#
David B. Kinderac74d8b2017-01-18 17:01:01 -08004# SPDX-License-Identifier: Apache-2.0
Ramesh Thomascc745722016-07-25 16:20:54 -07005#
6
Anas Nashif61925552017-09-30 08:27:02 -04007menu "File Systems"
Ramesh Thomascc745722016-07-25 16:20:54 -07008
9config FILE_SYSTEM
10 bool "File system support"
Jithu Joseph89f4bf72016-12-08 19:14:55 -080011 select DISK_ACCESS
Ramesh Thomascc745722016-07-25 16:20:54 -070012 default n
13 help
14 Enables support for file system.
15
Johan Hedberg51390c32016-10-30 15:38:33 +020016if FILE_SYSTEM
17
Andrzej Kaczmarek81da3ca2017-08-08 15:12:55 +020018choice
Anas Nashif61925552017-09-30 08:27:02 -040019 prompt "Supported file systems"
20 default NO_FILE_SYSTEM
21
22config NO_FS
23 bool "No File System"
24 help
25 No file system choosen.
Andrzej Kaczmarek81da3ca2017-08-08 15:12:55 +020026
Anas Nashifc6a80142017-09-30 08:49:22 -040027config FAT_FILESYSTEM_ELM
28 bool "ELM FAT File System"
Ramesh Thomascc745722016-07-25 16:20:54 -070029 help
Anas Nashifc6a80142017-09-30 08:49:22 -040030 Use the ELM FAT File system implementation.
Ramesh Thomascc745722016-07-25 16:20:54 -070031
Andrzej Kaczmarek81da3ca2017-08-08 15:12:55 +020032config FILE_SYSTEM_NFFS
33 bool "NFFS file system support"
34 select FLASH_PAGE_LAYOUT
35 help
36 Enables NFFS file system support.
37 Note: NFFS requires 1-byte unaligned access to flash thus it
38 will not work on devices that support only aligned flash access.
39
40endchoice
41
Anas Nashif61925552017-09-30 08:27:02 -040042config FILE_SYSTEM_SHELL
43 bool "Enable file system shell"
44 depends on CONSOLE_SHELL
45 help
46 This shell provides basic browsing of the contents of the
47 file system.
48
49
Andrzej Kaczmarek81da3ca2017-08-08 15:12:55 +020050menu "NFFS Settings"
51 visible if FILE_SYSTEM_NFFS
52
53config FS_NFFS_FLASH_DEV_NAME
54 string
55 prompt "Flash device name to be used"
56
57config FS_NFFS_NUM_INODES
58 int "Maximum number of inodes"
59 range 1 32768
60 default 100
61
62config FS_NFFS_NUM_BLOCKS
63 int "Maximum number of blocks"
64 range 1 32768
65 default 100
66
67config FS_NFFS_NUM_FILES
68 int "Maximum number of opened files"
69 range 1 256
70 default 4
71
72config FS_NFFS_NUM_DIRS
73 int "Maximum number of opened directories"
74 range 1 256
75 default 4
76
77config FS_NFFS_NUM_CACHE_INODES
78 int "Number of cached files' inodes"
79 range 1 512
80 default 4
81
82config FS_NFFS_NUM_CACHE_BLOCKS
83 int "Number of cached blocks"
84 range 1 512
85 default 64
86
Anas Nashif3580ba52017-09-30 08:42:59 -040087source "ext/fs/nffs/Kconfig"
88
Andrzej Kaczmarek81da3ca2017-08-08 15:12:55 +020089endmenu
90
Johan Hedberg51390c32016-10-30 15:38:33 +020091endif # FILE_SYSTEM
Kuo-Lang Tseng57c760a2016-07-30 20:46:13 -070092
Ramesh Thomascc745722016-07-25 16:20:54 -070093endmenu