efi_loader: add the number of image entries in efi_capsule_update_info
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Wed, 7 Jun 2023 05:41:51 +0000 (14:41 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 8 Jun 2023 07:20:36 +0000 (09:20 +0200)
commitcccea18813c44c15b2709edcfba1048e42d28404
tree48d3c1a30dbddb9c0c99c6f4bc09d6efb14dc24c
parentac6096fe9c4d99f1dc37db95f213e08a48b11e70
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>
15 files changed:
arch/arm/mach-rockchip/board.c
board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
board/emulation/qemu-arm/qemu-arm.c
board/kontron/pitx_imx8m/pitx_imx8m.c
board/kontron/sl-mx8mm/sl-mx8mm.c
board/kontron/sl28/sl28.c
board/rockchip/evb_rk3399/evb-rk3399.c
board/sandbox/sandbox.c
board/socionext/developerbox/developerbox.c
board/st/stm32mp1/stm32mp1.c
board/xilinx/common/board.c
include/efi_loader.h
lib/efi_loader/efi_firmware.c
lib/fwu_updates/fwu.c