cbfstool: add cbfs file attribute structure
This is a generic structure, not unlike the cbtables design, based on which we can build specialized TLV data structures. Change-Id: I98a75eef19f049ad67d46cdc2790949dcd155797 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10937 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
433fa5735c
commit
c6a8da7f93
|
@ -85,6 +85,16 @@ struct cbfs_file {
|
||||||
|
|
||||||
_Static_assert(sizeof(struct cbfs_file) == 24, "cbfs_file size mismatch");
|
_Static_assert(sizeof(struct cbfs_file) == 24, "cbfs_file size mismatch");
|
||||||
|
|
||||||
|
/* The common fields of extended cbfs file attributes.
|
||||||
|
Attributes are expected to start with tag/len, then append their
|
||||||
|
specific fields. */
|
||||||
|
struct cbfs_file_attribute {
|
||||||
|
uint32_t tag;
|
||||||
|
/* len covers the whole structure, incl. tag and len */
|
||||||
|
uint32_t len;
|
||||||
|
uint8_t data[0];
|
||||||
|
} __PACKED;
|
||||||
|
|
||||||
struct cbfs_stage {
|
struct cbfs_stage {
|
||||||
uint32_t compression;
|
uint32_t compression;
|
||||||
uint64_t entry;
|
uint64_t entry;
|
||||||
|
|
Loading…
Reference in New Issue