Skip to content

Commit 6a61d5f

Browse files
SebastianBoegalak
authored andcommitted
cmake: Fix the dependency between qemu and the elf file
I can't explain why "make run" worked before, but after this patch it should definitely work. Signed-off-by: Sebastian Bøe <[email protected]>
1 parent 494e173 commit 6a61d5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/qemu/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ if(EMU_PLATFORM)
159159
${QEMU_EXTRA_FLAGS}
160160
${MORE_FLAGS_FOR_${target}}
161161
-kernel $<TARGET_FILE:${logical_target_for_zephyr_elf}>
162+
DEPENDS ${logical_target_for_zephyr_elf}
162163
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
163164
COMMENT "${QEMU_PIPE_COMMENT}[QEMU] CPU: ${QEMU_CPU_TYPE_${ARCH}}"
164165
USES_TERMINAL

0 commit comments

Comments
 (0)