Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10937
-gerrit
commit f12a7f94688458058290fb9dee85a1ec6349b554 Author: Patrick Georgi pgeorgi@chromium.org Date: Wed Jul 15 21:29:46 2015 +0200
libpayload: add cbfs_file attributes
Change-Id: I98a75eef19f049ad67d46cdc2790949dcd155797 Signed-off-by: Patrick Georgi pgeorgi@chromium.org --- payloads/libpayload/include/cbfs_core.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/payloads/libpayload/include/cbfs_core.h b/payloads/libpayload/include/cbfs_core.h index a95cef7..2dbaaf4 100644 --- a/payloads/libpayload/include/cbfs_core.h +++ b/payloads/libpayload/include/cbfs_core.h @@ -132,10 +132,17 @@ struct cbfs_file { char magic[8]; uint32_t len; uint32_t type; - uint32_t checksum; + uint32_t attributes_offset; uint32_t offset; } __attribute__((packed));
+struct cbfs_file_attributes { + uint32_t len; +} __attribute__((packed)); + +#define CBFS_FILE_ATTRIBUTES(_p) (((_p)->attributes_offset <= sizeof(_p)) ? NULL : \ + (struct cbfs_file_attributes *)(((uint8_t *)(_p)) + ntohl((_p)->attributes_offset))) + /*** Component sub-headers ***/
/* Following are component sub-headers for the "standard"