Skip to content

Commit 6fda6e1

Browse files
committed
Update jlink script path.
1 parent 2396fec commit 6fda6e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hw/bsp/family_support.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function(family_flash_jlink TARGET)
373373
endif ()
374374

375375
file(GENERATE
376-
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_$<CONFIG>.jlink
376+
OUTPUT $<TARGET_FILE_DIR:${TARGET}>/${TARGET}.jlink
377377
CONTENT "halt
378378
loadfile $<TARGET_FILE:${TARGET}>
379379
r
@@ -383,7 +383,7 @@ exit"
383383

384384
add_custom_target(${TARGET}-jlink
385385
DEPENDS ${TARGET}
386-
COMMAND ${JLINKEXE} -device ${JLINK_DEVICE} -if swd -JTAGConf -1,-1 -speed auto -CommandFile ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${TARGET}.jlink
386+
COMMAND ${JLINKEXE} -device ${JLINK_DEVICE} -if swd -JTAGConf -1,-1 -speed auto -CommandFile $<TARGET_FILE_DIR:${TARGET}>/${TARGET}.jlink
387387
)
388388
endfunction()
389389

0 commit comments

Comments
 (0)