cmake: Fix missing dependency

KOBJ_OTYPE should depend on any changes to the tool that generates it,
gen_kobject_list.py.

Signed-off-by: Phil Erwin <erwin@lexmark.com>
This commit is contained in:
Phil Erwin 2019-04-29 14:30:36 -04:00 committed by Kumar Gala
parent b364b841cc
commit ef621160f8
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ function(gen_kobj gen_dir_out)
--kobj-otype-output ${KOBJ_OTYPE}
--kobj-size-output ${KOBJ_SIZE}
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
DEPENDS $ENV{ZEPHYR_BASE}/scripts/gen_kobject_list.py
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_custom_target(${KOBJ_TYPES_H_TARGET} DEPENDS ${KOBJ_TYPES} ${KOBJ_OTYPE})