Skip to content

Commit a4dbb42

Browse files
committed
minimal/Makefile: Split rule for firmware.bin generation.
1 parent 197a572 commit a4dbb42

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

minimal/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ $(BUILD)/firmware.elf: $(OBJ)
6868
$(Q)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
6969
$(Q)$(SIZE) $@
7070

71-
$(BUILD)/firmware.dfu: $(BUILD)/firmware.elf
72-
$(ECHO) "Create $@"
71+
$(BUILD)/firmware.bin: $(BUILD)/firmware.elf
7372
$(Q)$(OBJCOPY) -O binary -j .isr_vector -j .text -j .data $^ $(BUILD)/firmware.bin
73+
74+
$(BUILD)/firmware.dfu: $(BUILD)/firmware.bin
75+
$(ECHO) "Create $@"
7476
$(Q)$(PYTHON) $(DFU) -b 0x08000000:$(BUILD)/firmware.bin $@
7577

7678
deploy: $(BUILD)/firmware.dfu

0 commit comments

Comments
 (0)