搜尋此網誌

2012年8月23日 星期四

EFI/UEFI development tools - StrGather(UEFI字串採集的公用程式)

StrGather v1.2 - UEFI String Gather Utility
  Built from Edk1.06, project of TianoCore.org

Usage:
  StrGather -parse [OPTION] FILE
  StrGather -scan  [OPTION] FILE
  StrGather -dump  [OPTION]
Description:
  Process unicode strings file.
Common options include:
  -h or -?         for this help information
  -db Database     required name of output/input database file
  -bn BaseName     for use in the .h and .c output files Default = BaseName
  -v               for verbose output
  -vdbw            for verbose output when writing database
  -vdbr            for verbose output when reading database
  -od FileName     to specify an output database file name
Parse options include:
  -i IncludePath   add IncludePath to list of search paths
  -dep FileName    to specify an output dependency file name
  -newdb           to not read in existing database file
  -uqs             to indicate that unquoted strings are used
  FileNames        name of one or more unicode files to parse
Scan options include:
  -scan            scan text file(s) for STRING_TOKEN() usage
  -skipext .ext    to skip scan of files with .ext filename extension
  -ppflag "Flags"  to specify the C preprocessor flags
  -oh FileName     to specify string defines file name for preprocessor
  -ignorenotfound  ignore if a given STRING_TOKEN(STR) is not found in the database
  FileNames        one or more files to scan
Dump options include:
  -oc FileName     write string data to FileName
  -oh FileName     write string defines to FileName
  -ou FileName     dump database to unicode file FileName
  -lang Lang       only dump for the language 'Lang' use ';' to separate multiple languages
  -if FileName     to specify an indirection file
  -hpk FileName    to create an HII export pack of the strings

The expected process is to parse a unicode string file to create an initial database of string identifier names and string definitions. Then text files should be scanned for STRING_TOKEN() usages, and the referenced
strings will be tagged as used in the database. After all files have been scanned, then the database should be dumped to create the necessary output files.

沒有留言:

張貼留言