From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Sieka Date: Tue, 9 Sep 2008 12:58:16 +0200 Subject: [U-Boot] [PATCH 2/2] FIT: make iminfo check hashes of all images in FIT, return 1 on failed check In-Reply-To: <122095789699-git-send-email-tur@semihalf.com> References: <122095789699-git-send-email-tur@semihalf.com> Message-ID: <12209578971412-git-send-email-tur@semihalf.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Bartlomiej Sieka --- common/cmd_bootm.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 8dbab02..e537418 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: -- 1.5.3.4