{\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;}}
\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\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\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
\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
\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