From 3fcde22a30fc26fa299d4e26a9cc0bde7eb0356d Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 4 Feb 2014 17:35:44 -0800 Subject: Add an xdr function for the cbfs_file header And use it in fit.c and remove one more use of htonl. Change-Id: Ibf18dcc0a7f08d75c2374115de0db7a4bf64ec1e Signed-off-by: Ronald G. Minnich Reviewed-on: http://review.coreboot.org/5120 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- util/cbfstool/cbfs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/cbfstool/cbfs.h') diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 527c867c50..1839646162 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -126,6 +126,9 @@ uint32_t get_cbfs_entry_type(const char *name, uint32_t default_value); const char *get_cbfs_entry_type_name(uint32_t type); uint32_t get_cbfs_compression(const char *name, uint32_t unknown); +/* common.c */ +void cbfs_file_get_header(struct buffer *buf, struct cbfs_file *file); + /* elfheaders.c */ int elf_headers(const struct buffer *pinput, -- cgit v1.2.3