diff --git a/CMakeLists.txt b/CMakeLists.txt index ac7b691cb3b..296e803a845 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -567,9 +567,12 @@ add_custom_command( DEPENDS ${syscalls_subdirs_trigger} ${PARSE_SYSCALLS_HEADER_DEPENDS} ) -add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h}) +add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h}) add_custom_target(${PARSE_SYSCALLS_TARGET} - DEPENDS ${syscalls_json} ${struct_tags_json}) + DEPENDS + ${syscalls_json} + ${subsys_jsonstruct_tags_json} + ) # 64-bit systems do not require special handling of 64-bit system call # parameters or return values, indicate this to the system call boilerplate @@ -595,7 +598,6 @@ add_custom_command(OUTPUT include/generated/syscall_dispatch.c ${syscall_list_h} ${SYSCALL_SPLIT_TIMEOUT_ARG} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${PARSE_SYSCALLS_TARGET} - ${syscalls_json} ) # This is passed into all calls to the gen_kobject_list.py script. @@ -613,7 +615,6 @@ add_custom_command( DEPENDS ${ZEPHYR_BASE}/scripts/gen_kobject_list.py ${PARSE_SYSCALLS_TARGET} - ${struct_tags_json} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) add_custom_target(${DRIVER_VALIDATION_H_TARGET} DEPENDS ${DRV_VALIDATION})