1if(CONFIG_FILE_SYSTEM_LITTLEFS) 2add_library(LITTLEFS INTERFACE) 3 4target_include_directories(LITTLEFS INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) 5 6zephyr_library() 7zephyr_library_sources( 8 lfs.c 9 lfs_util.c 10 ) 11zephyr_library_link_libraries(LITTLEFS) 12target_link_libraries(LITTLEFS INTERFACE zephyr_interface) 13endif() 14