audk/BaseTools/UserManuals/GenDepex_Utility_Man_Page.rtf

65 lines
6.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052\deftab360{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fswiss\fprq2\fcharset0 Arial;}}
{\colortbl ;\red8\green96\blue168;\red0\green0\blue0;}
{\stylesheet{ Normal;}{\s1 heading 1;}{\s2 heading 2;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Name\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 GenDepex.exe or GenDepex.py \endash Convert the dependency string of file to the binary PI dependency expression. \f1\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\tx1440\cf1\b\f0\fs28 Synopsis\par
\pard\nowidctlpar\sb200\cf2\fs18 GenDepex.exe [options] [dependency_expression_file]\f1\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\f0\fs28 Description\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 GenDepex tool parses the input dependency expression string or the preprocessed dxs file to generate the binary PI dependency expression according to their module type. For PEIM module type, the PEI dependency expression will be generated. For DXE_DRIVER, UEFI_DRIVER, DXE_RUNTIME_DRIVER, DXE_SAL_DRIVER and DXE_SMM_DRIVER, the DXE dependency expression will be generated.\f1\par
\f0 GenDepex tool is not a standalone tool. When [depex] section is specified in module INF, it will be used together by Build tool. Build tool first parses the content in [depex] section to create the dependency expression string, then GenDepex will parse the generated string. When [depex] section is not specified, but File.dxs file exist, GenDepex tool will be used together with Compiler and EDKII trim too. The File.dxs first is preprocessed by Compiler, then processed by trim tool to remove all other code except for dependency content, last GenPepex will process the preprocessed dependency file.\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\fs28 Options\par
\pard\nowidctlpar\sb200\cf2\fs18 dependency_expression_file\f1\par
\pard\nowidctlpar\li360\sb200\b0\f0 Specify the name of the preprocessed dxs file to be parsed into the binary PI dependency expression.\f1\par
\pard\nowidctlpar\sb200\b\f0 -o FILE, --output=FILE\par
\pard\nowidctlpar\li360\sb200\b0 Specify the name of depex file that contains the generated binary PI dependency expression.\f1\par
\pard\nowidctlpar\sb200\b\f0 -t MODULETYPE, --module-type=MODULETYPE\par
\pard\nowidctlpar\li360\sb200\b0 The type of module is for which the dependency expression serves. Only EDKII module type is supported.\f1\par
\pard\nowidctlpar\sb200\b\f0 -e EXPRESSION, --dependency-expression=EXPRESSION\par
\pard\nowidctlpar\li360\sb200\b0 The option value is the string of dependency expression. If this option presents, the input file will be ignored.\par
\pard\nowidctlpar\sb200\b -m, --optimize\f1\par
\pard\nowidctlpar\fi360\sb200\b0\f0 Do some simple optimization on the expression to remove the duplicated guid.\f1\par
\pard\nowidctlpar\sb200\b\f0 -v, --verbose\f1\par
\b0\f0 \tab Run with verbose information.\f1\par
\b\f0 -d DEBUG, --debug=DEBUG [0-9]\f1\par
\pard\nowidctlpar\fi360\sb200\b0\f0 Enable debug messages at specified level.\par
\pard\nowidctlpar\sb200\b -q, --quiet\f1\par
\pard\nowidctlpar\fi360\sb200\b0\f0 Run with little information in quiet mode.\f1\par
\pard\nowidctlpar\sb200\b\f0 --version\f1\par
\pard\nowidctlpar\fi360\sb200\b0\f0 Show program's version number and exit\par
\pard\nowidctlpar\sb200\b -h, --help\par
\pard\nowidctlpar\li360\sb200\b0 Show this help message and exit\f1\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Example\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 1. Parse the input dependency string based on DXE_DRIVER module type to generate the binary PI dependency expression into the output test.depex file. \par
\b GenDepex.exe -o test.depex -t DXE_DRIVER -e "\{ 0x26baccb2, 0x6f42, 0x11d4, \{0xbc, 0xe7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81\} \f1\}\f0 AND \{ 0xf617b358, 0x12cf, 0x414a, 0xa0, 0x69, 0x60, 0x67, 0x7b, 0xda, 0x13, 0xb3 \} END"\par
\b0 2. Parse the input dependency string based on DXE_DRIVER module type to generate the binary PI dependency expression into the output test.depex file in the optimization mode.\f1\par
\b\f0 GenDepex -o test.depex -t DXE_DRIVER -e "\{ 0x26baccb2, 0x6f42, 0x11d4, \{0xbc, 0xe7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81\} \} AND \{ 0x26baccb2, 0x6f42, 0x11d4, \{0xbc, 0xe7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81\} \} END" -m\f1\par
\b0\f0 Same to \par
\b GenDepex -o test.depex -t DXE_DRIVER -e "\{ 0x26baccb2, 0x6f42, 0x11d4, \{0xbc, 0xe7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81\} \} END"\par
\b0 3. Parse the input preprocessed dependency file (test.iii) based on DXE_DRIVER module type to generate the binary PI dependency expression into the output test.depex.\f1\par
\b\f0 GenDepex \endash o test.depex \endash t DXE_DRIVER test.iii\par
\b0 Test.iii file is the preprocessed dxs file like:\par
DEPENDENCY_START\par
\{ 0x26baccb2, 0x6f42, 0x11d4, \{0xbc, 0xe7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81\} \} AND\par
\{ 0xf617b358, 0x12cf, 0x414a, 0xa0, 0x69, 0x60, 0x67, 0x7b, 0xda, 0x13, 0xb3 \}\par
DEPENDENCY_END\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\fs28 Bugs\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 No known bugs.\par
Report bugs to edk2-buildtools-devel@lists.sourceforge.net\f1\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\f0\fs28 Files\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 None\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\fs28 See also\par
\pard\nowidctlpar\sb200\cf2\b0\fs18 None\par
\pard\keep\keepn\nowidctlpar\s2\li-1440\sb400\sa60\sl-340\slmult0\cf1\b\fs28 License\par
\pard\nowidctlpar\cf2\b0\fs18 Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.\par
This program and the accompanying materials are licensed and made available \par
under the terms and conditions of the BSD License which accompanies this \par
distribution. The full text of the license may be found at\par
http://opensource.org/licenses/bsd-license.php\par
\par
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\par
\pard\nowidctlpar\sb200 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\par
\cf0\f1\par
\pard\nowidctlpar\f2\fs20\par
}