mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
cbfs: Rename checksum to attributes_offset
It seems that this field has been renamed in later version of coreboot. Update it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -55,7 +55,7 @@ static void swap_file_header(struct cbfs_fileheader *dest,
|
|||||||
memcpy(&dest->magic, &src->magic, sizeof(dest->magic));
|
memcpy(&dest->magic, &src->magic, sizeof(dest->magic));
|
||||||
dest->len = be32_to_cpu(src->len);
|
dest->len = be32_to_cpu(src->len);
|
||||||
dest->type = be32_to_cpu(src->type);
|
dest->type = be32_to_cpu(src->type);
|
||||||
dest->checksum = be32_to_cpu(src->checksum);
|
dest->attributes_offset = be32_to_cpu(src->attributes_offset);
|
||||||
dest->offset = be32_to_cpu(src->offset);
|
dest->offset = be32_to_cpu(src->offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@ static int file_cbfs_next_file(u8 *start, u32 size, u32 align,
|
|||||||
newNode->name = (char *)fileHeader +
|
newNode->name = (char *)fileHeader +
|
||||||
sizeof(struct cbfs_fileheader);
|
sizeof(struct cbfs_fileheader);
|
||||||
newNode->name_length = name_len;
|
newNode->name_length = name_len;
|
||||||
newNode->checksum = header.checksum;
|
newNode->attributes_offset = header.attributes_offset;
|
||||||
|
|
||||||
step = header.len;
|
step = header.len;
|
||||||
if (step % align)
|
if (step % align)
|
||||||
|
@@ -65,7 +65,8 @@ struct cbfs_fileheader {
|
|||||||
u8 magic[8];
|
u8 magic[8];
|
||||||
u32 len;
|
u32 len;
|
||||||
u32 type;
|
u32 type;
|
||||||
u32 checksum;
|
/* offset to struct cbfs_file_attribute or 0 */
|
||||||
|
u32 attributes_offset;
|
||||||
u32 offset;
|
u32 offset;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
@@ -76,7 +77,7 @@ struct cbfs_cachenode {
|
|||||||
u32 data_length;
|
u32 data_length;
|
||||||
char *name;
|
char *name;
|
||||||
u32 name_length;
|
u32 name_length;
|
||||||
u32 checksum;
|
u32 attributes_offset;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
extern enum cbfs_result file_cbfs_result;
|
extern enum cbfs_result file_cbfs_result;
|
||||||
|
Reference in New Issue
Block a user