Make flash target depend on binary, add flash2 (wlink) target
This commit is contained in:
parent
9b30ef6db6
commit
42e642ddfb
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -57,9 +57,12 @@ $(TARGET).lst : $(TARGET).elf
|
||||||
$(TARGET).hex : $(TARGET).elf
|
$(TARGET).hex : $(TARGET).elf
|
||||||
@$(OBJCOPY) -O ihex $< $(TARGET).hex
|
@$(OBJCOPY) -O ihex $< $(TARGET).hex
|
||||||
|
|
||||||
flash:
|
flash: $(TARGET).bin
|
||||||
minichlink -w $(TARGET).bin flash -b
|
minichlink -w $(TARGET).bin flash -b
|
||||||
|
|
||||||
|
flash2: $(TARGET).bin
|
||||||
|
wlink flash $(TARGET).bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ch32*.[ch]
|
rm -f ch32*.[ch]
|
||||||
rm -f *.{ld,hex,bin,map,lst,elf}
|
rm -f *.{ld,hex,bin,map,lst,elf}
|
||||||
|
|
Loading…
Add table
Reference in a new issue