zephyr/subsys/fs/ext2/CMakeLists.txt
Jordan Yates 946f6b5c2e fs: allow enabling filesystems with FILE_SYSTEM_LIB_LINK
Update the Kconfig configuration to allow enabling the underlying
filesystems (e.g. exFAT), with only `FILE_SYSTEM_LIB_LINK` enabled.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-01-21 15:13:05 +01:00

17 lines
445 B
CMake

# Copyright (c) 2023 Antmicro
# SPDX-License-Identifier: Apache-2.0
add_library(EXT2 INTERFACE)
target_include_directories(EXT2 INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
zephyr_library()
zephyr_library_sources(
ext2_impl.c
ext2_disk_access.c
ext2_bitmap.c
ext2_diskops.c
)
zephyr_library_sources_ifdef(CONFIG_FILE_SYSTEM ext2_ops.c)
zephyr_library_sources_ifdef(CONFIG_FILE_SYSTEM_MKFS ext2_format.c)
zephyr_library_link_libraries(EXT2)