diff options
author | Masahisa Kojima | 2023-06-07 14:41:51 +0900 |
---|---|---|
committer | Heinrich Schuchardt | 2023-06-08 09:20:36 +0200 |
commit | cccea18813c44c15b2709edcfba1048e42d28404 (patch) | |
tree | 48d3c1a30dbddb9c0c99c6f4bc09d6efb14dc24c /board/rockchip | |
parent | ac6096fe9c4d99f1dc37db95f213e08a48b11e70 (diff) |
efi_loader: add the number of image entries in efi_capsule_update_info
The number of image array entries global variable is required
to support EFI capsule update. This information is exposed as a
num_image_type_guids variable, but this information
should be included in the efi_capsule_update_info structure.
This commit adds the num_images member in the
efi_capsule_update_info structure. All board files supporting
EFI capsule update are updated.
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'board/rockchip')
-rw-r--r-- | board/rockchip/evb_rk3399/evb-rk3399.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index c99ffdd75e8..3c773d0930c 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -18,10 +18,10 @@ static struct efi_fw_image fw_images[ROCKPI4_UPDATABLE_IMAGES] = {0}; struct efi_capsule_update_info update_info = { + .num_images = ROCKPI4_UPDATABLE_IMAGES, .images = fw_images, }; -u8 num_image_type_guids = ROCKPI4_UPDATABLE_IMAGES; #endif #ifndef CONFIG_SPL_BUILD |