From 598b2e11b2b482a21d15bedecc22df5a4723fcd6 Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Mon, 3 Jun 2024 12:38:21 -0400 Subject: [PATCH] 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 --- lib/posix/options/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/posix/options/CMakeLists.txt b/lib/posix/options/CMakeLists.txt index c67ef4807ac..b4981a62eac 100644 --- a/lib/posix/options/CMakeLists.txt +++ b/lib/posix/options/CMakeLists.txt @@ -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)