mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-13 19:43:34 -07:00
SDK: Better support for cmsis-dap --nobuild
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user