This library is coded with standard POSIX names for socket functions, so make that requirement explicit. Also, switch it from select'ing NET_SOCKETS, to depend'ing on it. This follows the general approach of avoiding unneeded select's in Zephyr, which lead to conflicting dependencies and make debugging dependencies complex overall. In this particular case, it's fair (for a user) to expect that "simple network time protocol" requires networking API, namely sockets, and have that explicitly on in their app configuration, giving better overview of their app config overall. Fixes: #34165 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
20 lines
446 B
Plaintext
20 lines
446 B
Plaintext
# Copyright (c) 2017 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig SNTP
|
|
bool "SNTP (Simple Network Time Protocol)"
|
|
depends on NET_SOCKETS
|
|
depends on NET_SOCKETS_POSIX_NAMES || POSIX_API
|
|
help
|
|
Enable SNTP client library
|
|
|
|
if SNTP
|
|
|
|
module = SNTP
|
|
module-dep = NET_LOG
|
|
module-str = Log level for SNTP
|
|
module-help = Enable debug message of SNTP client library.
|
|
source "subsys/net/Kconfig.template.log_config.net"
|
|
|
|
endif # SNTP
|