1
0
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:
Alexandre Abadie 2020-03-26 10:00:05 +01:00
parent 0e86aae445
commit 308ee9b31c
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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)