diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-12 07:24:53 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-19 11:19:02 -0400 |
commit | ce1400f6949bbfec01fe381a844b14844cb3be12 (patch) | |
tree | 4bba7f30fed605271e25492b687e7633eb15bbb0 /common/image-fit.c | |
parent | 2b164f1cea69c7c583a26502d2a68d1c62eb0b5a (diff) | |
download | u-boot-ce1400f6949bbfec01fe381a844b14844cb3be12.tar.gz |
Enhance fit_check_sign to check all images
At present this tool only checks the configuration signing. Have it also
look at each of the images in the configuration and confirm that they
verify.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de> (v1)
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 83fac9a401..3311343be6 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1591,12 +1591,13 @@ int fit_image_load(bootm_headers_t *images, ulong addr, } bootstage_mark(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH); +#ifndef USE_HOSTCC if (!fit_image_check_target_arch(fit, noffset)) { puts("Unsupported Architecture\n"); bootstage_error(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH); return -ENOEXEC; } - +#endif if (image_type == IH_TYPE_FLATDT && !fit_image_check_comp(fit, noffset, IH_COMP_NONE)) { puts("FDT image is compressed"); |