Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10936
-gerrit
commit bd58b42af92cbd183dbb8226a5c4b0edce420469 Author: Patrick Georgi pgeorgi@chromium.org Date: Wed Jul 15 21:18:10 2015 +0200
cbfs: Add support for cbfs_file_attributes as far as required so far
Change-Id: I808a529b18c2e43e4ab83f30259f73e66635b83d Signed-off-by: Patrick Georgi pgeorgi@chromium.org --- src/include/cbfs_serialized.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/include/cbfs_serialized.h b/src/include/cbfs_serialized.h index f672095..7fa8dbb 100644 --- a/src/include/cbfs_serialized.h +++ b/src/include/cbfs_serialized.h @@ -132,10 +132,17 @@ struct cbfs_file { char magic[8]; uint32_t len; uint32_t type; - uint32_t checksum; + uint32_t attributes; uint32_t offset; } __attribute__((packed));
+struct cbfs_file_attributes { + uint32_t len; +} __attribute__((packed)); + +#define CBFS_FILE_ATTRIBUTES(_p) (((_p)->attributes == 0) ? NULL : \ + (struct cbfs_file_attributes *)(((uint8_t *)(_p)) + ntohl((_p)->attributes))) + /* * ROMCC does not understand uint64_t, so we hide future definitions as they are * unlikely to be ever needed from ROMCC