From 9894181ee986e57191000d66383259a947c2d7c1 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Thu, 5 Mar 2015 10:25:08 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/256381 Reviewed-by: Vic Yang --- chip/mec1322/config_chip.h | 11 ++++++++--- 1 file 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 -- cgit v1.2.1