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 7e6062cac626893f6f40b0e8e2d3f599cce1c4f9 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..26730c9 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; 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))) + /*** Component sub-headers ***/
/* Following are component sub-headers for the "standard"