diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-06-26 09:48:04 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-26 13:58:54 -0700 |
commit | fb123b48384cdf2eb1c5008324fac6f8d2811e16 (patch) | |
tree | 32f5a582794db1d253fadc2c6427b7905fae3640 /common/firmware_image.lds.S | |
parent | 90afebac6406e02ce306a4a6eaf7b66097a81931 (diff) | |
download | chrome-ec-fb123b48384cdf2eb1c5008324fac6f8d2811e16.tar.gz |
Only one RW image is now the default
And if RW B isn't enabled, it's not even linked.
BUG=chrome-os-partner:10881
TEST=on link, should be no B image, and 'sysjump B' should fail
On BDS, still should be A and B images
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Change-Id: Icb2af07881cc7e28b9b877f45824486a22fde8d7
Reviewed-on: https://gerrit.chromium.org/gerrit/26116
Diffstat (limited to 'common/firmware_image.lds.S')
-rw-r--r-- | common/firmware_image.lds.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/firmware_image.lds.S b/common/firmware_image.lds.S index cf1e79ff39..cd095f9634 100644 --- a/common/firmware_image.lds.S +++ b/common/firmware_image.lds.S @@ -3,6 +3,7 @@ * found in the LICENSE file. */ +#include "board.h" #include "config.h" OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") @@ -22,7 +23,7 @@ SECTIONS *(.image.A) BYTE(0xEA) /* Mark end explicitly */ } > FLASH =0xff -#ifndef CONFIG_NO_RW_B +#ifdef CONFIG_RW_B . = ALIGN(CONFIG_FLASH_BANK_SIZE); .image.B : AT(CONFIG_FLASH_BASE + CONFIG_SECTION_B_OFF) { *(.image.B) |