Skip to content

Commit 2e7839e

Browse files
bigbrettdanielinux
authored andcommitted
add additional check for DELTA_UPDATE + DISABLE_BACKUP incompatibility
1 parent 2a385eb commit 2e7839e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/wolfboot/wolfboot.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,10 @@ extern "C" {
503503
#endif
504504
#endif
505505

506+
#if defined(DISABLE_BACKUP) && defined(DELTA_UPDATES)
507+
#error "DELTA_UPDATES requires swap partition (incompatible with DISABLE_BACKUP)"
508+
#endif
509+
506510
#define PART_BOOT 0
507511
#define PART_UPDATE 1
508512
#define PART_SWAP 2

0 commit comments

Comments
 (0)