common: bootm: support host sign check for armv7 fit image

including: fdt, u-boot, op-tee.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ieb3dc15383f47626ef125b5d64e96b90a0a67cc6
This commit is contained in:
Joseph Chen 2020-04-02 14:51:26 +08:00 committed by Jianhong Chen
parent 10530d82c2
commit 2dc02ea380
1 changed files with 8 additions and 0 deletions

View File

@ -1033,6 +1033,7 @@ int bootm_host_load_images(const void *fit, int cfg_noffset, int is_spl)
IH_TYPE_FLATDT, IH_TYPE_FLATDT,
IH_TYPE_RAMDISK, IH_TYPE_RAMDISK,
}; };
#ifdef CONFIG_SPL_ATF
static uint8_t image_types_spl[] = { static uint8_t image_types_spl[] = {
IH_TYPE_FLATDT, IH_TYPE_FLATDT,
IH_TYPE_FIRMWARE, IH_TYPE_FIRMWARE,
@ -1040,6 +1041,13 @@ int bootm_host_load_images(const void *fit, int cfg_noffset, int is_spl)
IH_TYPE_LOADABLE, IH_TYPE_LOADABLE,
IH_TYPE_LOADABLE, IH_TYPE_LOADABLE,
}; };
#else
static uint8_t image_types_spl[] = {
IH_TYPE_FLATDT,
IH_TYPE_FIRMWARE,
IH_TYPE_LOADABLE,
};
#endif
int loadable_index = 0; int loadable_index = 0;
int err = 0; int err = 0;
int index; int index;