Revert check for overlap of swap/update with bootloader

Some configs may exploit that possibility
pull/815/head
Mattia Moffa 2026-07-02 16:56:08 +02:00 committed by Daniele Lacamera
parent ef03cf007f
commit d15f4cbbf2
1 changed files with 0 additions and 20 deletions

View File

@ -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