From 070240f2123f91c51a3cb146d601cf5b61beebfe Mon Sep 17 00:00:00 2001 From: Joel Elkins Date: Sun, 3 Jan 2021 14:30:22 -0600 Subject: arm_atsam: Use PROGRAM_CMD for :flash target if set (#11424) --- tmk_core/arm_atsam.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmk_core/arm_atsam.mk') 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 -- cgit v1.2.1