mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-03 09:44:47 +00:00
Now that the native simulator has a common version of the error conversion let's use that instead of a version specific for the NSOS code. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
28 lines
904 B
CMake
28 lines
904 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_LOOPBACK loopback.c)
|
|
zephyr_library_sources_ifdef(CONFIG_NET_CANBUS canbus.c)
|
|
|
|
if(CONFIG_NET_NATIVE)
|
|
zephyr_library_sources_ifdef(CONFIG_SLIP slip.c)
|
|
zephyr_library_sources_ifdef(CONFIG_NET_PPP ppp.c)
|
|
endif()
|
|
|
|
if(CONFIG_NET_NATIVE_OFFLOADED_SOCKETS)
|
|
zephyr_library_include_directories(
|
|
${ZEPHYR_BASE}/subsys/net/lib/sockets
|
|
)
|
|
zephyr_library_sources(nsos_fcntl.c)
|
|
zephyr_library_sources(nsos_netdb.c)
|
|
zephyr_library_sources(nsos_sockets.c)
|
|
target_compile_options(native_simulator BEFORE INTERFACE
|
|
-I${BOARD_DIR}
|
|
-DNSOS_EPOLL_WAIT_INTERVAL=${CONFIG_NET_NATIVE_OFFLOADED_SOCKETS_EPOLL_WAIT_INTERVAL}
|
|
)
|
|
target_sources(native_simulator INTERFACE nsos_adapt.c)
|
|
target_sources(native_simulator INTERFACE nsos_fcntl.c)
|
|
target_sources(native_simulator INTERFACE nsos_netdb.c)
|
|
endif()
|