diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2021-08-18 11:33:50 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-19 15:08:23 +0000 |
commit | 7876375707a7bc59d298a88e1b0dac55610d6d1e (patch) | |
tree | 882823e7f386201a003ef2e108b9fc6ee40b9e5d | |
parent | 32760f9286fd28d0062b08de0d97e7ee61957da4 (diff) | |
download | chrome-ec-7876375707a7bc59d298a88e1b0dac55610d6d1e.tar.gz |
zephyr: riscv: linker: correct __image_size
With CL:3088970, the _image_rom_size has been able to provide
correct image size. So configure __image_size = _image_rom_size;
BRANCH=none
BUG=b:195954913
TEST=software sync is successfully.
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Cq-Depend: chromium:3088970
Change-Id: I23a2f33aa15df7a8469d5591dc8d310d0313be92
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3105912
Tested-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/linker/image_size.ld | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zephyr/linker/image_size.ld b/zephyr/linker/image_size.ld index fad555e499..50f1afd520 100644 --- a/zephyr/linker/image_size.ld +++ b/zephyr/linker/image_size.ld @@ -7,8 +7,7 @@ defined(CONFIG_CPU_CORTEX_A) __image_size = _flash_used; #elif defined(CONFIG_RISCV) -/* Firmware binary size is text + rodata + data in rom. */ -__image_size = _image_rom_size + (__data_ram_end - __data_ram_start); +__image_size = _image_rom_size; #else /* * Intentionally set to 0. Some components, such as EFS2, need this value. |