summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-07-31 16:58:19 -0600
committerCommit Bot <commit-bot@chromium.org>2020-08-05 19:58:54 +0000
commit27fb6197d72e36af030eec3dddce815eead060fe (patch)
treeda89ea10ca152727cec737af4e40fc332bd2c603 /Makefile.rules
parentffada375c6362de2f80255d6abb8bad35ccc8c0d (diff)
downloadchrome-ec-27fb6197d72e36af030eec3dddce815eead060fe.tar.gz
linker: change symbol used to track available flash
Change the linker symbol used to track available flash from __image_size to __flash_used. __image_size is now only used on the struct image_data header. BUG=b:160330682 BRANCH=none TEST=make buildall TEST=Run compare_build.sh against the following boards: cortex-m: volteer (npcx chipset) cortex-m0: honeybuns (stm32f0 chipset) minute-ia: not changed nds32: waddledee (it83xx) riscv-rv32i: asurada (i8xxx2) Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I94f5b4827cc0da1055520685cfeb1fafc0119e1c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2334389 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 15f87d1c63..209307047b 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -408,10 +408,10 @@ ifeq ($(V),0)
cmd_size=
else
cmd_size=$(Q)awk '\
- /__image_size =/ {image_size = strtonum($$1)} \
+ /__flash_used =/ {flash_used = strtonum($$1)} \
/^FLASH/ {flash_size = strtonum($$3)} \
/__ram_free =/ {ram_free = strtonum($$1)} \
- END {room_free = flash_size - image_size; \
+ END {room_free = flash_size - flash_used; \
print ram_free > "$(out)/$(1)/space_free_ram.txt"; \
printf " *** "; \
if (flash_size > 0) { \