]> git.dujemihanovic.xyz Git - u-boot.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)
commitf6081a8a1e45e4864e36d83ccc236eef62478b1f
tree3a8ebc1a543f78b0beedfc4a0ce3df5a742daadf
parent6754e24b54da3229c37ae50526df0e79ba6e67fa
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