summaryrefslogtreecommitdiff
path: root/tmk_core/arm_atsam.mk
diff options
context:
space:
mode:
authorJoel Elkins <joel@elkins.co>2021-01-03 14:30:22 -0600
committerDrashna Jael're <drashna@live.com>2021-01-12 22:46:13 -0800
commit2a02ef56eec56df3252f5ab3c78ed859dde6aea4 (patch)
tree4930f0f071127f99d9e08adc55da05c9ad3680dd /tmk_core/arm_atsam.mk
parenta16e9c54d92f3bfca7ee4fc9116899a440d600a3 (diff)
arm_atsam: Use PROGRAM_CMD for :flash target if set (#11424)
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