mirror of https://github.com/wolfSSL/wolfBoot.git
Revert check for overlap of swap/update with bootloader
Some configs may exploit that possibilitypull/815/head
parent
ef03cf007f
commit
d15f4cbbf2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue