Platform-dependent size

This commit is contained in:
Romain Goyet
2015-08-30 21:42:09 +02:00
parent b32b47300a
commit c3ed3684a7
3 changed files with 3 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ info:
size: boot.elf
@echo "========= BUILD OUTPUT ========"
@echo "File: $<"
@arm-none-eabi-size $< | tail -n 1 | awk '{print "Code: " $$1 " bytes";print "Data: " $$2 " bytes"; print "Total: " int(($$1+$$2)/1024) " kB (" $$1 + $$2 " bytes)";}'
@$(SIZE) $< | tail -n 1 | awk '{print "Code: " $$1 " bytes";print "Data: " $$2 " bytes"; print "Total: " int(($$1+$$2)/1024) " kB (" $$1 + $$2 " bytes)";}'
@echo "==============================="
else
info:

View File

@@ -1,6 +1,7 @@
CC=clang
CXX=clang++
LD=ld
SIZE=size
#GDB=gdb
#OBJCOPY=$(TOOLCHAIN)-objcopy

View File

@@ -12,6 +12,7 @@ endif
LD=$(TOOLCHAIN)-ld.bfd
GDB=$(TOOLCHAIN)-gdb
OBJCOPY=$(TOOLCHAIN)-objcopy
SIZE=$(TOOLCHAIN)-size
# Flags - Arch
ifeq ($(COMPILER),llvm)