summaryrefslogtreecommitdiffstats
path: root/util/cbfstool/cbfs_image.h
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2015-08-11 14:54:24 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-08-13 16:08:15 +0200
commite60b55a570a3bb9bf75bd344ef41460454abaef2 (patch)
treee791c4d59f88b997ea4c358d1165b6f6a9ae48e3 /util/cbfstool/cbfs_image.h
parent4e54bf93345332fc866b6b8b798a99248edb0698 (diff)
downloadcoreboot-e60b55a570a3bb9bf75bd344ef41460454abaef2.tar.gz
coreboot-e60b55a570a3bb9bf75bd344ef41460454abaef2.tar.bz2
coreboot-e60b55a570a3bb9bf75bd344ef41460454abaef2.zip
cbfstool: allow passing a precalculated header size into cbfs_add_entry()
This is in preparation of creating the cbfs_file header much earlier in the process. For now, size is enough because lots of things need to move before it makes sense to deal with cbfs_file at a higher level. Change-Id: I47589247c3011cb828170eaa10ef4a1e0f85ab84 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/11213 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/cbfs_image.h')
-rw-r--r--util/cbfstool/cbfs_image.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs_image.h b/util/cbfstool/cbfs_image.h
index cb2935b75438..907be613d075 100644
--- a/util/cbfstool/cbfs_image.h
+++ b/util/cbfstool/cbfs_image.h
@@ -93,7 +93,8 @@ int cbfs_export_entry(struct cbfs_image *image, const char *entry_name,
* Never pass this function a top-aligned address: convert it to an offset.
* Returns 0 on success, otherwise non-zero. */
int cbfs_add_entry(struct cbfs_image *image, struct buffer *buffer,
- const char *name, uint32_t type, uint32_t content_offset);
+ const char *name, uint32_t type, uint32_t content_offset,
+ uint32_t header_size);
/* Removes an entry from CBFS image. Returns 0 on success, otherwise non-zero. */
int cbfs_remove_entry(struct cbfs_image *image, const char *name);