Skip to content

Commit

Permalink
:flash: print bootloader (qmk#18569)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Oct 3, 2022
1 parent 9ecd6eb commit cc1565f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions platforms/arm_atsam/flash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mdloader: bin
$(call EXEC_MDLOADER)

flash: bin
$(SILENT) || printf "Flashing for bootloader: $(BLUE)$(BOOTLOADER)$(NO_COLOR)\n"
ifneq ($(strip $(PROGRAM_CMD)),)
$(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
else ifeq ($(strip $(ARM_ATSAM)),SAMD51J18A)
Expand Down
3 changes: 2 additions & 1 deletion platforms/avr/flash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ endef
hid_bootloader: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
$(call EXEC_HID_LUFA)

flash: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
flash: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
$(SILENT) || printf "Flashing for bootloader: $(BLUE)$(BOOTLOADER)$(NO_COLOR)\n"
ifneq ($(strip $(PROGRAM_CMD)),)
$(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
else ifeq ($(strip $(BOOTLOADER)), caterina)
Expand Down
2 changes: 1 addition & 1 deletion platforms/chibios/flash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ endef
teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter
$(call EXEC_TEENSY)


flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter
$(SILENT) || printf "Flashing for bootloader: $(BLUE)$(BOOTLOADER)$(NO_COLOR)\n"
ifneq ($(strip $(PROGRAM_CMD)),)
$(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
else ifeq ($(strip $(BOOTLOADER)),kiibohd)
Expand Down

0 comments on commit cc1565f

Please sign in to comment.