]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/chibios.mk
Clueboard 60% support (#1746)
[qmk_firmware.git] / tmk_core / chibios.mk
index eb0c40138a272112c1555d4dc4797d73cd45fce3..c938eaeb9010ad64b3856c5ff1d2efb1cf37c37d 100644 (file)
@@ -143,7 +143,7 @@ MCUFLAGS = -mcpu=$(MCU)
 
 DEBUG = gdb
 
-DFU_ARGS =
+DFU_ARGS ?=
 ifneq ("$(SERIAL)","")
        DFU_ARGS += -S $(SERIAL)
 endif
@@ -151,5 +151,10 @@ endif
 # List any extra directories to look for libraries here.
 EXTRALIBDIRS = $(RULESPATH)/ld
 
+DFU_UTIL ?= dfu-util
+
 dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter
-       dfu-util $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin
+       $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin
+
+bin: $(BUILD_DIR)/$(TARGET).bin sizeafter
+       $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;