aboutsummaryrefslogtreecommitdiff
path: root/util/cbfstool/common.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/common.c
parent3173d8c94a6a091be2a9ad182e707c6f933ee3e9 (diff)
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/common.c')
-rw-r--r--util/cbfstool/common.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c
index e0f4c312a3..30d52816b1 100644
--- a/util/cbfstool/common.c
+++ b/util/cbfstool/common.c
@@ -137,6 +137,17 @@ struct filetypes_t {
{CBFS_COMPONENT_NULL, "null"}
};
+void print_supported_filetypes(void)
+{
+ int i, number = ARRAY_SIZE(filetypes);
+
+ for (i=0; i<number; i++) {
+ printf(" %s%c", filetypes[i].name, (i==(number-1))?'\n':',');
+ if ((i%8) == 7)
+ printf("\n");
+ }
+}
+
const char *strfiletype(uint32_t number)
{
int i;