Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

cmake: port the CMakeLists.txt code to support multi-image. #1

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
if(CONFIG_FILE_SYSTEM_NFFS)
add_library(NFFS INTERFACE)

target_include_directories(NFFS INTERFACE include)
add_library(${IMAGE}NFFS INTERFACE)
target_include_directories(${IMAGE}NFFS INTERFACE include)

zephyr_library()
zephyr_library_link_libraries(${IMAGE}NFFS)
zephyr_library_sources(
src/nffs_area.c
src/nffs_block.c
Expand All @@ -22,6 +23,5 @@ zephyr_library_sources(
src/nffs_restore.c
src/nffs_write.c
)
zephyr_library_link_libraries(NFFS)
target_link_libraries(NFFS INTERFACE zephyr_interface)

endif()