]> git.baikalelectronics.ru Git - uboot.git/commit
efi: Correct dependency on FIT_SIGNATURE
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:29 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:27 +0000 (15:53 -0400)
commit9972efb8730aaf3b4c0a56c37a0a7ba2b1842bfd
tree6f427f7fe153dec1741da9a65ba7cf1359070cd0
parent6fb6131b1f2b53a1821f8a597edeb8f076e3f437
efi: Correct dependency on FIT_SIGNATURE

At present EFI_SECURE BOOT selects RSA but does not necessarily enable
FIT_SIGNATURE. Mostly this is fine, but a few boards do not enable it,
so U-Boot tries to do RSA verification when loading FIT images, but it
is not enabled.

This worked because the condition for checking the RSA signature is
wrong in the fit_image_verify_with_data() function. In order to fix it
we need to fix this dependency. Make sure that FIT_SIGNATURE is enabled
so that RSA can be used.

It might be better to avoid using 'select' in this situation.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/Kconfig