Skip to content

Commit fab609d

Browse files
committed
options: normalize self-update monolithic flag
1 parent 040bcdb commit fab609d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

options.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ endif
9090

9191
## Monolithic self-update: erase covers fw_size so the payload can span
9292
## the bootloader region into the contiguous boot partition.
93+
ifeq ($(WOLFBOOT_SELF_UPDATE_MONOLITHIC),1)
94+
SELF_UPDATE_MONOLITHIC:=1
95+
endif
9396
ifeq ($(SELF_UPDATE_MONOLITHIC),1)
9497
CFLAGS+=-DWOLFBOOT_SELF_UPDATE_MONOLITHIC
9598
endif
@@ -714,7 +717,7 @@ ifeq ($(WOLFBOOT_SKIP_BOOT_VERIFY),1)
714717
$(error WOLFBOOT_SKIP_BOOT_VERIFY=1 requires WOLFBOOT_SELF_HEADER=1)
715718
endif
716719
ifneq ($(SELF_UPDATE_MONOLITHIC),1)
717-
$(error WOLFBOOT_SKIP_BOOT_VERIFY=1 requires SELF_UPDATE_MONOLITHIC=1)
720+
$(error WOLFBOOT_SKIP_BOOT_VERIFY=1 requires WOLFBOOT_SELF_UPDATE_MONOLITHIC (set SELF_UPDATE_MONOLITHIC=1))
718721
endif
719722
CFLAGS+=-D"WOLFBOOT_SKIP_BOOT_VERIFY"
720723
endif

0 commit comments

Comments
 (0)