소스 검색

FIT: make iminfo check hashes of all images in FIT, return 1 on failed check

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Bartlomiej Sieka 16 년 전
부모
커밋
a4f243452c
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      common/cmd_bootm.c

+ 6 - 0
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: