commit | a4f243452cc8ce0c2c9b51a2520db4bde5f472de | [log] [tgz] |
---|---|---|
author | Bartlomiej Sieka <tur@semihalf.com> | Tue Sep 09 12:58:16 2008 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Tue Sep 09 15:58:57 2008 +0200 |
tree | 5c40f78c968b2b9e6e98a4adfb51b401955aeb23 | |
parent | 919f550dc11a13abf01c6bc713c968de790b8d7c [diff] [blame] |
FIT: make iminfo check hashes of all images in FIT, return 1 on failed check Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index b023e26..861712b 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c
@@ -854,6 +854,12 @@ } fit_print_contents (hdr); + + if (!fit_all_image_check_hashes (hdr)) { + puts ("Bad hash in FIT image!\n"); + return 1; + } + return 0; #endif default: