summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-09-15 14:30:40 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-15 22:02:34 +0000
commitb956132ca87d2cc2fa20aaa929bdca538e642afa (patch)
tree65160d513df3b2a2c59021d706834c4af26bca95
parent169e910801cbcc4d31258d5a1a30af3c4072898d (diff)
downloadchrome-ec-b956132ca87d2cc2fa20aaa929bdca538e642afa.tar.gz
zephyr: riscv: use __rom_region_size for image size
_image_rom_size was renamed to __rom_region_size in v2.7. We backported this to our v2.6 branches, so switch the name ahead of time so we're prepared for the v2.7 uprev. BUG=b:198824039 BRANCH=none TEST=compile hayato EC with zephyr v2.7 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Iae6e7008d729f77cd66ed1a35e93001511d9cea8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163562 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--zephyr/linker/image_size.ld2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/linker/image_size.ld b/zephyr/linker/image_size.ld
index 50f1afd520..b1e401ae7f 100644
--- a/zephyr/linker/image_size.ld
+++ b/zephyr/linker/image_size.ld
@@ -7,7 +7,7 @@
defined(CONFIG_CPU_CORTEX_A)
__image_size = _flash_used;
#elif defined(CONFIG_RISCV)
-__image_size = _image_rom_size;
+__image_size = __rom_region_size;
#else
/*
* Intentionally set to 0. Some components, such as EFS2, need this value.