From 93866f73763e0bcf4d538c040844bb25ffe3ead2 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Tue, 26 Nov 2024 11:04:09 +0100 Subject: [PATCH] Use minimum 512B of header with delta updates --- tools/keytools/sign.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/keytools/sign.c b/tools/keytools/sign.c index b8e0d7cf..06bee96c 100644 --- a/tools/keytools/sign.c +++ b/tools/keytools/sign.c @@ -2263,6 +2263,10 @@ static void set_signature_sizes(int secondary) else printf("Environment variable IMAGE_HEADER_SIZE=%u overridden.\n", suggested_sz); } + if ((CMD.header_sz == 256) && (CMD.delta)) { + printf("Adjusting header size to fit base image of delta update \n"); + CMD.header_sz <<= 1; + } printf("Manifest header size: %u\n", CMD.header_sz); }