mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 12:25:38 +00:00
cros-ec: Store image_idx in section
Makes it a bit easier to retrieve the image later.
This commit is contained in:
parent
9326e19118
commit
4ed2400cab
@ -132,6 +132,7 @@ fu_cros_ec_firmware_parse (FuFirmware *firmware,
|
|||||||
section->offset = fu_firmware_image_get_addr (img);
|
section->offset = fu_firmware_image_get_addr (img);
|
||||||
section->size = g_bytes_get_size (payload_bytes);
|
section->size = g_bytes_get_size (payload_bytes);
|
||||||
fu_firmware_image_set_version (img, section->version);
|
fu_firmware_image_set_version (img, section->version);
|
||||||
|
section->image_idx = fu_firmware_image_get_idx (img);
|
||||||
|
|
||||||
if (rw) {
|
if (rw) {
|
||||||
if (!fu_cros_ec_parse_version (section->version,
|
if (!fu_cros_ec_parse_version (section->version,
|
||||||
|
@ -36,6 +36,7 @@ typedef struct {
|
|||||||
gchar version[FU_FMAP_FIRMWARE_STRLEN];
|
gchar version[FU_FMAP_FIRMWARE_STRLEN];
|
||||||
gint32 rollback;
|
gint32 rollback;
|
||||||
guint32 key_version;
|
guint32 key_version;
|
||||||
|
guint64 image_idx;
|
||||||
} FuCrosEcFirmwareSection;
|
} FuCrosEcFirmwareSection;
|
||||||
|
|
||||||
gboolean fu_cros_ec_firmware_pick_sections (FuCrosEcFirmware *self,
|
gboolean fu_cros_ec_firmware_pick_sections (FuCrosEcFirmware *self,
|
||||||
|
Loading…
Reference in New Issue
Block a user