From: Bartlomiej Sieka Date: Tue, 9 Sep 2008 10:58:16 +0000 (+0200) Subject: FIT: make iminfo check hashes of all images in FIT, return 1 on failed check X-Git-Tag: v2008.10-rc1~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4f243452cc8ce0c2c9b51a2520db4bde5f472de;p=u-boot FIT: make iminfo check hashes of all images in FIT, return 1 on failed check Signed-off-by: Bartlomiej Sieka --- diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index b023e2635e..861712b78b 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -854,6 +854,12 @@ static int image_info (ulong addr) } fit_print_contents (hdr); + + if (!fit_all_image_check_hashes (hdr)) { + puts ("Bad hash in FIT image!\n"); + return 1; + } + return 0; #endif default: