Add avr-size invocation
This commit is contained in:
parent
3f284654ea
commit
e24dfa6e65
2
Makefile
2
Makefile
@ -5,6 +5,7 @@ override LDFLAGS =
|
|||||||
CC = avr-gcc
|
CC = avr-gcc
|
||||||
OBJCOPY = avr-objcopy
|
OBJCOPY = avr-objcopy
|
||||||
OBJDUMP = avr-objdump
|
OBJDUMP = avr-objdump
|
||||||
|
SIZE = avr-size
|
||||||
AVRDUDE_ARGS =
|
AVRDUDE_ARGS =
|
||||||
|
|
||||||
ifdef BOARD
|
ifdef BOARD
|
||||||
@ -31,6 +32,7 @@ deps.mk: *.c drivers/*.c
|
|||||||
|
|
||||||
%.elf: %.o
|
%.elf: %.o
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
||||||
|
$(SIZE) $@
|
||||||
|
|
||||||
%.lst: %.elf
|
%.lst: %.elf
|
||||||
$(OBJDUMP) -h -S $< > $@
|
$(OBJDUMP) -h -S $< > $@
|
||||||
|
Loading…
Reference in New Issue
Block a user