2017-10-27 21:43:34 +08:00
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_include_directories(.)
|
2017-12-05 18:11:29 +08:00
|
|
|
zephyr_library_compile_definitions_ifdef(
|
|
|
|
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
|
|
|
)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
|
|
|
zephyr_library_sources(
|
|
|
|
net_context.c
|
|
|
|
net_core.c
|
|
|
|
net_if.c
|
|
|
|
net_pkt.c
|
2018-02-07 21:00:08 +08:00
|
|
|
net_tc.c
|
2017-10-27 21:43:34 +08:00
|
|
|
utils.c
|
|
|
|
)
|
|
|
|
|
2017-12-04 18:17:39 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_6LO 6lo.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_DHCPV4 dhcpv4.c)
|
2018-07-30 23:28:35 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV4_AUTO ipv4_autoconf.c)
|
2017-12-04 18:17:39 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV4 icmpv4.c ipv4.c)
|
2018-08-15 18:58:57 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV6 icmpv6.c nbr.c ipv6.c ipv6_nbr.c)
|
2018-08-15 19:11:04 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV6_MLD ipv6_mld.c)
|
2018-08-15 19:20:10 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_IPV6_FRAGMENT ipv6_fragment.c)
|
2017-12-04 18:17:39 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_MGMT_EVENT net_mgmt.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_ROUTE route.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_RPL rpl.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_RPL_MRHOF rpl-mrhof.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_RPL_OF0 rpl-of0.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_SHELL net_shell.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS net_stats.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_TCP connection.c tcp.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_TRICKLE trickle.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_UDP connection.c udp.c)
|
2018-07-23 19:03:11 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_PROMISCUOUS_MODE promiscuous.c)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2017-12-05 18:11:29 +08:00
|
|
|
if(CONFIG_NET_SHELL)
|
2018-01-29 19:59:07 +08:00
|
|
|
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/l2)
|
2017-12-05 18:11:29 +08:00
|
|
|
zephyr_link_interface_ifdef(CONFIG_MBEDTLS mbedTLS)
|
2017-10-27 21:43:34 +08:00
|
|
|
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
|
2017-12-05 18:11:29 +08:00
|
|
|
endif()
|