~ruther/qmk_firmware

ref: 59a5f7de3d37fa23d6058f226997d30ceed566d6 qmk_firmware/platforms/arm_atsam/flash.mk -rw-r--r-- 653 bytes
59a5f7de — Rutherther fix: games layer toggle, add possibility for escape and alt 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Hey Emacs, this is a -*- makefile -*-
##############################################################################
# Architecture or project specific options
#

MDLOADER_CLI ?= mdloader

define EXEC_MDLOADER
	$(MDLOADER_CLI) --first --download $(BUILD_DIR)/$(TARGET).bin --restart
endef

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)
	$(UNSYNC_OUTPUT_CMD) && $(call EXEC_MDLOADER)
else
	$(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)"
endif
Do not follow this link