[PATCH v2 077/169] Correct SPL use of EFI_TCG2_PROTOCOL

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Feb 7 00:41:50 CET 2023



On 2/5/23 23:39, Simon Glass wrote:
> This converts 1 usage of this option to the non-SPL form, since there is
> no SPL_EFI_TCG2_PROTOCOL defined in Kconfig

Why do you touch the code? I can't see any problem being solved.

Best regards

Heinrich

> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> (no changes since v1)
> 
>   lib/efi_loader/efi_image_loader.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/efi_loader/efi_image_loader.c b/lib/efi_loader/efi_image_loader.c
> index eaf75a5803d..26df0da16c9 100644
> --- a/lib/efi_loader/efi_image_loader.c
> +++ b/lib/efi_loader/efi_image_loader.c
> @@ -938,7 +938,7 @@ efi_status_t efi_load_pe(struct efi_loaded_image_obj *handle,
>   		goto err;
>   	}
>   
> -#if CONFIG_IS_ENABLED(EFI_TCG2_PROTOCOL)
> +#if IS_ENABLED(CONFIG_EFI_TCG2_PROTOCOL)
>   	/* Measure an PE/COFF image */
>   	ret = tcg2_measure_pe_image(efi, efi_size, handle, loaded_image_info);
>   	if (ret == EFI_SECURITY_VIOLATION) {


More information about the U-Boot mailing list