zephyr/subsys/net/lib/sockets/CMakeLists.txt
Jani Hirsimäki bd40cb48d9 net: socket: packet: using pckt sckt for passing the PPP dialup data
With these changes, dial up Zephyr application/driver can use
socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW) for creating
a socket for sending/receiving data to/from ppp net link, i.e.
packet is going to/from PPP L2.

Signed-off-by: Jani Hirsimäki <jani.hirsimaki@nordicsemi.no>
2021-04-01 09:43:56 +03:00

38 lines
886 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(.)
zephyr_sources(
getaddrinfo.c
sockets.c
sockets_select.c
)
if(NOT CONFIG_NET_SOCKETS_OFFLOAD)
zephyr_sources(
getnameinfo.c
sockets_misc.c
)
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_CAN sockets_can.c)
endif()
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_PACKET sockets_packet.c)
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_OFFLOAD socket_offload.c)
if (CONFIG_NET_SOCKETS_SOCKOPT_TLS AND NOT CONFIG_NET_SOCKETS_OFFLOAD_TLS)
zephyr_sources(sockets_tls.c)
endif()
if(CONFIG_NET_SOCKETS_NET_MGMT)
zephyr_sources(sockets_net_mgmt.c)
zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
endif()
if(CONFIG_SOCKS)
zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/lib/socks)
endif()
zephyr_sources_ifdef(CONFIG_NET_SOCKETPAIR socketpair.c)
zephyr_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)