F-3968: emit build-time warning when ALLOW_DOWNGRADE=1 is set

Mirror the DISABLE_BACKUP treatment: print a $(warning ...) so the
build operator gets an unmistakable signal that anti-rollback
enforcement has been disabled.
pull/795/head
Daniele Lacamera 2026-06-11 17:53:47 +02:00
parent 1690522078
commit 889788d2b5
1 changed files with 1 additions and 0 deletions

View File

@ -824,6 +824,7 @@ ifeq ($(BOOT_BENCHMARK),1)
endif
ifeq ($(ALLOW_DOWNGRADE),1)
$(warning ALLOW_DOWNGRADE=1 disables anti-rollback enforcement; signed older firmware images can replace newer ones)
CFLAGS+= -D"ALLOW_DOWNGRADE"
endif