cbfstool: Use buffer over offset/size pair for cbfs_copy_instance
This allows adding support for FMAP based cbfstool copy more easily. BUG=chromium:445938 Change-Id: I72e7bc4da7d27853e324400f76f86136e3d8726e Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/12787 Tested-by: build bot (Jenkins)
This commit is contained in:
committed by
Aaron Durbin
parent
cbb6c75061
commit
214e4af102
@@ -74,8 +74,7 @@ int cbfs_image_from_buffer(struct cbfs_image *out, struct buffer *in,
|
||||
|
||||
/* Create a duplicate CBFS image. Returns 0 on success, otherwise non-zero.
|
||||
* Will not succeed on new-style images without a master header. */
|
||||
int cbfs_copy_instance(struct cbfs_image *image, size_t copy_offset,
|
||||
size_t copy_size);
|
||||
int cbfs_copy_instance(struct cbfs_image *image, struct buffer *dst);
|
||||
|
||||
/* Releases the CBFS image. Returns 0 on success, otherwise non-zero. */
|
||||
int cbfs_image_delete(struct cbfs_image *image);
|
||||
|
Reference in New Issue
Block a user