From ab55efed2d48dd8d60dcfc4152c10b2c7a9cb185 Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Fri, 22 Feb 2019 13:34:30 -0800 Subject: Print ELF size after build Signed-off-by: Nathaniel Graff --- scripts/standalone.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/standalone.mk b/scripts/standalone.mk index 52926ac..23e2ca7 100644 --- a/scripts/standalone.mk +++ b/scripts/standalone.mk @@ -52,12 +52,14 @@ RISCV_GXX := $(CROSS_COMPILE)-g++ RISCV_OBJDUMP := $(CROSS_COMPILE)-objdump RISCV_GDB := $(CROSS_COMPILE)-gdb RISCV_AR := $(CROSS_COMPILE)-ar +RISCV_SIZE := $(CROSS_COMPILE)-size else RISCV_GCC := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-gcc) RISCV_GXX := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-g++) RISCV_OBJDUMP := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-objdump) RISCV_GDB := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-gdb) RISCV_AR := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-ar) +RISCV_SIZE := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-size) PATH := $(abspath $(RISCV_PATH)/bin):$(PATH) endif @@ -96,6 +98,8 @@ $(PROGRAM_ELF): \ LDLIBS="-Wl,--start-group -lc -lgcc -lmetal -lmetal-gloss -Wl,--end-group" touch -c $@ + $(RISCV_SIZE) $@ + .PHONY: clean-software clean-software: $(MAKE) -C $(SRC_DIR) clean -- cgit v1.2.3