diff options
author | Joel Elkins <joel@elkins.co> | 2021-01-03 14:30:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 07:30:22 +1100 |
commit | 070240f2123f91c51a3cb146d601cf5b61beebfe (patch) | |
tree | 240507f678cf5471f67667317ed9c7711c003866 | |
parent | f3ac792c096c10c9dd5004e6e06aad60710ef599 (diff) | |
download | qmk_firmware-070240f2123f91c51a3cb146d601cf5b61beebfe.tar.gz qmk_firmware-070240f2123f91c51a3cb146d601cf5b61beebfe.zip |
arm_atsam: Use PROGRAM_CMD for :flash target if set (#11424)
-rw-r--r-- | tmk_core/arm_atsam.mk | 4 |
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 |