Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2016 Intel Corporation |
| 3 | # |
David B. Kinder | ac74d8b | 2017-01-18 17:01:01 -0800 | [diff] [blame] | 4 | # SPDX-License-Identifier: Apache-2.0 |
Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 5 | # |
| 6 | |
Anas Nashif | 6192555 | 2017-09-30 08:27:02 -0400 | [diff] [blame] | 7 | menu "File Systems" |
Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 8 | |
| 9 | config FILE_SYSTEM |
| 10 | bool "File system support" |
Jithu Joseph | 89f4bf7 | 2016-12-08 19:14:55 -0800 | [diff] [blame] | 11 | select DISK_ACCESS |
Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 12 | default n |
| 13 | help |
| 14 | Enables support for file system. |
| 15 | |
Johan Hedberg | 51390c3 | 2016-10-30 15:38:33 +0200 | [diff] [blame] | 16 | if FILE_SYSTEM |
| 17 | |
Andrzej Kaczmarek | 81da3ca | 2017-08-08 15:12:55 +0200 | [diff] [blame] | 18 | choice |
Anas Nashif | 6192555 | 2017-09-30 08:27:02 -0400 | [diff] [blame] | 19 | prompt "Supported file systems" |
| 20 | default NO_FILE_SYSTEM |
| 21 | |
| 22 | config NO_FS |
| 23 | bool "No File System" |
| 24 | help |
| 25 | No file system choosen. |
Andrzej Kaczmarek | 81da3ca | 2017-08-08 15:12:55 +0200 | [diff] [blame] | 26 | |
Anas Nashif | c6a8014 | 2017-09-30 08:49:22 -0400 | [diff] [blame] | 27 | config FAT_FILESYSTEM_ELM |
| 28 | bool "ELM FAT File System" |
Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 29 | help |
Anas Nashif | c6a8014 | 2017-09-30 08:49:22 -0400 | [diff] [blame] | 30 | Use the ELM FAT File system implementation. |
Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 31 | |
Andrzej Kaczmarek | 81da3ca | 2017-08-08 15:12:55 +0200 | [diff] [blame] | 32 | config 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 | |
| 40 | endchoice |
| 41 | |
Anas Nashif | 6192555 | 2017-09-30 08:27:02 -0400 | [diff] [blame] | 42 | config 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 Kaczmarek | 81da3ca | 2017-08-08 15:12:55 +0200 | [diff] [blame] | 50 | menu "NFFS Settings" |
| 51 | visible if FILE_SYSTEM_NFFS |
| 52 | |
| 53 | config FS_NFFS_FLASH_DEV_NAME |
| 54 | string |
| 55 | prompt "Flash device name to be used" |
| 56 | |
| 57 | config FS_NFFS_NUM_INODES |
| 58 | int "Maximum number of inodes" |
| 59 | range 1 32768 |
| 60 | default 100 |
| 61 | |
| 62 | config FS_NFFS_NUM_BLOCKS |
| 63 | int "Maximum number of blocks" |
| 64 | range 1 32768 |
| 65 | default 100 |
| 66 | |
| 67 | config FS_NFFS_NUM_FILES |
| 68 | int "Maximum number of opened files" |
| 69 | range 1 256 |
| 70 | default 4 |
| 71 | |
| 72 | config FS_NFFS_NUM_DIRS |
| 73 | int "Maximum number of opened directories" |
| 74 | range 1 256 |
| 75 | default 4 |
| 76 | |
| 77 | config FS_NFFS_NUM_CACHE_INODES |
| 78 | int "Number of cached files' inodes" |
| 79 | range 1 512 |
| 80 | default 4 |
| 81 | |
| 82 | config FS_NFFS_NUM_CACHE_BLOCKS |
| 83 | int "Number of cached blocks" |
| 84 | range 1 512 |
| 85 | default 64 |
| 86 | |
Anas Nashif | 3580ba5 | 2017-09-30 08:42:59 -0400 | [diff] [blame] | 87 | source "ext/fs/nffs/Kconfig" |
| 88 | |
Andrzej Kaczmarek | 81da3ca | 2017-08-08 15:12:55 +0200 | [diff] [blame] | 89 | endmenu |
| 90 | |
Johan Hedberg | 51390c3 | 2016-10-30 15:38:33 +0200 | [diff] [blame] | 91 | endif # FILE_SYSTEM |
Kuo-Lang Tseng | 57c760a | 2016-07-30 20:46:13 -0700 | [diff] [blame] | 92 | |
Ramesh Thomas | cc74572 | 2016-07-25 16:20:54 -0700 | [diff] [blame] | 93 | endmenu |