]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: expose efi_image_parse() even if UEFI Secure Boot is disabled
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Fri, 14 May 2021 00:53:36 +0000 (09:53 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 25 May 2021 11:06:57 +0000 (13:06 +0200)
commitd5208d3dc8d15f4f205bf7f16e0e150fd5825b4c
tree3a8ebc1a543f78b0beedfc4a0ce3df5a742daadf
parent4a20ab5f1d90ec4981cda274ba7c063fbae96f6a
efi_loader: expose efi_image_parse() even if UEFI Secure Boot is disabled

This is preparation for PE/COFF measurement support.
PE/COFF image hash calculation is same in both
UEFI Secure Boot image verification and measurement in
measured boot. PE/COFF image parsing functions are
gathered into efi_image_loader.c, and exposed even if
UEFI Secure Boot is not enabled.

This commit also adds the EFI_SIGNATURE_SUPPORT option
to decide if efi_signature.c shall be compiled.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/Kconfig
lib/efi_loader/Makefile
lib/efi_loader/efi_image_loader.c
lib/efi_loader/efi_signature.c
lib/efi_loader/efi_var_common.c