From c6a8da7f93160b5c853619e203dcfc9d5ba4a553 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 22 Jul 2015 21:32:03 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/10937 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- util/cbfstool/cbfs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'util') diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index f63b88156d..3f80a046f4 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -85,6 +85,16 @@ struct cbfs_file { _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 { uint32_t compression; uint64_t entry; -- cgit v1.2.3