]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: fix CapsuleMax variable reporting
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 20 Jan 2023 11:58:48 +0000 (13:58 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 20 Jan 2023 16:10:57 +0000 (17:10 +0100)
Currently the code that adds the CapsuleMax variable is under a
Kconfig named 'EFI_HAVE_CAPSULE_UPDATE.  Git history only shows a
single occurrence of that.  The IS_ENABLED should be checking for
EFI_HAVE_CAPSULE_SUPPORT

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_setup.c

index 5437641135308d95dea91d6f334233cb087508eb..f0f01d3b1d5a890218005fb8b2738def128fffc9 100644 (file)
@@ -128,7 +128,7 @@ static efi_status_t efi_init_capsule(void)
 {
        efi_status_t ret = EFI_SUCCESS;
 
-       if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_UPDATE)) {
+       if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)) {
                ret = efi_set_variable_int(u"CapsuleMax",
                                           &efi_guid_capsule_report,
                                           EFI_VARIABLE_READ_ONLY |