Libraries that use mbedTLS have been invoking zephyr_link_interface(mbedTLS). It is not clear what the intent of this code has been, but it is redundant with the mbedTLS build scripts, so it can be safely removed. In addition to being redundant, it causes problems as it introduces an ordering dependency, with this code mbedTLS must be declared before users of mbedTLS are declared. Since this code is redundant, this ordering dependency is also unnecessary. This code is believed to have been added early on by accident and copied through cargo-cult programming since. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
19 lines
527 B
CMake
19 lines
527 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(.)
|
|
|
|
if(NOT CONFIG_NET_SOCKETS_OFFLOAD)
|
|
zephyr_sources(
|
|
getaddrinfo.c
|
|
getnameinfo.c
|
|
sockets.c
|
|
sockets_select.c
|
|
sockets_misc.c
|
|
)
|
|
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_SOCKOPT_TLS sockets_tls.c)
|
|
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_PACKET sockets_packet.c)
|
|
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_CAN sockets_can.c)
|
|
endif()
|
|
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_OFFLOAD socket_offload.c)
|
|
|
|
zephyr_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
|