[coreboot-gerrit] Patch set updated for coreboot: cbfstool: add cbfs file attribute structure

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Aug 13 10:27:29 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10937

-gerrit

commit 6051ef860e77030fecff66cfde21c253f26ec676
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Wed Jul 22 21:32:03 2015 +0200

    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 at chromium.org>
---
 util/cbfstool/cbfs.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h
index f63b881..3f80a04 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;



More information about the coreboot-gerrit mailing list