mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Platform-dependent size
This commit is contained in:
2
Makefile
2
Makefile
@@ -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:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
CC=clang
|
||||
CXX=clang++
|
||||
LD=ld
|
||||
SIZE=size
|
||||
#GDB=gdb
|
||||
#OBJCOPY=$(TOOLCHAIN)-objcopy
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ endif
|
||||
LD=$(TOOLCHAIN)-ld.bfd
|
||||
GDB=$(TOOLCHAIN)-gdb
|
||||
OBJCOPY=$(TOOLCHAIN)-objcopy
|
||||
SIZE=$(TOOLCHAIN)-size
|
||||
|
||||
# Flags - Arch
|
||||
ifeq ($(COMPILER),llvm)
|
||||
|
||||
Reference in New Issue
Block a user