summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-05-21 23:28:37 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-05-22 15:04:13 +0000
commit15854fa680c57cfd49f30cf265a2a4d4bb67b076 (patch)
tree9eed8190fce4cf59b4b8dd597d0f16dbeb8a2e10 /core
parent16d8f6c8bc985090fab9b416bf89d996115c3f93 (diff)
downloadchrome-ec-15854fa680c57cfd49f30cf265a2a4d4bb67b076.tar.gz
Add FMAP even if VBOOT is not activatedv1.0.0
This simplifies the re-flashing for stm32 based platforms. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chrome-os-partner:8865 TEST=On Daisy, flashrom -p internal:bus=lpc -w ec.bin Change-Id: I66860383c34110b1edf852929c244a2b682bc105
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index b1e9c71127..18d8fe6dc8 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -90,7 +90,7 @@ SECTIONS
. = ALIGN(4);
*(.rodata*)
-#if defined(SECTION_IS_RO) && defined(CONFIG_VBOOT)
+#if defined(SECTION_IS_RO) && defined(CONFIG_FLASH)
. = ALIGN(64);
*(.google)
#endif
@@ -122,7 +122,7 @@ SECTIONS
ASSERT(FW_SIZE(SECTION) >
(LOADADDR(.data) + SIZEOF(.data) - FW_OFF(SECTION)),
"No room left in the flash")
-#if !(defined(SECTION_IS_RO) && defined(CONFIG_VBOOT))
+#if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH))
/DISCARD/ : {
*(.google)
}