summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-24 21:24:06 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-24 21:24:06 +0000
commit0704058327e5a8fa00ea32bbe10be748d7824fc1 (patch)
treeae324f1dd5d484f6113d1652b5bae1bd87bfc301 /util/cbfstool/cbfstool.c
parent3173d8c94a6a091be2a9ad182e707c6f933ee3e9 (diff)
downloadcoreboot-0704058327e5a8fa00ea32bbe10be748d7824fc1.tar.xz
print the known cbfs types in cbfstool "usage"
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5487 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r--util/cbfstool/cbfstool.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 183a614491..1d8b7c6b74 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -254,17 +254,20 @@ struct command commands[] = {
void usage(void)
{
printf
- ("cbfstool: Management utility for CBFS formatted ROM images\n"
- "USAGE:\n" "cbfstool [-h]\n"
- "cbfstool FILE COMMAND [PARAMETERS]...\n\n" "OPTIONs:\n"
- " -h Display this help message\n\n"
+ ("cbfstool: Management utility for CBFS formatted ROM images\n\n"
+ "USAGE:\n" " cbfstool [-h]\n"
+ " cbfstool FILE COMMAND [PARAMETERS]...\n\n" "OPTIONs:\n"
+ " -h Display this help message\n\n"
"COMMANDs:\n"
- "add FILE NAME TYPE [base address] Add a component\n"
- "add-payload FILE NAME [COMP] [base] Add a payload to the ROM\n"
- "add-stage FILE NAME [COMP] [base] Add a stage to the ROM\n"
- "create SIZE BOOTBLOCK [ALIGN] Create a ROM file\n"
- "locate FILE NAME ALIGN Find a place for a file of that size\n"
- "print Show the contents of the ROM\n");
+ " add FILE NAME TYPE [base address] Add a component\n"
+ " add-payload FILE NAME [COMP] [base] Add a payload to the ROM\n"
+ " add-stage FILE NAME [COMP] [base] Add a stage to the ROM\n"
+ " create SIZE BOOTBLOCK [ALIGN] Create a ROM file\n"
+ " locate FILE NAME ALIGN Find a place for a file of that size\n"
+ " print Show the contents of the ROM\n\n"
+ "TYPEs:\n"
+ );
+ print_supported_filetypes();
}
int main(int argc, char **argv)