From d15f4cbbf29d44810b00ca651beaa6d60b1daf4a Mon Sep 17 00:00:00 2001 From: Mattia Moffa Date: Thu, 2 Jul 2026 16:56:08 +0200 Subject: [PATCH] Revert check for overlap of swap/update with bootloader Some configs may exploit that possibility --- include/target.h.in | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/target.h.in b/include/target.h.in index 58eff29e..6595030d 100644 --- a/include/target.h.in +++ b/include/target.h.in @@ -144,26 +144,6 @@ (WOLFBOOT_PARTITION_SWAP_ADDRESS + 0 + WOLFBOOT_SECTOR_SIZE)) #error "Update and swap partitions overlap" #endif - - #if !defined(PART_UPDATE_EXT) && defined(WOLFBOOT_ORIGIN) && \ - ((BOOTLOADER_PARTITION_SIZE + 0) != 0) && \ - ((WOLFBOOT_PARTITION_UPDATE_ADDRESS + 0) != 0) && \ - ((WOLFBOOT_PARTITION_UPDATE_ADDRESS + 0 + WOLFBOOT_PARTITION_SIZE + 0) > \ - (WOLFBOOT_ORIGIN + 0)) && \ - ((WOLFBOOT_PARTITION_UPDATE_ADDRESS + 0) < \ - (WOLFBOOT_ORIGIN + 0 + BOOTLOADER_PARTITION_SIZE + 0)) - #error "Update partition overlaps the bootloader" - #endif - - #if !defined(PART_SWAP_EXT) && defined(WOLFBOOT_ORIGIN) && \ - ((BOOTLOADER_PARTITION_SIZE + 0) != 0) && \ - ((WOLFBOOT_PARTITION_SWAP_ADDRESS + 0) != 0) && \ - ((WOLFBOOT_PARTITION_SWAP_ADDRESS + 0 + WOLFBOOT_SECTOR_SIZE) > \ - (WOLFBOOT_ORIGIN + 0)) && \ - ((WOLFBOOT_PARTITION_SWAP_ADDRESS + 0) < \ - (WOLFBOOT_ORIGIN + 0 + BOOTLOADER_PARTITION_SIZE + 0)) - #error "Swap partition overlaps the bootloader" - #endif #endif #ifdef WOLFBOOT_PERSIST_FAILURE_STATUS