summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-01-14 01:29:08 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-15 04:07:55 +0000
commit9e422c3c05fdd324565049b09be27c446f9dc0ca (patch)
treeb4694ca5abc8c1be1000a1efe7a7bd8a02ddd856 /core
parent6aa3d78608b681e6374f30747a7f6ab80938bde6 (diff)
downloadchrome-ec-9e422c3c05fdd324565049b09be27c446f9dc0ca.tar.gz
Refactor CONFIG_FLASH_SIZE to CONFIG_FLASH_SIZE_BYTES
In Zephyr CONFIG_FLASH_SIZE is a Kconfig value that is used throughout. The issue is that the units don't match. In Zephyr the value is in KiB instead of bytes. This refactor simply renames CONFIG_FLASH_SIZE in platform/ec to include the unit (via _BYTES). BRANCH=none BUG=b:174873770 TEST=make buildall be generated by the build instead of per board Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I44bf3c7a20fcf62aaa9ae15715be78db4210f384 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627638 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S2
-rw-r--r--core/cortex-m0/ec.lds.S2
-rw-r--r--core/nds32/ec.lds.S2
-rw-r--r--core/riscv-rv32i/ec.lds.S2
4 files changed, 4 insertions, 4 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index fc24d181b5..9a23a419f6 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -503,7 +503,7 @@ SECTIONS
/*
* These linker labels are just for analysis and not used in the code.
*/
- __config_flash_size = CONFIG_FLASH_SIZE;
+ __config_flash_size = CONFIG_FLASH_SIZE_BYTES;
__config_ro_size = CONFIG_RO_SIZE;
__config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE;
__config_rw_size = CONFIG_RW_SIZE;
diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S
index 6839b37778..1241638361 100644
--- a/core/cortex-m0/ec.lds.S
+++ b/core/cortex-m0/ec.lds.S
@@ -315,7 +315,7 @@ SECTIONS
/*
* These linker labels are just for analysis and not used in the code.
*/
- __config_flash_size = CONFIG_FLASH_SIZE;
+ __config_flash_size = CONFIG_FLASH_SIZE_BYTES;
__config_ro_size = CONFIG_RO_SIZE;
__config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE;
__config_rw_size = CONFIG_RW_SIZE;
diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S
index 4565600b05..1d35041fea 100644
--- a/core/nds32/ec.lds.S
+++ b/core/nds32/ec.lds.S
@@ -285,7 +285,7 @@ SECTIONS
/*
* These linker labels are just for analysis and not used in the code.
*/
- __config_flash_size = CONFIG_FLASH_SIZE;
+ __config_flash_size = CONFIG_FLASH_SIZE_BYTES;
__config_ro_size = CONFIG_RO_SIZE;
__config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE;
__config_rw_size = CONFIG_RW_SIZE;
diff --git a/core/riscv-rv32i/ec.lds.S b/core/riscv-rv32i/ec.lds.S
index e849095d92..d2bb3ba353 100644
--- a/core/riscv-rv32i/ec.lds.S
+++ b/core/riscv-rv32i/ec.lds.S
@@ -341,7 +341,7 @@ SECTIONS
/*
* These linker labels are just for analysis and not used in the code.
*/
- __config_flash_size = CONFIG_FLASH_SIZE;
+ __config_flash_size = CONFIG_FLASH_SIZE_BYTES;
__config_ro_size = CONFIG_RO_SIZE;
__config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE;
__config_rw_size = CONFIG_RW_SIZE;