{\rtf1\adeflang1025\ansi\ansicpg1252\uc2\adeff0\deff0\stshfdbch13\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe2052{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman{\*\falt Times New Roman};}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial{\*\falt Helvetica};}
{\f148\froman\fcharset238\fprq2 Times New Roman CE{\*\falt Times New Roman};}{\f149\froman\fcharset204\fprq2 Times New Roman Cyr{\*\falt Times New Roman};}{\f151\froman\fcharset161\fprq2 Times New Roman Greek{\*\falt Times New Roman};}
{\f152\froman\fcharset162\fprq2 Times New Roman Tur{\*\falt Times New Roman};}{\f153\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew){\*\falt Times New Roman};}
{\f154\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic){\*\falt Times New Roman};}{\f155\froman\fcharset186\fprq2 Times New Roman Baltic{\*\falt Times New Roman};}
{\f156\froman\fcharset163\fprq2 Times New Roman (Vietnamese){\*\falt Times New Roman};}{\f158\fswiss\fcharset238\fprq2 Arial CE{\*\falt Helvetica};}{\f159\fswiss\fcharset204\fprq2 Arial Cyr{\*\falt Helvetica};}
{\f168\fmodern\fcharset238\fprq1 Courier New CE;}{\f169\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f171\fmodern\fcharset161\fprq1 Courier New Greek;}{\f172\fmodern\fcharset162\fprq1 Courier New Tur;}
{\f173\fbidi \fmodern\fcharset177\fprq1 Courier New (Hebrew);}{\f174\fbidi \fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f175\fmodern\fcharset186\fprq1 Courier New Baltic;}{\f176\fmodern\fcharset163\fprq1 Courier New (Vietnamese);}
\rsid16451401\rsid16522316\rsid16662227\rsid16678240}{\*\generator Microsoft Word 11.0.0000;}{\info{\title Name}{\author lgao4}{\operator lgao4}{\creatim\yr2009\mo5\dy27\hr16\min30}{\revtim\yr2010\mo3\dy18\hr17\min13}{\version123}{\edmins6788}{\nofpages3}
Convert the preprocessed source files by C compiler to the expected style file to be processed further by EDKII tool.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14319197
\fs18\cf1\insrsid2834565 \hich\af39\dbch\af13\loch\f39 Trim tool is used to process}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid10111996 \hich\af39\dbch\af13\loch\f39 the}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid7083301
to remove the unused content to generate the file }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid1268469\charrsid16662227 \hich\af39\dbch\af13\loch\f39 to be process}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid16662227
\hich\af39\dbch\af13\loch\f39 ed further by EDKII}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid1268469\charrsid16662227 \hich\af39\dbch\af13\loch\f39 tool}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid16662227
\par }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14031714 \hich\af39\dbch\af13\loch\f39 Trim tool can also be}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid9727019 \hich\af39\dbch\af13\loch\f39 used to process}{\rtlch\fcs1 \af39\afs18
\ltrch\fcs0 \fs18\cf1\insrsid5526939 \hich\af39\dbch\af13\loch\f39 the source file to gene}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid6119006 \hich\af39\dbch\af13\loch\f39
rate the expected source file to work with EDKII build system and EDKII core code.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5526939 \hich\af39\dbch\af13\loch\f39 }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid9727019
\par }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid4415554 \hich\af39\dbch\af13\loch\f39 Trim tool is a usual tool to process }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14161869 \hich\af39\dbch\af13\loch\f39
the source file to generate the file that can be used in EDKII build system.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid15347528 \hich\af39\dbch\af13\loch\f39 It extends EDKII build system to support more source file
\ab\af39\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid13712758\charrsid12020283 \hich\af39\dbch\af13\loch\f39 input_f}{\rtlch\fcs1 \ab\af39\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid13712758 \hich\af39\dbch\af13\loch\f39 ile
\par \tab }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13712758\charrsid13712758 \hich\af39\dbch\af13\loch\f39 The input file may }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13712758 \hich\af39\dbch\af13\loch\f39
be the preprocessed source code, the preprocessed VFR file, ASL file or R8 framework source file.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13712758\charrsid13712758
The input file is preprocessed source code, including C or assembly code}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461 \hich\af39\dbch\af13\loch\f39 . All generated \hich\af39\dbch\af13\loch\f39
codes from the include header files are remove all.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5072733 \hich\af39\dbch\af13\loch\f39 Only content in source file is kept.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0
\par }\pard \ltrpar\ql \li360\ri0\widctlpar\wrapdefault\faauto\rin0\lin360\itap0\pararsid13712758 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461\charrsid5243461 \hich\af39\dbch\af13\loch\f39 The input file is preprocessed VFR file}{\rtlch\fcs1
\af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid8006249 \hich\af39\dbch\af13\loch\f39 . All generated codes from the include header files are remove except for the typedef structure.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461\charrsid5243461
The asl source include style Include(*.asi) will be changed to C style #include *.asi. The preprocessed asl file can be preprocessed by C compiler. }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461\charrsid5243461
\fs18\cf1\insrsid4806386 \hich\af39\dbch\af13\loch\f39 he input file is the EDK style source co\hich\af39\dbch\af13\loch\f39 de}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461\charrsid5243461 \hich\af39\dbch\af13\loch\f39
to be trimmed for ECP}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid8389258 \hich\af39\dbch\af13\loch\f39 platform. }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14754234 \hich\af39\dbch\af13\loch\f39 Some }{\rtlch\fcs1 \af39\afs18
\hich\af39\dbch\af13\loch\f39 source file}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14754234 \hich\af39\dbch\af13\loch\f39 will be modified}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid3946172 \hich\af39\dbch\af13\loch\f39 }{
\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid11999745 \hich\af39\dbch\af13\loch\f39 t}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid3946172 \hich\af39\dbch\af13\loch\f39 o work with}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0
\fs18\cf1\insrsid16016560 \hich\af39\dbch\af13\loch\f39 EDKII thunk and core drivers.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid15231892 \hich\af39\dbch\af13\loch\f39 \hich\f39 A window script tool \'93}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0
\fs18\cf1\insrsid15231892\charrsid15231892 \hich\af39\dbch\af13\loch\f39 ImportTool.bat}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid15231892 \loch\af39\dbch\af13\hich\f39 \'94\loch\f39 is created to}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0
\fs18\cf1\insrsid1329483 \hich\af39\dbch\af13\loch\f39 process a group of EDK framework source files in the same file directory. }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\lang1024\langfe1024\noproof\insrsid5243461
Convert standard hex format (0xabcd) to MASM format (abcdh)}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5445390 \hich\af39\dbch\af13\loch\f39 .}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461\charrsid5243461
\fs18\cf1\insrsid5243461\charrsid5243461 \hich\af39\dbch\af13\loch\f39 ile }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid15096111 \hich\af39\dbch\af13\loch\f39 is }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5243461\charrsid5243461
\hich\af39\dbch\af13\loch\f39 to store the trimmed content}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12996440 \hich\af39\dbch\af13\loch\f39 .}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid16412255\charrsid7676196
\fs18\cf1\insrsid16412255\charrsid7676196 \hich\af39\dbch\af13\loch\f39 with little information}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid11824846 \hich\af39\dbch\af13\loch\f39 in quiet mode.}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0
\fs18\cf1\insrsid6584826\charrsid11348610 \hich\af39\dbch\af13\loch\f39 how this help message and exit}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid6584826\charrsid3539264
\hich\af39\dbch\af13\loch\f39 Trim the preprocessed source file}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid13114200 \hich\af39\dbch\af13\loch\f39 (test.i)}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid8984532
\hich\af39\dbch\af13\loch\f39 by C compiler to }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid9373648 \hich\af39\dbch\af13\loch\f39 remove all }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid1520825 \hich\af39\dbch\af13\loch\f39
generated code}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5072733 \hich\af39\dbch\af13\loch\f39 s from the include header files by this source file}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14042727 \hich\af39\dbch\af13\loch\f39
(test.s) to the output file test.iii, which only contains}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5072733 \hich\af39\dbch\af13\loch\f39 }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14042727 \hich\af39\dbch\af13\loch\f39 the}{
\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid5332488 \hich\af39\dbch\af13\loch\f39 content in this source file}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14042727 \hich\af39\dbch\af13\loch\f39 (test.s)}{\rtlch\fcs1 \af39\afs18
\par }\pard \ltrpar\ql \li0\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid10093540 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid10093540 \hich\af39\dbch\af13\loch\f39 2. Trim the preprocesse\hich\af39\dbch\af13\loch\f39
d source file (test.i) by C compiler to remove all generated codes from the include header files by this source file }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid219956 \hich\af39\dbch\af13\loch\f39 (test.asm}{\rtlch\fcs1 \af39\afs18
\fs18\cf1\insrsid10183152\charrsid5243461 \hich\af39\dbch\af13\loch\f39 standard hex format (0xabcd) to MASM format (abcdh)}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid10093540 \hich\af39\dbch\af13\loch\f39
to the output file test.iii, which only contains the content in\hich\af39\dbch\af13\loch\f39 this source file (test.s).
3. Trim the preprocessed source file (test.i) by C compiler to remove all generated codes from the include header files by this source file }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid3169822 \hich\af39\dbch\af13\loch\f39 (test.vfr}{
\fs18\cf1\insrsid1793142 \hich\af39\dbch\af13\loch\f39 to the }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid16451401 \hich\af39\dbch\af13\loch\f39 C style }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid10642555
\hich\af39\dbch\af13\loch\f39 #include *.asi}{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid6563898 \hich\af39\dbch\af13\loch\f39 . The update ASL will output to }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid8022157
\fs24\lang1033\langfe2052\loch\af39\hich\af39\dbch\af13\cgrid\langnp1033\langfenp2052 {\rtlch\fcs1 \ab\af39\afs28 \ltrch\fcs0 \b\fs28\cf17\insrsid14319197 \hich\af39\dbch\af13\loch\f39 See also
\par \hich\af39\dbch\af13\loch\f39 THE PROGRAM IS DISTRIBUTED UND\hich\af39\dbch\af13\loch\f39 ER THE BSD LICENSE ON AN "AS IS" BASIS,
\par }\pard \ltrpar\ql \li0\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid14319197 \hich\af39\dbch\af13\loch\f39 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.