[U-Boot] [PATCH] Refactor IMAGE_ENABLE_VERIFY to handle builds without SPL verification

Simon Glass sjg at chromium.org
Wed Apr 24 15:18:05 UTC 2019


On Thu, 18 Apr 2019 at 14:35, Alex Kiernan <alex.kiernan at gmail.com> wrote:
>
> If building with SPL_LOAD_FIT_FULL and FIT_SIGNATURE, but without
> SPL_FIT_SIGNATURE then the build fails with:
>
>   common/built-in.o: In function `fit_image_verify_with_data':
>   common/image-fit.c:1220: undefined reference to `fit_image_verify_required_sigs'
>   common/image-fit.c:1244: undefined reference to `fit_image_check_sig'
>   common/built-in.o: In function `fit_image_load':
>   common/image-fit.c:1857: undefined reference to `fit_config_verify'
>
> Refactor so that host builds still depend on FIT_SIGNATURE, but target
> builds check FIT_SIGNATURE/SPL_FIT_SIGNATURE dependent on the build.
>
> Signed-off-by: Alex Kiernan <alex.kiernan at gmail.com>
> ---
> Green travis build:
>
> https://travis-ci.org/akiernan/u-boot/builds/521570862
>
>  include/image.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list