2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-05-27 01:38:57 +02:00
|
|
|
zephyr_syscall_header(
|
|
|
|
${ZEPHYR_BASE}/include/zephyr/net/net_if.h
|
|
|
|
${ZEPHYR_BASE}/include/zephyr/net/net_ip.h
|
|
|
|
)
|
|
|
|
|
2017-10-27 15:43:34 +02:00
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_include_directories(.)
|
2017-12-05 11:11:29 +01:00
|
|
|
zephyr_library_compile_definitions_ifdef(
|
|
|
|
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
|
|
|
)
|
2017-10-27 15:43:34 +02:00
|
|
|
|
|
|
|
zephyr_library_sources(
|
|
|
|
net_core.c
|
|
|
|
net_if.c
|
2020-12-25 20:32:42 +01:00
|
|
|
net_timeout.c
|
2017-10-27 15:43:34 +02:00
|
|
|
utils.c
|
|
|
|
)
|
|
|
|
|
2019-08-09 13:49:35 +02:00
|
|
|
if(CONFIG_NET_OFFLOAD)
|
|
|
|
zephyr_library_sources(net_context.c net_pkt.c net_tc.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_MGMT_EVENT net_mgmt.c)
|
|
|
|
|
|
|
|
if(CONFIG_NET_NATIVE)
|
|
|
|
zephyr_library_sources(net_context.c)
|
|
|
|
zephyr_library_sources(net_pkt.c)
|
|
|
|
zephyr_library_sources(net_tc.c)
|
2023-09-21 16:22:06 +02:00
|
|
|
zephyr_library_sources(icmp.c)
|
2022-08-05 18:50:41 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IP connection.c)
|
2017-12-04 11:17:39 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_6LO 6lo.c)
|
2018-07-30 17:28:35 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV4_AUTO ipv4_autoconf.c)
|
2021-04-26 19:03:35 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV4 icmpv4.c ipv4.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV4_IGMP igmp.c)
|
2019-08-09 13:49:35 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV6 icmpv6.c nbr.c
|
|
|
|
ipv6.c ipv6_nbr.c)
|
2018-08-15 13:11:04 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV6_MLD ipv6_mld.c)
|
2018-08-15 13:20:10 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV6_FRAGMENT ipv6_fragment.c)
|
2022-09-15 22:12:11 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV4_FRAGMENT ipv4_fragment.c)
|
2017-12-04 11:17:39 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_ROUTE route.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS net_stats.c)
|
2022-08-05 18:50:41 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_TCP tcp.c)
|
2019-10-16 07:37:48 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_TEST_PROTOCOL tp.c)
|
2022-08-05 18:50:41 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_UDP udp.c)
|
2018-07-23 13:03:11 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_PROMISCUOUS_MODE promiscuous.c)
|
2021-02-24 18:33:46 +01:00
|
|
|
|
2022-08-05 18:59:04 +02:00
|
|
|
# Net Connection Socket Adapters
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_CONNECTION_SOCKETS connection.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_PACKET packet_socket.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_CAN canbus_socket.c)
|
|
|
|
|
2021-02-24 18:33:46 +01:00
|
|
|
if(CONFIG_NET_TCP_ISN_RFC6528)
|
|
|
|
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
|
|
|
|
endif()
|
2019-08-09 13:49:35 +02:00
|
|
|
endif()
|
2017-10-27 15:43:34 +02:00
|
|
|
|
2023-09-27 09:08:08 +02:00
|
|
|
# To get private includes like net_shell.h
|
|
|
|
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/lib)
|
|
|
|
|
2019-10-24 17:08:21 +02:00
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
2020-07-07 08:06:27 +02:00
|
|
|
${ARCH_DIR}/${ARCH}/include
|
2019-10-24 17:08:21 +02:00
|
|
|
)
|