File tree Expand file tree Collapse file tree 5 files changed +22
-17
lines changed Expand file tree Collapse file tree 5 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,6 @@ config FILE_SYSTEM
2222
2323if FILE_SYSTEM
2424
25- module = FS
26- module-str = fs
27- source "subsys/logging/Kconfig.template.log_config"
28-
29- config APP_LINK_WITH_FS
30- bool "Link 'app' with FS"
31- default y
32- help
33- Add FS header files to the 'app' include path. It may be
34- disabled if the include paths for FS are causing aliasing
35- issues for 'app'.
36-
3725config FILE_SYSTEM_MAX_TYPES
3826 int "Maximum number of distinct file system types allowed"
3927 default 2
@@ -110,11 +98,28 @@ config FUSE_FS_ACCESS
11098 help
11199 Expose file system partitions to the host system through FUSE.
112100
101+ endif # FILE_SYSTEM
102+
103+ if FILE_SYSTEM_LIB_LINK
104+
105+ config APP_LINK_WITH_FS
106+ bool "Link 'app' with FS"
107+ default y
108+ help
109+ Add FS header files to the 'app' include path. It may be
110+ disabled if the include paths for FS are causing aliasing
111+ issues for 'app'.
112+
113+ # Logging defined here as modules/fs/littlefs/lfs.c expects CONFIG_FS_LOG_LEVEL
114+ module = FS
115+ module-str = fs
116+ source "subsys/logging/Kconfig.template.log_config"
117+
113118rsource "Kconfig.fatfs"
114119rsource "Kconfig.littlefs"
115120rsource "ext2/Kconfig"
116121
117- endif # FILE_SYSTEM
122+ endif # FILE_SYSTEM_LIB_LINK
118123
119124rsource "fcb/Kconfig"
120125rsource "nvs/Kconfig"
Original file line number Diff line number Diff line change 55
66config FAT_FILESYSTEM_ELM
77 bool "ELM FAT file system support"
8- depends on FILE_SYSTEM
8+ depends on FILE_SYSTEM_LIB_LINK
99 select DISK_ACCESS
1010 help
1111 Use the ELM FAT File system implementation.
Original file line number Diff line number Diff line change 55
66config FILE_SYSTEM_LITTLEFS
77 bool "LittleFS support"
8- depends on FILE_SYSTEM
8+ depends on FILE_SYSTEM_LIB_LINK
99 depends on ZEPHYR_LITTLEFS_MODULE
1010 help
1111 Enables LittleFS file system support.
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ target_include_directories(EXT2 INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
66
77zephyr_library()
88zephyr_library_sources(
9- ext2_ops.c
109 ext2_impl.c
1110 ext2_disk_access.c
1211 ext2_bitmap.c
1312 ext2_diskops.c
1413)
14+ zephyr_library_sources_ifdef(CONFIG_FILE_SYSTEM ext2_ops.c)
1515zephyr_library_sources_ifdef(CONFIG_FILE_SYSTEM_MKFS ext2_format.c)
1616
1717zephyr_library_link_libraries(EXT2)
Original file line number Diff line number Diff line change 55
66config FILE_SYSTEM_EXT2
77 bool "Ext2 file system support"
8- depends on FILE_SYSTEM
8+ depends on FILE_SYSTEM_LIB_LINK
99 help
1010 Enable Ext2 file system support.
1111
You can’t perform that action at this time.
0 commit comments