Sysupgrade: Add signature certificate size check as warning.

For ipq807x, signature certificate size is dynamic and it is not fixed.
Hence we will treat signature certificate size check as warning. 

Change-Id: I6528212aaf9297217b19cb34311fc96500a7f38f
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
This commit is contained in:
Avinash Pandey 2018-02-23 19:32:16 +05:30
parent 1fbb054c7e
commit 5432bb2a0b

View file

@ -923,9 +923,7 @@ int split_code_signature_cert_from_component_bin(struct image_section *section,
}
sig_cert_size = mbn_hdr->image_size - mbn_hdr->code_size;
if (sig_cert_size != SIG_CERT_2_SIZE && sig_cert_size != SIG_CERT_3_SIZE) {
printf("Error: Image without version information\n");
close(fd);
return 0;
printf("WARNING: signature certificate size is different\n");
}
src_size = mbn_hdr->sig_ptr - mbn_hdr->image_dest_ptr + MBN_HDR_SIZE;
*src = malloc(src_size + 1);