summaryrefslogtreecommitdiffstats
path: root/tmk_core/arm_atsam.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/arm_atsam.mk')
-rw-r--r--tmk_core/arm_atsam.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/arm_atsam.mk b/tmk_core/arm_atsam.mk
index 403ebf3a89..e4bf60e1af 100644
--- a/tmk_core/arm_atsam.mk
+++ b/tmk_core/arm_atsam.mk
@@ -56,4 +56,8 @@ bin: $(BUILD_DIR)/$(TARGET).hex
$(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
flash: bin
+ifneq ($(strip $(PROGRAM_CMD)),)
+ $(PROGRAM_CMD)
+else
$(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)"
+endif