CBFS: use cbfs_get_file_content whenever possible rather than cbfs_get_file
Number one reason to use cbfs_get_file was to get file length. With previous patch no more need for this. Change-Id: I330dda914d800c991757c5967b11963276ba9e00 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4674 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -82,7 +82,7 @@ int recovery_mode_enabled(void)
|
||||
}
|
||||
|
||||
#if CONFIG_VBOOT_VERIFY_FIRMWARE
|
||||
void *vboot_get_payload(int *len)
|
||||
void *vboot_get_payload(size_t *len)
|
||||
{
|
||||
struct vboot_handoff *vboot_handoff;
|
||||
struct firmware_component *fwc;
|
||||
|
@ -48,7 +48,7 @@ void init_chromeos(int bootmode);
|
||||
#if CONFIG_VBOOT_VERIFY_FIRMWARE
|
||||
struct romstage_handoff;
|
||||
void vboot_verify_firmware(struct romstage_handoff *handoff);
|
||||
void *vboot_get_payload(int *len);
|
||||
void *vboot_get_payload(size_t *len);
|
||||
/* Returns 0 on success < 0 on error. */
|
||||
int vboot_get_handoff_info(void **addr, uint32_t *size);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user