From: Andrew F. Davis Date: Tue, 30 Aug 2016 19:06:24 +0000 (-0500) Subject: board: am33xx-hs: Allow post-processing of FIT image on AM33xx X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b0a4eea1a0d63a5debc132ff579590c057262339;p=project%2Fbcm63xx%2Fu-boot.git board: am33xx-hs: Allow post-processing of FIT image on AM33xx When CONFIG_FIT_IMAGE_POST_PROCESS or CONFIG_SPL_FIT_IMAGE_POST_PROCESS is enabled board_fit_image_post_process will be called, add this function to am33xx boards when CONFIG_TI_SECURE_DEVICE is set to verify the loaded image. Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini Acked-by: Lokesh Vutla --- diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 56f4984f47..0ed16ca15a 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -775,3 +776,10 @@ int board_fit_config_name_match(const char *name) return -1; } #endif + +#ifdef CONFIG_TI_SECURE_DEVICE +void board_fit_image_post_process(void **p_image, size_t *p_size) +{ + secure_boot_verify_image(p_image, p_size); +} +#endif