mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
makefiles/openocd: export OPENOCD_CMD_RESET_RUN only when required
This commit is contained in:
parent
0e86aae445
commit
308ee9b31c
@ -25,6 +25,11 @@ $(call target-export-variables,$(OPENOCD_TARGETS),OPENOCD_ADAPTER_INIT)
|
||||
# Export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST to required targets
|
||||
$(call target-export-variables,$(OPENOCD_TARGETS),OPENOCD_RESET_USE_CONNECT_ASSERT_SRST)
|
||||
|
||||
ifneq (,$(OPENOCD_CMD_RESET_RUN))
|
||||
# Export OPENOCD_CMD_RESET_RUN only to the reset target
|
||||
$(call target-export-variables,reset,OPENOCD_CMD_RESET_RUN)
|
||||
endif
|
||||
|
||||
ifneq (,$(OPENOCD_PRE_VERIFY_CMDS))
|
||||
# Export OPENOCD_PRE_VERIFY_CMDS only to the flash/flash-only target
|
||||
$(call target-export-variables,flash%,OPENOCD_PRE_VERIFY_CMDS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user