libpayload: store boot media information in sysinfo
Write boot media information in sysinfo, if it exists. This allows picking the right CBFS for further files in case there are several. Change-Id: I75a8ee6b93f349b9f2fab1e82826aba675949c0a Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10869 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
committed by
Patrick Georgi
parent
fb5d5b16ee
commit
f61b35d5b0
@ -257,6 +257,17 @@ struct cb_spi_flash {
|
||||
uint32_t erase_cmd;
|
||||
};
|
||||
|
||||
#define CB_TAG_BOOT_MEDIA_PARAMS 0x0030
|
||||
struct cb_boot_media_params {
|
||||
uint32_t tag;
|
||||
uint32_t size;
|
||||
/* offsets are relative to start of boot media */
|
||||
uint64_t fmap_offset;
|
||||
uint64_t cbfs_offset;
|
||||
uint64_t cbfs_size;
|
||||
uint64_t boot_media_size;
|
||||
};
|
||||
|
||||
#define CB_TAG_SERIALNO 0x002a
|
||||
#define CB_MAX_SERIALNO_LENGTH 32
|
||||
|
||||
|
Reference in New Issue
Block a user