diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-03-05 10:25:08 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-06 08:49:01 +0000 |
commit | 9894181ee986e57191000d66383259a947c2d7c1 (patch) | |
tree | 0b919318c1c998a01774cef4de2d41334fe7efa9 /chip | |
parent | 4e58d5c46ae9f63f6408ef6a0b47ef8327fad309 (diff) | |
download | chrome-ec-9894181ee986e57191000d66383259a947c2d7c1.tar.gz |
mec1322: Remove RO image to save program memory
mec1322 projects are running very low on flash space. We don't yet have
a loader to load either RO or RW at runtime, so remove the RO image
entirely. This is a temporary change and should be reverted once we have
a working loader.
BUG=chrome-os-partner:37510
TEST=make buildall -j
BRANCH=None
Change-Id: I8c502ec2bcabf246d5a3ea939f1a8d0c366acd9f
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/256381
Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mec1322/config_chip.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chip/mec1322/config_chip.h b/chip/mec1322/config_chip.h index 6de25fac3a..9a0d770f50 100644 --- a/chip/mec1322/config_chip.h +++ b/chip/mec1322/config_chip.h @@ -67,9 +67,14 @@ #define CONFIG_FW_RO_SIZE CONFIG_FW_IMAGE_SIZE #define CONFIG_FLASH_SIZE CONFIG_FLASH_PHYSICAL_SIZE -/* Either way, RW firmware is one firmware image offset from the start */ -#define CONFIG_FW_RW_OFF CONFIG_FW_IMAGE_SIZE -#define CONFIG_FW_RW_SIZE CONFIG_FW_IMAGE_SIZE +/* + * TODO(crosbug.com/p/37510): Implement a loader to load either RO or RW at + * runtime. Since this doesn't exist yet and we're running low on program + * memory, only flash + load RW for now. + */ +#undef CONFIG_FW_INCLUDE_RO +#define CONFIG_FW_RW_OFF CONFIG_FW_RO_OFF +#define CONFIG_FW_RW_SIZE CONFIG_FLASH_PHYSICAL_SIZE /* TODO(crosbug.com/p/23796): why 2 sets of configs with the same numbers? */ #define CONFIG_FW_WP_RO_OFF CONFIG_FW_RO_OFF |