SDK: Better support for cmsis-dap --nobuild

This commit is contained in:
Willy-JL
2025-04-23 06:40:45 +01:00
parent bc4bf99f77
commit 4d247f276c
3 changed files with 16 additions and 9 deletions
+5 -2
View File
@@ -177,6 +177,7 @@ firmware_debug = dist_env.PhonyTarget(
GDBOPTS="${GDBOPTS_BASE}",
GDBREMOTE="${OPENOCD_GDB_PIPE}",
)
dist_env.Depends(firmware_debug, enable_debug_target)
blackmagic_target = dist_env.PhonyTarget(
"blackmagic",
@@ -197,21 +198,23 @@ debug_other_opts = [
"fw-version",
]
dist_env.PhonyTarget(
debug_other_target = dist_env.PhonyTarget(
"debug_other",
"${GDBPYCOM}",
GDBOPTS="${GDBOPTS_BASE}",
GDBREMOTE="${OPENOCD_GDB_PIPE}",
GDBPYOPTS=debug_other_opts,
)
dist_env.Depends(debug_other_target, enable_debug_target)
dist_env.PhonyTarget(
debug_other_blackmagic_target = dist_env.PhonyTarget(
"debug_other_blackmagic",
"${GDBPYCOM}",
GDBOPTS="${GDBOPTS_BASE} ${GDBOPTS_BLACKMAGIC}",
GDBREMOTE="${BLACKMAGIC_ADDR}",
GDBPYOPTS=debug_other_opts,
)
dist_env.Depends(debug_other_blackmagic_target, enable_debug_target)
flash_usb_full = dist_env.UsbInstall(
dist_env["UFBT_STATE_DIR"].File("usbinstall"),