create binary demo.bin by default (in order to copy to a NUCLEO board)

This commit is contained in:
Friedrich Hagedorn 2016-07-01 20:50:08 +02:00
parent e2791f4f88
commit 964495f489

View file

@ -125,7 +125,7 @@ endif
.PHONY: all dirs program debug template clean
all: $(TARGET).elf
all: $(TARGET).bin
-include $(DEPS)
@ -146,6 +146,10 @@ $(TARGET).elf: $(OBJS)
@echo "[SIZE] $(TARGET).elf"
$(SIZE) $(TARGET).elf
$(TARGET).bin: $(TARGET).elf
@echo "[OBJCOPY] $(TARGET).bin"
$Q$(OBJCOPY) -O binary $< $@
openocd:
$(OCD) -s $(OCD_DIR) $(OCDFLAGS)
@ -179,6 +183,7 @@ template: cube src
cp -i $(CUBE_DIR)/Projects/$(BOARD)/$(EXAMPLE)/TrueSTUDIO/$(BOARD)/$(MCU_UC)_FLASH.ld $(MCU_LC).ld
clean:
@echo "[RM] $(TARGET).bin"; rm -f $(TARGET).bin
@echo "[RM] $(TARGET).elf"; rm -f $(TARGET).elf
@echo "[RM] $(TARGET).map"; rm -f $(TARGET).map
@echo "[RM] $(TARGET).lst"; rm -f $(TARGET).lst