summaryrefslogtreecommitdiff
path: root/common/firmware_image.lds.S
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-09-16 22:25:33 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-17 19:00:54 -0700
commit542a95c87b00b1cf733e033bf7bd77e440d17725 (patch)
tree4d6dbf8ac271e7ac38cfce28afaa43ab0cbedc7a /common/firmware_image.lds.S
parent5717b3150c8a8d43e07ce2dc8065c3515d3651f7 (diff)
downloadchrome-ec-542a95c87b00b1cf733e033bf7bd77e440d17725.tar.gz
cleanup: Fix npcx build
The previous commits left npcx in a bad state. Change CONFIG_PROGRAM_MEMORY_BASE to point to the actual start of code memory and correct the linker file. This still results in a non-working npcx image (more changes forthcoming) but it does build. BUG=chrome-os-partner:23796 TEST=make clean; make buildall -j BRANCH=None Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Ia300c5d18695dccd8d9fd9a6122cd7d30353adfa Reviewed-on: https://chromium-review.googlesource.com/300295 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/firmware_image.lds.S')
-rw-r--r--common/firmware_image.lds.S8
1 files changed, 1 insertions, 7 deletions
diff --git a/common/firmware_image.lds.S b/common/firmware_image.lds.S
index 546ad26c63..0ed3fd6563 100644
--- a/common/firmware_image.lds.S
+++ b/common/firmware_image.lds.S
@@ -14,13 +14,7 @@ MEMORY
SECTIONS
{
. = ALIGN(CONFIG_FLASH_BANK_SIZE);
-#if defined(NPCX_RO_HEADER)
-/* Replace *_MEM_OFF with *_STORAGE_OFF to indicate flat file contains header
- * or some struture which doesn't belong to FW */
- .image.RO : AT(CONFIG_PROGRAM_MEMORY_BASE + CONFIG_RO_STORAGE_OFF) {
-#else
.image.RO : AT(CONFIG_PROGRAM_MEMORY_BASE + CONFIG_RO_MEM_OFF) {
-#endif
*(.image.RO)
} > FLASH =0xff
. = ALIGN(CONFIG_FLASH_BANK_SIZE);
@@ -31,7 +25,7 @@ SECTIONS
} > FLASH =0xff
. = ALIGN(CONFIG_FLASH_BANK_SIZE);
#endif
-#if (CONFIG_RO_MEM_OFF == CONFIG_RW_MEM_OFF)
+#ifdef CONFIG_EXTERNAL_STORAGE
/* This is applicable to ECs in which RO and RW execution is
mapped to the same location but we still have to generate an ec.bin with RO
and RW images at different Flash offset */