mirror of
https://xff.cz/git/u-boot/
synced 2025-09-27 05:21:16 +02:00
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>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
ac6096fe9c
commit
cccea18813
@@ -1078,15 +1078,16 @@ struct efi_fw_image {
|
||||
* platforms which enable capsule updates
|
||||
*
|
||||
* @dfu_string: String used to populate dfu_alt_info
|
||||
* @num_images: The number of images array entries
|
||||
* @images: Pointer to an array of updatable images
|
||||
*/
|
||||
struct efi_capsule_update_info {
|
||||
const char *dfu_string;
|
||||
int num_images;
|
||||
struct efi_fw_image *images;
|
||||
};
|
||||
|
||||
extern struct efi_capsule_update_info update_info;
|
||||
extern u8 num_image_type_guids;
|
||||
|
||||
/**
|
||||
* Install the ESRT system table.
|
||||
|
Reference in New Issue
Block a user