aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2008-09-09 12:58:16 +0200
committerWolfgang Denk <wd@denx.de>2008-09-09 15:58:57 +0200
commita4f243452cc8ce0c2c9b51a2520db4bde5f472de (patch)
tree5c40f78c968b2b9e6e98a4adfb51b401955aeb23 /common/cmd_bootm.c
parent919f550dc11a13abf01c6bc713c968de790b8d7c (diff)
FIT: make iminfo check hashes of all images in FIT, return 1 on failed check
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index b023e2635..861712b78 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: