summaryrefslogtreecommitdiffstats
path: root/util/cbfstool/cbfs_image.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-10-27 13:17:52 -0500
committerAaron Durbin <adurbin@chromium.org>2015-10-29 16:59:54 +0100
commit176250292920d119ca6d17181ef468714951b7e2 (patch)
tree54a2364a807bd5ffa757cd78c9de38d485259f30 /util/cbfstool/cbfs_image.c
parent3fcb11478ff0a73b952069512ad0797749089e7d (diff)
downloadcoreboot-176250292920d119ca6d17181ef468714951b7e2.tar.gz
coreboot-176250292920d119ca6d17181ef468714951b7e2.tar.bz2
coreboot-176250292920d119ca6d17181ef468714951b7e2.zip
cbfstool: add optional -m ARCH to extract
In order to prepare allowing for one to extract a stage into an ELF file provide an optional -m ARCH option. This allows one to indicate to cbfstool what architecture type the ELF file should be in. Longer term each stage and payload will have an attribute associated with it which indicates the attributes of the executable. Change-Id: Id190c9719908afa85d5a3b2404ff818009eabb4c Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/12217 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
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 63151c966050..245230a7cb6d 100644
--- a/util/cbfstool/cbfs_image.c
+++ b/util/cbfstool/cbfs_image.c
@@ -725,7 +725,7 @@ static int cbfs_stage_decompress(struct buffer *buff)
}
int cbfs_export_entry(struct cbfs_image *image, const char *entry_name,
- const char *filename)
+ const char *filename, unused uint32_t arch)
{
struct cbfs_file *entry = cbfs_get_entry(image, entry_name);
struct buffer buffer;