zephyr/subsys/net/lib/config/CMakeLists.txt
Paul Sokolovsky 106a0f7306 net: lib: config: Add SYS_INIT handler to set clock from SNTP
With this feature enabled (via CONFIG_NET_CONFIG_CLOCK_SNTP_INIT), an
application will automagically get correct absolute time via POSIX
functions like time(), gettimeofday(), etc.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-10-28 13:04:35 +02:00

23 lines
507 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_compile_definitions_ifdef(
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
)
zephyr_library_sources_ifdef(CONFIG_NET_CONFIG_SETTINGS init.c)
if(CONFIG_NET_CONFIG_SETTINGS)
zephyr_library_sources_ifdef(
CONFIG_NET_L2_IEEE802154
ieee802154_settings.c
)
zephyr_library_sources_ifdef(
CONFIG_NET_L2_BT
bt_settings.c
)
endif()
zephyr_library_sources_ifdef(CONFIG_NET_CONFIG_CLOCK_SNTP_INIT init_clock_sntp.c)