diff options
| author | Sean Cross <sean@xobs.io> | 2020-03-31 11:42:55 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2020-03-31 11:42:55 +0800 |
| commit | 34ea1407837742668091ddfa1c529d81d740281d (patch) | |
| tree | 18c16bdbb9849e81d3e5bea502b4b74d4df8a471 /ports/litex | |
| parent | c91d364a58118100871acd5a195b73c3bbbe5141 (diff) | |
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 <sean@xobs.io>
Diffstat (limited to 'ports/litex')
| -rw-r--r-- | ports/litex/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/litex/Makefile b/ports/litex/Makefile index b3a57e154..de1124aca 100644 --- a/ports/litex/Makefile +++ b/ports/litex/Makefile @@ -171,7 +171,7 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_MOD) $(SRC_COMMON_HAL_EXPANDED) $(S SRC_QSTR_PREPROCESSOR += -all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2 +all: $(BUILD)/firmware.bin $(BUILD)/firmware.dfu $(BUILD)/firmware.elf: $(OBJ) $(STEPECHO) "LINK $@" @@ -188,9 +188,9 @@ $(BUILD)/firmware.hex: $(BUILD)/firmware.elf $(Q)$(OBJCOPY) -O ihex $^ $@ # $(Q)$(OBJCOPY) -O ihex -j .vectors -j .text -j .data $^ $@ -$(BUILD)/firmware.uf2: $(BUILD)/firmware.hex +$(BUILD)/firmware.dfu: $(BUILD)/firmware.bin $(ECHO) "Create $@" - $(PYTHON3) $(TOP)/tools/uf2/utils/uf2conv.py -f 0xADA00001 -c -o "$(BUILD)/firmware.uf2" $^ + $(PYTHON3) $(TOP)/tools/dfu-suffix.py -b $^ -D 0x1209:0x5bf0 "$(BUILD)/firmware.dfu" include $(TOP)/py/mkrules.mk |
