Permalink
Browse files

minimal/Makefile: Split rule for firmware.bin generation.

  • Loading branch information...
1 parent 197a572 commit a4dbb4230a0e4b2ce5719ddc3b953516a32d8507 @pfalcon pfalcon committed Oct 22, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 minimal/Makefile
View
@@ -68,9 +68,11 @@ $(BUILD)/firmware.elf: $(OBJ)
$(Q)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
$(Q)$(SIZE) $@
-$(BUILD)/firmware.dfu: $(BUILD)/firmware.elf
- $(ECHO) "Create $@"
+$(BUILD)/firmware.bin: $(BUILD)/firmware.elf
$(Q)$(OBJCOPY) -O binary -j .isr_vector -j .text -j .data $^ $(BUILD)/firmware.bin
+
+$(BUILD)/firmware.dfu: $(BUILD)/firmware.bin
+ $(ECHO) "Create $@"
$(Q)$(PYTHON) $(DFU) -b 0x08000000:$(BUILD)/firmware.bin $@
deploy: $(BUILD)/firmware.dfu

0 comments on commit a4dbb42

Please sign in to comment.