Add dfu-util command for programming
Also add .bin generation, which is needed for dfu-util.
This commit is contained in:
@@ -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
|
||||
EXTRALIBDIRS = $(RULESPATH)/ld
|
||||
|
||||
dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter
|
||||
dfu-util -D $(BUILD_DIR)/$(TARGET).bin
|
||||
Reference in New Issue
Block a user