Commit 09aa3b1 authored and committed Jun 12, 2020
1 parent 626da49 commit 09aa3b1 Copy full SHA for 09aa3b1
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,6 @@ ifndef TEENSY_LOADER_CLI
98
98
endif
99
99
endif
100
100
101
- # Program the device.
102
- program : $(BUILD_DIR ) /$(TARGET ) .hex $(BUILD_DIR ) /$(TARGET ) .eep check-size
103
- $(PROGRAM_CMD )
104
-
105
101
define EXEC_TEENSY
106
102
$(TEENSY_LOADER_CLI ) -mmcu=$(MCU ) -w -v $(BUILD_DIR ) /$(TARGET ) .hex
107
103
endef
@@ -314,7 +310,9 @@ production: $(BUILD_DIR)/$(TARGET).hex bootloader cpfirmware
314
310
$(SIZE ) $(TARGET ) .hex $(TARGET ) _bootloader.hex $(TARGET ) _production.hex
315
311
316
312
flash : $(BUILD_DIR ) /$(TARGET ) .hex check-size cpfirmware
317
- ifeq ($(strip $(BOOTLOADER ) ) , caterina)
313
+ ifneq ($(strip $(PROGRAM_CMD ) ) ,)
314
+ $(PROGRAM_CMD)
315
+ else ifeq ($(strip $(BOOTLOADER)), caterina)
318
316
$(call EXEC_AVRDUDE)
319
317
else ifeq ($(strip $(BOOTLOADER)), halfkay)
320
318
$(call EXEC_TEENSY)
Original file line number Diff line number Diff line change @@ -326,7 +326,9 @@ bin: $(BUILD_DIR)/$(TARGET).bin sizeafter
326
326
327
327
328
328
flash : $(BUILD_DIR ) /$(TARGET ) .bin cpfirmware sizeafter
329
- ifeq ($(strip $(BOOTLOADER ) ) ,dfu)
329
+ ifneq ($(strip $(PROGRAM_CMD ) ) ,)
330
+ $(PROGRAM_CMD)
331
+ else ifeq ($(strip $(BOOTLOADER)),dfu)
330
332
$(call EXEC_DFU_UTIL)
331
333
else ifeq ($(strip $(MCU_FAMILY)),KINETIS)
332
334
$(call EXEC_TEENSY)
You can’t perform that action at this time.
0 commit comments