diff --git a/boot/bootutil/src/bootutil_area.c b/boot/bootutil/src/bootutil_area.c index 19001f3fe4..3bd6bb0a10 100644 --- a/boot/bootutil/src/bootutil_area.c +++ b/boot/bootutil/src/bootutil_area.c @@ -27,6 +27,7 @@ */ #include "bootutil_area.h" +#include "bootutil_priv.h" #include "bootutil/image.h" #include "bootutil/bootutil_public.h" #ifdef MCUBOOT_ENC_IMAGES @@ -36,16 +37,6 @@ BOOT_LOG_MODULE_DECLARE(mcuboot); -#if !defined(MCUBOOT_OVERWRITE_ONLY) && \ - !defined(MCUBOOT_SWAP_USING_MOVE) && \ - !defined(MCUBOOT_SWAP_USING_OFFSET) && \ - !defined(MCUBOOT_DIRECT_XIP) && \ - !defined(MCUBOOT_RAM_LOAD) && \ - !defined(MCUBOOT_SINGLE_APPLICATION_SLOT) && \ - !defined(MCUBOOT_FIRMWARE_LOADER) -#define MCUBOOT_SWAP_USING_SCRATCH 1 -#endif - /** * Amount of space used to save information required when doing a swap, * or while a swap is under progress, but not the status of sector swap