Skip to content

Commit 34ea140

Browse files
committed
ports: fomu: build dfu as part of Makefile
Now that we have a replacement for `dfu-suffix`, construct a dfu image rather than a UF2 image. Signed-off-by: Sean Cross <[email protected]>
1 parent c91d364 commit 34ea140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ports/litex/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_MOD) $(SRC_COMMON_HAL_EXPANDED) $(S
171171
SRC_QSTR_PREPROCESSOR +=
172172

173173

174-
all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2
174+
all: $(BUILD)/firmware.bin $(BUILD)/firmware.dfu
175175

176176
$(BUILD)/firmware.elf: $(OBJ)
177177
$(STEPECHO) "LINK $@"
@@ -188,9 +188,9 @@ $(BUILD)/firmware.hex: $(BUILD)/firmware.elf
188188
$(Q)$(OBJCOPY) -O ihex $^ $@
189189
# $(Q)$(OBJCOPY) -O ihex -j .vectors -j .text -j .data $^ $@
190190

191-
$(BUILD)/firmware.uf2: $(BUILD)/firmware.hex
191+
$(BUILD)/firmware.dfu: $(BUILD)/firmware.bin
192192
$(ECHO) "Create $@"
193-
$(PYTHON3) $(TOP)/tools/uf2/utils/uf2conv.py -f 0xADA00001 -c -o "$(BUILD)/firmware.uf2" $^
193+
$(PYTHON3) $(TOP)/tools/dfu-suffix.py -b $^ -D 0x1209:0x5bf0 "$(BUILD)/firmware.dfu"
194194

195195
include $(TOP)/py/mkrules.mk
196196

0 commit comments

Comments
 (0)