diff options
author | Yuval Peress <peress@chromium.org> | 2021-02-17 13:00:37 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-26 21:46:53 +0000 |
commit | c4538718931382f514ea401a0d237649c79066d8 (patch) | |
tree | f1f8eb1bb0df1f9766ba89358cd7be2754d8be92 /zephyr/shim/src/system.c | |
parent | fceaf8c374321adcc7a145e90831dcb28f49d2be (diff) | |
download | chrome-ec-c4538718931382f514ea401a0d237649c79066d8.tar.gz |
zephyr: efs2: Compute the __image_size for efs2 in the linker
The __image_size should match used portion of the flash. Note that in
Zephyr, different linker scripts have different variables. _flash_used
is only available for the verified chips. Other chips may use a
different name or may require manual calculation.
Compute the size by using the Zephyr sections. This is the parallel
to core/cortex-m/ec.lds.S's logic.
BRANCH=none
BUG=b:164421798
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: If91acd5dc2b925ad226f2d1c3feccc77617e04df
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2721495
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/shim/src/system.c')
-rw-r--r-- | zephyr/shim/src/system.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/zephyr/shim/src/system.c b/zephyr/shim/src/system.c index e59cb59526..78195e8846 100644 --- a/zephyr/shim/src/system.c +++ b/zephyr/shim/src/system.c @@ -95,5 +95,3 @@ const char *system_get_chip_revision(void) { return ""; } - -const void *__image_size; |