summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfs_image.c
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2015-08-11 15:10:02 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-08-13 16:08:30 +0200
commit11ee08f1f1505eca3589abefbf9484083cd05a19 (patch)
treee112c30c846a6c4eb92d5d1b6dd96e765c0d391d /util/cbfstool/cbfs_image.c
parente60b55a570a3bb9bf75bd344ef41460454abaef2 (diff)
downloadcoreboot-11ee08f1f1505eca3589abefbf9484083cd05a19.tar.xz
cbfstool: expose cbfs_calculate_file_header_size()
Headers vary in size soon, and more places need to be able to calculate their size. Change-Id: I30761bb9da0756418993dee21d8fa18cf3174c40 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/11214 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/cbfs_image.c')
-rw-r--r--util/cbfstool/cbfs_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs_image.c b/util/cbfstool/cbfs_image.c
index e78ee40d74..ed065b0a93 100644
--- a/util/cbfstool/cbfs_image.c
+++ b/util/cbfstool/cbfs_image.c
@@ -112,7 +112,7 @@ int cbfs_parse_comp_algo(const char *name)
/* CBFS image */
-static size_t cbfs_calculate_file_header_size(const char *name)
+size_t cbfs_calculate_file_header_size(const char *name)
{
return (sizeof(struct cbfs_file) +
align_up(strlen(name) + 1, CBFS_FILENAME_ALIGN));