posix: conditionally generate posix_clock syscall header

If POSIX_TIMERS is not configured, there is no reason to
generate syscall headers from posix_clock.h .

Make header generation conditional on POSIX_TIMERS in
this case.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
Chris Friedt 2024-06-03 12:38:21 -04:00 committed by David Leach
parent 85f9bf9f1c
commit 598b2e11b2
1 changed files with 1 additions and 3 deletions

View File

@ -2,9 +2,7 @@
set(GEN_DIR ${ZEPHYR_BINARY_DIR}/include/generated)
zephyr_syscall_header(
posix_clock.h
)
zephyr_syscall_header_ifdef(CONFIG_POSIX_TIMERS posix_clock.h)
if(CONFIG_POSIX_API)
zephyr_include_directories(${ZEPHYR_BASE}/include/zephyr/posix)