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/fmap.c | |
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/fmap.c')
-rw-r--r-- | common/fmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/fmap.c b/common/fmap.c index da139f7cc1..a0bbf43472 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -6,6 +6,7 @@ #include <stddef.h> #include <stdint.h> +#include "board.h" #include "config.h" #include "version.h" @@ -150,7 +151,7 @@ const struct _ec_fmap { .area_flags = FMAP_AREA_STATIC, }, -#ifndef CONFIG_NO_RW_B +#ifdef CONFIG_RW_B /* Firmware B */ { .area_name = "RW_SECTION_B", @@ -178,6 +179,6 @@ const struct _ec_fmap { .area_size = CONFIG_VBLOCK_SIZE, .area_flags = FMAP_AREA_STATIC, }, -#endif /* CONFIG_NO_RW_B */ +#endif /* CONFIG_RW_B */ } }; |