diff --git a/makefiles/tools/openocd.inc.mk b/makefiles/tools/openocd.inc.mk index 537275348c..b5d3e36244 100644 --- a/makefiles/tools/openocd.inc.mk +++ b/makefiles/tools/openocd.inc.mk @@ -40,7 +40,8 @@ endif ifneq (,$(OPENOCD_CMD_RESET_HALT)) # Export OPENOCD_CMD_RESET_HALT only to the flash targets - $(call target-export-variables,flash%,OPENOCD_CMD_RESET_HALT) + $(call target-export-variables,flash,OPENOCD_CMD_RESET_HALT) + $(call target-export-variables,flash-only,OPENOCD_CMD_RESET_HALT) endif OPENOCD_DEBUG_TARGETS = debug debugr debug-server