From 5e1f87ce561235cd651212f573078b6ad90e2ab4 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Tue, 22 May 2012 19:38:40 +0000 Subject: [PATCH] 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 BUG=chrome-os-partner:8865 TEST=on Snow, flashrom -p internal:bus=lpc -i EC_RW -w ec.bin Change-Id: I6da60028aa69aeb476d5c2d98df5a03ece961891 --- common/fmap.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ } };