From 7843b5a28d4d1eeb6b68846f9d2c659ddd8cedfa Mon Sep 17 00:00:00 2001 From: Scott Smith Date: Thu, 11 Nov 2021 08:51:35 -0800 Subject: [PATCH] Print BSS and RAM4 totals at the end of make. (#3527) If java is unable to run, don't error out the Makefile, just complain a little and move on. Until the gcc_map_reader actually works with RAM4, we print it manually. --- firmware/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/Makefile b/firmware/Makefile index a22d6ac563..c7726dfa37 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -409,3 +409,7 @@ openblt_clean: # Enable precompiled header include rusefi_pch.mk + +POST_MAKE_ALL_RULE_HOOK: $(BUILDDIR)/$(PROJECT).elf + @java -jar ../java_tools/gcc_map_reader.jar $(BUILDDIR)/$(PROJECT).map | grep Total || echo Unable to run gcc_map_reader + @$(TRGT)objdump -h $(BUILDDIR)/$(PROJECT).elf | grep -w ram4