summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.h
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2013-08-27 20:22:21 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2013-08-31 08:58:34 +0200
commitde36d333c27c258bc05ecc0b6649fbdafcae619f (patch)
treed80a0dea660b4f74dc8031acfa9e9fa9a597f04e /util/cbfstool/common.h
parentdcccbd13966379eeaee79b08db0d58d024536ae8 (diff)
downloadcoreboot-de36d333c27c258bc05ecc0b6649fbdafcae619f.tar.xz
Add a (b)zImage parser to cbfstool
In the great tradition of LinuxBIOS this allows adding a kernel as payload. add-payload is extended to also allow adding an initial ramdisk (-I filename) and a command line (-C console=ttyS0). Change-Id: Iaca499a98b0adf0134e78d6bf020b6531a626aaa Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/3302 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/cbfstool/common.h')
-rw-r--r--util/cbfstool/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index e197143bc7..6e12fcb064 100644
--- a/util/cbfstool/common.h
+++ b/util/cbfstool/common.h
@@ -102,6 +102,9 @@ int parse_elf_to_payload(const struct buffer *input,
struct buffer *output, comp_algo algo);
int parse_fv_to_payload(const struct buffer *input,
struct buffer *output, comp_algo algo);
+int parse_bzImage_to_payload(const struct buffer *input,
+ struct buffer *output, const char *initrd,
+ char *cmdline, comp_algo algo);
int parse_flat_binary_to_payload(const struct buffer *input,
struct buffer *output,
uint32_t loadaddress,