Skip to content

Commit b4969fe

Browse files
committed
bootm: Allow fit image authentication
Signed-off-by: Valentin Raevsky <valentin@compulab.co.il>
1 parent b1b9ab2 commit b4969fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmd/bootm.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
208208
case IMAGE_FORMAT_ANDROID:
209209
/* Do this authentication in boota command */
210210
break;
211+
#endif
212+
#ifdef CONFIG_FIT
213+
case IMAGE_FORMAT_FIT:
214+
if (authenticate_image(image_load_addr,
215+
fit_get_size((void *)image_load_addr)) != 0) {
216+
printf("Authenticate FIT image Fail, Please check\n");
217+
return 1;
218+
}
219+
break;
211220
#endif
212221
default:
213222
printf("Not valid image format for Authentication, Please check\n");

0 commit comments

Comments
 (0)