From b44b0302d35d1e032cd386cd3c2b92d05a12f1a6 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Fri, 3 Jan 2025 16:08:43 +0000 Subject: [PATCH] zephyr: Remove scratch from flash_area_id_from_multi_image_slot The mapping does not seem to be needed as scratch is opened directly, and there is only one for all images anyway. Simulator seems to error out when asked to identify scratch with this function. Signed-off-by: Dominik Ermel --- boot/zephyr/flash_map_extended.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/boot/zephyr/flash_map_extended.c b/boot/zephyr/flash_map_extended.c index 4631da75b8..bf0d8f191c 100644 --- a/boot/zephyr/flash_map_extended.c +++ b/boot/zephyr/flash_map_extended.c @@ -62,9 +62,6 @@ int flash_area_id_from_multi_image_slot(int image_index, int slot) case 0: return FLASH_AREA_IMAGE_PRIMARY(image_index); #if !defined(CONFIG_SINGLE_APPLICATION_SLOT) case 1: return FLASH_AREA_IMAGE_SECONDARY(image_index); -#endif -#if defined(CONFIG_BOOT_SWAP_USING_SCRATCH) - case 2: return FLASH_AREA_IMAGE_SCRATCH; #endif }