summaryrefslogtreecommitdiff
path: root/hw/bsp/imxrt
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-05-15 16:51:06 +0700
committerhathach <[email protected]>2023-05-15 23:34:24 +0700
commitd7175ad834ff80978a560db9c3a5e21b0716029e (patch)
treeb499eadfb5fec6d0cca0e997fe03f94a3a1ea0a8 /hw/bsp/imxrt
parent9f5b08dc93176485c5a4d9ce58271e22f765d976 (diff)
update nrf cmake and make to support nrf5340 (pca10095)
Diffstat (limited to 'hw/bsp/imxrt')
-rw-r--r--hw/bsp/imxrt/family.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/bsp/imxrt/family.cmake b/hw/bsp/imxrt/family.cmake
index 4881f9c0f..77ac05c87 100644
--- a/hw/bsp/imxrt/family.cmake
+++ b/hw/bsp/imxrt/family.cmake
@@ -130,6 +130,7 @@ function(family_configure_target TARGET)
#---------- Flash ----------
# Flash using pyocd
add_custom_target(${TARGET}-pyocd
+ DEPENDS ${TARGET}
COMMAND pyocd flash -t ${PYOCD_TARGET} $<TARGET_FILE:${TARGET}>
)
@@ -139,6 +140,7 @@ function(family_configure_target TARGET)
# realpath error: No such file or directory
execute_process(COMMAND which LinkServer OUTPUT_VARIABLE LINKSERVER_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
add_custom_target(${TARGET}-nxplink
+ DEPENDS ${TARGET}
COMMAND ${LINKSERVER_PATH} flash ${NXPLINK_DEVICE} load $<TARGET_FILE:${TARGET}>
)