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