cbfs: Add support for attributes

CBFS now supports attributes for things that cannot fit in the header as
originally conceived. Add the structures for these.

Also rename attributes_offset to something shorter, to ease code
readability.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2021-03-15 18:00:09 +13:00
parent 326aae2589
commit 72ca485978
2 changed files with 39 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ static int file_cbfs_next_file(struct cbfs_priv *priv, void *start, int size,
new_node->name = (char *)file_header +
sizeof(struct cbfs_fileheader);
new_node->name_length = name_len;
new_node->attributes_offset = header.attributes_offset;
new_node->attr_offset = header.attributes_offset;
step = header.len;
if (step % align)