diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/system.c b/common/system.c index 5baea57c95..ddabe3aa3c 100644 --- a/common/system.c +++ b/common/system.c @@ -370,7 +370,7 @@ test_mockable enum system_image_copy_t system_get_image_copy(void) */ int system_get_image_used(enum system_image_copy_t copy) { -#ifndef CONFIG_MAPPED_STORAGE +#ifdef CONFIG_EXTERNAL_STORAGE static uint8_t buf[SPI_FLASH_MAX_WRITE_SIZE]; #endif int image_offset; @@ -388,7 +388,7 @@ int system_get_image_used(enum system_image_copy_t copy) image_offset = (copy == SYSTEM_IMAGE_RW) ? CONFIG_EC_WRITABLE_STORAGE_OFF + CONFIG_RW_STORAGE_OFF : CONFIG_EC_PROTECTED_STORAGE_OFF + CONFIG_RO_STORAGE_OFF; -#ifndef CONFIG_MAPPED_STORAGE +#ifdef CONFIG_EXTERNAL_STORAGE image = buf; do { |