From 85291a519ed5215f6925eae441daef7db879fe28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Thu, 10 Oct 2019 13:47:06 +0200 Subject: [PATCH] cmake: port the CMakeLists.txt code to support multi-image. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port the CMakeLists.txt code to support multi-image. Also, remove "target_link_libraries(NFFS INTERFACE zephyr_interface)" as it has no effect. Signed-off-by: Sebastian Bøe --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37b1ad9..edc82db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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()