Skip to content

Commit 93866f7

Browse files
committed
Use minimum 512B of header with delta updates
1 parent 6c8aafe commit 93866f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/keytools/sign.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,10 @@ static void set_signature_sizes(int secondary)
22632263
else
22642264
printf("Environment variable IMAGE_HEADER_SIZE=%u overridden.\n", suggested_sz);
22652265
}
2266+
if ((CMD.header_sz == 256) && (CMD.delta)) {
2267+
printf("Adjusting header size to fit base image of delta update \n");
2268+
CMD.header_sz <<= 1;
2269+
}
22662270
printf("Manifest header size: %u\n", CMD.header_sz);
22672271
}
22682272

0 commit comments

Comments
 (0)