aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/chibios.mk
diff options
context:
space:
mode:
authorGravatar Fred Sundvik <fsundvik@gmail.com>2016-07-05 19:28:17 +0300
committerGravatar Fred Sundvik <fsundvik@gmail.com>2016-07-05 19:28:17 +0300
commitf9a6e34c28f6de0f6ec505144acc287b90326436 (patch)
treeb7d4bc00bba07e3b0e7c298e57462b80236da7c9 /tmk_core/chibios.mk
parentb4cd0cfd15bf844ef5c8840592da55ceac342c9a (diff)
downloadqmk_firmware-f9a6e34c28f6de0f6ec505144acc287b90326436.tar.gz
Add dfu-util command for programming
Also add .bin generation, which is needed for dfu-util.
Diffstat (limited to 'tmk_core/chibios.mk')
-rw-r--r--tmk_core/chibios.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk
index 0abb933a8..cb67ac6f2 100644
--- a/tmk_core/chibios.mk
+++ b/tmk_core/chibios.mk
@@ -113,6 +113,7 @@ AR = arm-none-eabi-ar
NM = arm-none-eabi-nm
HEX = $(OBJCOPY) -O $(FORMAT)
EEP =
+BIN = $(OBJCOPY) -O binary
THUMBFLAGS = -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB
@@ -151,4 +152,7 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH)/boards/$(BOARD)/bootloader_defs.h)","")
endif
# List any extra directories to look for libraries here.
-EXTRALIBDIRS = $(RULESPATH)/ld \ No newline at end of file
+EXTRALIBDIRS = $(RULESPATH)/ld
+
+dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter
+ dfu-util -D $(BUILD_DIR)/$(TARGET).bin \ No newline at end of file