Print elf size if ELF_SIZE is defined
This commit is contained in:
parent
36b290a1cd
commit
470887eddd
2 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,7 @@ CC = avr-gcc
|
|||
LD = avr-gcc
|
||||
AS = avr-as
|
||||
AR = avr-ar
|
||||
ELF_SIZE = avr-size -C --mcu=$(MCU)
|
||||
OBJCOPY = avr-objcopy
|
||||
STRIP = avr-strip
|
||||
CFLAGSNO = -Wall -mmcu=$(MCU) -gdwarf-2 -fno-strict-aliasing \
|
||||
|
|
|
@ -25,8 +25,12 @@ endif
|
|||
#copy output to e.g. webserver-nano.sky, raven-webserver.avr-raven
|
||||
$(WITH_WEBSERVER) : $(CONTIKI_PROJECT)
|
||||
cp $(CONTIKI_PROJECT).$(TARGET) $(WITH_WEBSERVER).$(TARGET)
|
||||
@if (test -n "$(ELF_SIZE)");then $(ELF_SIZE) $(WITH_WEBSERVER).$(TARGET);fi
|
||||
else
|
||||
APPS=webserver
|
||||
|
||||
all : $(CONTIKI_PROJECT)
|
||||
@if (test -n "$(ELF_SIZE)");then $(ELF_SIZE) $(CONTIKI_PROJECT).$(TARGET);fi
|
||||
endif
|
||||
|
||||
UIP_CONF_IPV6=1
|
||||
|
|
Loading…
Reference in a new issue