]> git.dujemihanovic.xyz Git - u-boot.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)
commit4429393b5a41557c744b1fab912a32b34bee8d38
tree486ab43b6c1a192e3bae182d1d506f253bdc5be4
parentaa2d3945ce6df43903d76cadde1c0669d6d5d43b
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