{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052\deftab360{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
\pard\nowidctlpar\sb200\cf2\b0\fs18 MkPkg creates a distribution package file. It packages the specified native packages and native modules, generates an XML formatted description file for these packages and modules and zips them together to a compressed file.\f1\par
\pard\nowidctlpar\fi-540\li540\sb200 Specify the distribution file to be created. The default file name is \ldblquote DistributionPackage.zip\rdblquote \f1\par
\pard\nowidctlpar\sb200\f0 [-m, --module]\par
The inf file of module to be distributed standalone.\f1\par
\f0 [-p, --package]\par
The dec file of package to be distributed.\par
[-f --misc-files]\par
Specify any misc files.\par
[-x --xml-file-header]\par
Specify the xml file which includes header information for creating the distribution file.\f1\par
\f0 [-t --tools-directory]\par
Specify the directory name of tools.\par
[-v, --verbose]\par
\pard\nowidctlpar\li360\sb200 Turn on verbose output with informational messages printed. \par
\pard\nowidctlpar\sb200 [-q, --quiet]\par
\tab Disable all messages except FATAL ERRORS.\par
[-h, --help]\par
\tab Print copyright, version and usage of this program and exit.\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 1. Before execute the program, please enter the workspace directory and execute \ldblquote edksetup\rdblquote to initialize the workspace, in next examples, the workspace is C:\\MyWork\par
\tab Generate a \ldblquote DistributionPackage.zip\rdblquote file to zip all contents of a standalone module [HelloWorld] with all files under directory [BaseTools]\par
\f1\tab\f0 Generate a \ldblquote DistributionPackage.zip\rdblquote file to zip all contents of a standalone module [HelloWorld] with a misc file [Conf\\build_rule.txt]\par
\tab\f0 Generate a \ldblquote DistributionPackage.zip\rdblquote file to zip all contents of [MdeModulePkg] package and [MdePkg] package, the header information of this distribution package is read from [A.xml] (Refer to section [Sample of XML header file] for more information of the XML file header)\f1\par