zephyr/lib/posix/Kconfig.clock
Christopher Friedt b600e8a870 posix: timer: build timer.c using the correct kconfig option
Previously timer.c was only built with CONFIG_POSIX_CLOCK=y even
though it has had its own Kconfig symbol (CONFIG_TIMER) for a
very long time.

Make POSIX_CLOCK imply TIMER rather than control whether it is
built, and adjust Kconfig / CMake as necessary.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-01-29 10:28:10 +01:00

12 lines
261 B
Plaintext

# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
config POSIX_CLOCK
bool "POSIX clock and sleep APIs"
default y if POSIX_API
imply TIMER
depends on !NATIVE_LIBC
help
This enables POSIX clock\_\*() and \*sleep() functions.