print the known cbfs types in cbfstool "usage"
[coreboot.git] / util / cbfstool / common.c
index e0f4c312a35c86f7d27103b5284fb75f3d3b80a2..30d52816b100f811ce22069376419acff1c2b1a1 100644 (file)
@@ -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;