From 889788d2b5ad31f9e98c6540e5eef4d8e028a23c Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Thu, 11 Jun 2026 17:53:47 +0200 Subject: [PATCH] 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. --- options.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/options.mk b/options.mk index 45e29239..31c300d3 100644 --- a/options.mk +++ b/options.mk @@ -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