Explorar el Código

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

Joel Elkins hace 4 años
padre
commit
070240f212
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      tmk_core/arm_atsam.mk

+ 4 - 0
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