[PATCH] efi_loader: adjust config options for capsule updates

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Jun 22 18:36:51 CEST 2024


On 20.06.24 22:15, Ilias Apalodimas wrote:
> EFI_IGNORE_OSINDICATIONS is used to ignore OsIndications if setvariable
> at runtime is not supported and allow the platform to perform capsule
> updates on disk. With the recent changes boards can conditionally enable
> setvariable at runtime using EFI_RT_VOLATILE_STORE.
>
> Let's make that visible in our Kconfigs and enable EFI_IGNORE_OSINDICATIONS
> when set variable at runtime is disabled.
>
> Since EFI_RT_VOLATILE_STORE needs help from the OS to persist the
> variables, allow users to ignore OsIndications even if setvariable at
> runtime is enabled.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

So this v2:

v2:
	allow EFI_IGNORE_OSINDICATIONS if EFI_RT_VOLATILE_STORE=y

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

> ---
>   lib/efi_loader/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> index ee71f417147a..6006e845cb1f 100644
> --- a/lib/efi_loader/Kconfig
> +++ b/lib/efi_loader/Kconfig
> @@ -220,6 +220,7 @@ config EFI_CAPSULE_ON_DISK
>   config EFI_IGNORE_OSINDICATIONS
>   	bool "Ignore OsIndications for CapsuleUpdate on-disk"
>   	depends on EFI_CAPSULE_ON_DISK
> +	default y if !EFI_RT_VOLATILE_STORE
>   	help
>   	  There are boards where U-Boot does not support SetVariable at runtime.
>   	  Select this option if you want to use the capsule-on-disk feature
> --
> 2.43.0
>



More information about the U-Boot mailing list