mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-31 13:35:47 +00:00
Add support for Virtual File system Switch (VFS) by introducing mount point concept to Zephyr. This allows the applications to mount multiple file systems at different mount points (ex: "/fatfs" and "/nffs"). The mount point structure contains all the necessary info required to instantiate, mount and operate on file system. Decouple applications from directly accessing individual file systems API's or internal functions by introducing file system registration mechanism in VFS. Move the file system defination and mount responsibility to application so that application can decide which file system to use and where to mount. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
16 lines
595 B
CMake
16 lines
595 B
CMake
if(CONFIG_FILE_SYSTEM)
|
|
zephyr_link_interface_ifdef(CONFIG_FAT_FILESYSTEM_ELM ELMFAT)
|
|
zephyr_link_interface_ifdef(CONFIG_FILE_SYSTEM_NFFS NFFS)
|
|
|
|
zephyr_library()
|
|
zephyr_library_sources(fs.c)
|
|
zephyr_library_sources_ifdef(CONFIG_FAT_FILESYSTEM_ELM fat_fs.c)
|
|
zephyr_library_sources_ifdef(CONFIG_FILE_SYSTEM_NFFS nffs_fs.c)
|
|
zephyr_library_sources_ifdef(CONFIG_FILE_SYSTEM_SHELL shell.c)
|
|
|
|
zephyr_library_link_libraries_ifdef(CONFIG_FAT_FILESYSTEM_ELM ELMFAT)
|
|
zephyr_library_link_libraries_ifdef(CONFIG_FILE_SYSTEM_NFFS NFFS)
|
|
endif()
|
|
|
|
add_subdirectory_ifdef(CONFIG_FCB ./fcb)
|