diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2016-06-27 09:19:22 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-14 18:22:22 -0400 |
commit | 17c298733612f68ebf7702f28f32ad78c7ef115e (patch) | |
tree | 11d0ef07ab235123bab4b0a4ee8b7abe13451609 /board/ti/am57xx | |
parent | da74d1f341e46ecc0ae893b4aa3b771ce9dba9f3 (diff) | |
download | u-boot-imx-17c298733612f68ebf7702f28f32ad78c7ef115e.zip u-boot-imx-17c298733612f68ebf7702f28f32ad78c7ef115e.tar.gz u-boot-imx-17c298733612f68ebf7702f28f32ad78c7ef115e.tar.bz2 |
arm: omap5: add U-Boot FIT signing and SPL image post-processing
Modify the SPL build procedure for AM57xx and DRA7xx high-security (HS)
device variants to create a secure u-boot_HS.img FIT blob that contains
U-Boot and DTB artifacts signed with a TI-specific process based on the
CONFIG_TI_SECURE_DEVICE config option and the externally-provided image
signing tool.
Also populate the corresponding FIT image post processing call to be
performed during SPL runtime.
Signed-off-by: Daniel Allred <d-allred@ti.com>
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti/am57xx')
-rw-r--r-- | board/ti/am57xx/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index 08cf14d..927d136 100644 --- a/board/ti/am57xx/board.c +++ b/board/ti/am57xx/board.c @@ -13,6 +13,7 @@ #include <sata.h> #include <usb.h> #include <asm/omap_common.h> +#include <asm/omap_sec_common.h> #include <asm/emif.h> #include <asm/gpio.h> #include <asm/arch/gpio.h> @@ -750,3 +751,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 |