mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
FIT: make iminfo check hashes of all images in FIT, return 1 on failed check
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
This commit is contained in:
parent
919f550dc1
commit
a4f243452c
1 changed files with 6 additions and 0 deletions
|
@ -854,6 +854,12 @@ static int image_info (ulong addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
fit_print_contents (hdr);
|
fit_print_contents (hdr);
|
||||||
|
|
||||||
|
if (!fit_all_image_check_hashes (hdr)) {
|
||||||
|
puts ("Bad hash in FIT image!\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue