From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lokesh Vutla Date: Wed, 31 Aug 2016 08:58:04 +0530 Subject: [U-Boot] [PATCH v4 05/10] board: am33xx-hs: Allow post-processing of FIT image on AM33xx In-Reply-To: <20160830190629.13956-6-afd@ti.com> References: <20160830190629.13956-1-afd@ti.com> <20160830190629.13956-6-afd@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 31 August 2016 12:36 AM, Andrew F. Davis wrote: > 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. Acked-by: Lokesh Vutla Thanks and regards, Lokesh > > Signed-off-by: Andrew F. Davis > Reviewed-by: Tom Rini > --- > board/ti/am335x/board.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c > index 56f4984..0ed16ca 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 >