summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.h
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2013-01-28 15:04:30 +0800
committerDavid Hendricks <dhendrix@chromium.org>2013-02-01 06:06:41 +0100
commit05dccae75df4ed0c6a75867a89cf1a4055507e28 (patch)
treeffb7291d0975565da5d1a8cc40277459dc9cc3a5 /util/cbfstool/common.h
parent4d87d4e09b38d152425f060f088f3a44b7dacfcb (diff)
downloadcoreboot-05dccae75df4ed0c6a75867a89cf1a4055507e28.tar.xz
cbfstool: move flat-binary parsing to cbfs-mkpayload.
The ELF parsing and payload building in add-flat-binary command should be isolated just like mkpayload and mkstage. Since the add-flat-binary command creates a payload in the end , move payload processing to cbfs-mkpayload.c. To test: cbfstool coreboot.rom add-flat-binary -f u-boot.bin -n fallback/payload \ -l 0x100000 -e 0x100020 To verify, get output from "cbfstool coreboot.rom print -v": fallback/payload 0x73ccc0 payload 124920 INFO: code (no compression, offset: 0x38, load: 0x1110000, length:..) Change-Id: Ia7bd2e6160507c0a1e8e20bc1d08397ce9826e0d Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: http://review.coreboot.org/2197 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'util/cbfstool/common.h')
-rw-r--r--util/cbfstool/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index bb18ee1b9d..bd5ef65f16 100644
--- a/util/cbfstool/common.h
+++ b/util/cbfstool/common.h
@@ -72,8 +72,13 @@ comp_func_ptr compression_function(comp_algo algo);
uint64_t intfiletype(const char *name);
+/* cbfs-mkpayload.c */
int parse_elf_to_payload(unsigned char *input, unsigned char **output,
comp_algo algo);
+int parse_flat_binary_to_payload(unsigned char *input, unsigned char **output,
+ int32_t input_size, uint32_t loadaddress,
+ uint32_t entrypoint, comp_algo algo);
+/* cbfs-mkstage.c */
int parse_elf_to_stage(unsigned char *input, unsigned char **output,
comp_algo algo, uint32_t * location);