- printf ("Usage:\n");\r
- printf (UTILITY_NAME " -b \"build directory\" -p1 \"package1.inf\" -p2 \"package2.inf\"\n");\r
- printf (" -d \"name=value\" -v\n");\r
- printf (" -b \"build directory\":\n");\r
- printf (" specifies the full path to the component build directory.\n");\r
- printf (" -p1 \"P1_path\":\n");\r
- printf (" specifies fully qualified file name to the primary package file.\n");\r
- printf (" This file will normally exist in the same directory as the makefile\n");\r
- printf (" for the component. Required.\n");\r
- printf (" -p2 \"P2_path\":\n");\r
- printf (" specifies fully qualified file name to the override package file.\n");\r
- printf (" This file will normally exist in the build tip. Optional.\n");\r
- printf (" -d \"name=value\":\n");\r
- printf (" add a macro definition for package file. Optional.\n");\r
- printf (" -v :\n");\r
- printf (" verbose. Optional.\n");\r
+ int Index;\r
+ const char *Str[] = {\r
+ UTILITY_NAME" "UTILITY_VERSION" - Intel Generate FFS File Utility",\r
+ " Copyright (C), 2004 - 2009 Intel Corporation",\r
+ \r
+#if ( defined(UTILITY_BUILD) && defined(UTILITY_VENDOR) )\r
+ " Built from "UTILITY_BUILD", project of "UTILITY_VENDOR,\r
+#endif\r
+ "",\r
+ "Usage:",\r
+ " "UTILITY_NAME" [OPTION]...",\r
+ "Options:",\r
+ " -b BuildDirectory Specifies the full path to the component build directory",\r
+ " -p1 P1Path Specifies fully qualified file name to the primary package",\r
+ " file. This file will normally exist in the same directory",\r
+ " as the makefile for the component. Required.",\r
+ " -p2 P2Path Specifies fully qualified file name to the override",\r
+ " package. This file will normally exist in the build tip.",\r
+ " Optional.",\r
+ " -d Name=Value Add a macro definition for the package file. Optional.",\r
+ " -o OutputFile Specifies the file name of output file. Optional.",\r
+ " -v Verbose. Optional.",\r
+ NULL\r
+ };\r
+ for (Index = 0; Str[Index] != NULL; Index++) {\r
+ fprintf (stdout, "%s\n", Str[Index]);\r
+ }\r