1
0
Fork 0

arm_atsam: Use PROGRAM_CMD for :flash target if set (#11424)

This commit is contained in:
Joel Elkins 2021-01-03 14:30:22 -06:00 committed by GitHub
parent f3ac792c09
commit 070240f212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,4 +56,8 @@ bin: $(BUILD_DIR)/$(TARGET).hex
$(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin; $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
flash: bin flash: bin
ifneq ($(strip $(PROGRAM_CMD)),)
$(PROGRAM_CMD)
else
$(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)" $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)"
endif