EFI: Do not consider OsIndications variable if CONFIG_EFI_IGNORE_OSINDICATIONS is...
authorSughosh Ganu <sughosh.ganu@linaro.org>
Wed, 1 Jun 2022 18:00:39 +0000 (23:30 +0530)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 12 Jun 2022 07:17:54 +0000 (09:17 +0200)
commit119fafdefb81677dc629b79263672e9457849c61
tree725f93299c790d69eb7265d7f1bb3bf23a6a84d9
parent57bd363de7b95bececd40a0c8dbb2fcf4d8d3b21
EFI: Do not consider OsIndications variable if CONFIG_EFI_IGNORE_OSINDICATIONS is enabled

The EFI_IGNORE_OSINDICATIONS config symbol was introduced as a
mechanism to have capsule updates work even on platforms where the
SetVariable runtime service was not supported. The current logic
requires the OsIndications variable to have been set to a 64 bit value
even when the EFI_IGNORE_OSINDICATIONS config is enabled. Return an
error code on not being able to read the variable only when
EFI_IGNORE_OSINDICATIONS is not enabled.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_capsule.c