diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-09-07 14:44:55 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-09 02:26:16 -0700 |
commit | 5da63f4ea2c93e6b059d8c50ff01dbe53a13dec2 (patch) | |
tree | ae2417b2411abe87ef47d8b994ddc23ff288bccb /test/flash.c | |
parent | 103108ec216e67a4937d9a51f7134d4923dd31f5 (diff) | |
download | chrome-ec-5da63f4ea2c93e6b059d8c50ff01dbe53a13dec2.tar.gz |
Treat SYSTEM_IMAGE_RW_B also as RW copy
SYSTEM_IMAGE_RW_B hasn't been globally treated as a RW copy.
This change makes EC treat it also as a RW copy.
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: Iae5a9090cdf30f980014daca44cdf8f2a65ea1f2
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/656337
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'test/flash.c')
-rw-r--r-- | test/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/flash.c b/test/flash.c index ab0cf29aa7..b3bad5e984 100644 --- a/test/flash.c +++ b/test/flash.c @@ -313,7 +313,7 @@ static int test_overwrite_other(void) uint32_t offset, size; /* Test that we can overwrite the other image */ - if (system_get_image_copy() == SYSTEM_IMAGE_RW) { + if (system_is_in_rw()) { offset = CONFIG_RO_STORAGE_OFF; size = CONFIG_RO_SIZE; } else { |