flash host fuse access: Fix for native_sim
For native_sim we need to have the fuse library linked with the native simulator runner, not with the embedded code. Let's fix it. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
22d470e6a5
commit
ebd70f959f
|
@ -31,7 +31,11 @@ if(CONFIG_FUSE_FS_ACCESS)
|
|||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(FUSE REQUIRED fuse)
|
||||
zephyr_include_directories(${FUSE_INCLUDE_DIR})
|
||||
zephyr_link_libraries(${FUSE_LIBRARIES})
|
||||
if (CONFIG_NATIVE_LIBRARY)
|
||||
target_link_options(native_simulator INTERFACE "-l${FUSE_LIBRARIES}")
|
||||
else()
|
||||
zephyr_link_libraries(${FUSE_LIBRARIES})
|
||||
endif()
|
||||
zephyr_library_compile_definitions(_FILE_OFFSET_BITS=64)
|
||||
zephyr_library_sources(fuse_fs_access.c)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue