]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: set CapsuleMax from CONFIG_EFI_CAPSULE_MAX
authorEtienne Carriere <etienne.carriere@linaro.org>
Thu, 16 Feb 2023 17:21:41 +0000 (18:21 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 19 Feb 2023 20:15:15 +0000 (21:15 +0100)
commiteef35285b2f3f4dabe2263767c3e0f86a1962bf2
tree486ab43b6c1a192e3bae182d1d506f253bdc5be4
parente90ab4a7f46a40bd55cf067bce91fd6b05e6436f
efi_loader: set CapsuleMax from CONFIG_EFI_CAPSULE_MAX

Adds CONFIG_EFI_CAPSULE_MAX to configure the max index value used in
EFI capsule reports. Prior to this change is the hard coded value was
65535 which would exceed available storage for variables. Now the
default value is 15 which should work fine with most systems.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
lib/efi_loader/Kconfig
lib/efi_loader/efi_capsule.c
lib/efi_loader/efi_setup.c