diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-22 19:38:40 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-22 19:48:30 +0000 |
commit | 5e1f87ce561235cd651212f573078b6ad90e2ab4 (patch) | |
tree | f03d16716dbe74d63bb7d8ad1d57b3740d74d386 /common | |
parent | 9ab7beb509382a7b2e881b29c077f4342cf2b3af (diff) | |
download | chrome-ec-5e1f87ce561235cd651212f573078b6ad90e2ab4.tar.gz |
do not advertise RW-B in FMAP if it doesn't exist
The Snow board has currently the second RW partition de-activated due to
flash space constraints, we don't want to send false information to the
tools.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:8865
TEST=on Snow, flashrom -p internal:bus=lpc -i EC_RW -w ec.bin
Change-Id: I6da60028aa69aeb476d5c2d98df5a03ece961891
Diffstat (limited to 'common')
-rw-r--r-- | common/fmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/fmap.c b/common/fmap.c index 00b127a1b7..2a2d288d5f 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -144,6 +144,7 @@ const struct _ec_fmap { .area_flags = FMAP_AREA_STATIC, }, +#ifndef CONFIG_NO_RW_B /* Firmware B */ { .area_name = "RW_SECTION_B", @@ -169,5 +170,6 @@ const struct _ec_fmap { .area_size = CONFIG_VBLOCK_SIZE, .area_flags = FMAP_AREA_STATIC, }, +#endif /* CONFIG_NO_RW_B */ } }; |