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:
parent
85f9bf9f1c
commit
598b2e11b2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue