diff options
author | Jett Rink <jettrink@chromium.org> | 2018-08-28 09:34:29 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-29 16:09:17 -0700 |
commit | 475f67828ff64d5398616a3998f70178b96e2864 (patch) | |
tree | 8c4a923284b82bb9c323b82aab1971f8e190b9bc /core/cortex-m/ec.lds.S | |
parent | f854f9f7c4433952a61b9ecfb77e989f8d3579df (diff) | |
download | chrome-ec-475f67828ff64d5398616a3998f70178b96e2864.tar.gz |
build: print out remaining RAM space
Some boards are pretty tight on RAM space. Print out remain RAM bytes
for each board along with the tightest 3 boards during buildall.
BRANCH=none
BUG=none
TEST=buildall now outputs the tightest boards on RAM.
Change-Id: I819e554400e88937bb937f2ca51daf737588a9a5
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1194342
Reviewed-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Diffstat (limited to 'core/cortex-m/ec.lds.S')
-rw-r--r-- | core/cortex-m/ec.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index cb7a426e60..df7aea5fde 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -355,6 +355,8 @@ SECTIONS ASSERT((__shared_mem_buf + CONFIG_SHAREDMEM_MINIMUM_SIZE) <= (CONFIG_RAM_BASE + CONFIG_RAM_SIZE), "Not enough space for shared memory.") + __ram_free = (CONFIG_RAM_BASE + CONFIG_RAM_SIZE) - + (__shared_mem_buf + CONFIG_SHAREDMEM_MINIMUM_SIZE); /* The linker won't notice if the .data section is too big to fit, * apparently because we're sending it into IRAM, not FLASH. The following |