BaseTools: use set instead of list for a variable to be used with in
[mirror_edk2.git] / BaseTools / Source / Python / Makefile
CommitLineData
c69f724d 1## @file\r
2# Windows makefile for Python tools build.\r
3#\r
95cc4962 4# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
40d841f6 5# This program and the accompanying materials\r
c69f724d 6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13\r
efb1e40f
LG
14!IFNDEF PYTHON_HOME\r
15!ERROR PYTHON_HOME must be defined!\r
c69f724d 16!ENDIF\r
17\r
efb1e40f 18!IFDEF PYTHON_FREEZER_PATH\r
4afd3d04
LG
19!IF EXIST ($(PYTHON_FREEZER_PATH)\cxfreeze)\r
20# Using cx_Freeze 4.2.3 with Python 2.7.2\r
89a81153 21FREEZE=$(PYTHON_HOME)\python $(PYTHON_FREEZER_PATH)\cxfreeze\r
4afd3d04 22!ELSE\r
efb1e40f
LG
23!ERROR PYTHON_FREEZER_PATH does not exist!\r
24!ENDIF\r
4afd3d04 25!ENDIF\r
c69f724d 26\r
4234283c 27MODULES=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8,encodings.utf_16_le,encodings.latin_1,encodings.ascii\r
c69f724d 28\r
b4dfada8
LG
29# DOS del command doesn't support ":\\" in the file path, such as j:\\BaseTools. Convert ":\\" to ":\"\r
30BASE_TOOLS_PATH = $(BASE_TOOLS_PATH::\\=:\)\r
31EDK_TOOLS_PATH = $(EDK_TOOLS_PATH::\\=:\)\r
32\r
c69f724d 33BIN_DIR=$(EDK_TOOLS_PATH)\Bin\Win32\r
34\r
cd1c9604 35APPLICATIONS=$(BIN_DIR)\build.exe $(BIN_DIR)\GenFds.exe $(BIN_DIR)\Trim.exe $(BIN_DIR)\TargetTool.exe $(BIN_DIR)\GenDepex.exe $(BIN_DIR)\GenPatchPcdTable.exe $(BIN_DIR)\PatchPcdValue.exe $(BIN_DIR)\BPDG.exe $(BIN_DIR)\UPT.exe $(BIN_DIR)\Rsa2048Sha256Sign.exe $(BIN_DIR)\Rsa2048Sha256GenerateKeys.exe $(BIN_DIR)\Pkcs7Sign.exe $(BIN_DIR)\Ecc.exe\r
30fdf114
LG
36\r
37COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \\r
38 $(BASE_TOOLS_PATH)\Source\Python\Common\Database.py \\r
39 $(BASE_TOOLS_PATH)\Source\Python\Common\DataType.py \\r
30fdf114 40 $(BASE_TOOLS_PATH)\Source\Python\Common\EdkIIWorkspace.py \\r
30fdf114 41 $(BASE_TOOLS_PATH)\Source\Python\Common\EdkLogger.py \\r
ec53da7b 42 $(BASE_TOOLS_PATH)\Source\Python\Common\Expression.py \\r
30fdf114
LG
43 $(BASE_TOOLS_PATH)\Source\Python\Common\GlobalData.py \\r
44 $(BASE_TOOLS_PATH)\Source\Python\Common\Identification.py \\r
ec53da7b
LG
45 $(BASE_TOOLS_PATH)\Source\Python\Common\LongFilePathOs.py \\r
46 $(BASE_TOOLS_PATH)\Source\Python\Common\LongFilePathOsPath.py \\r
47 $(BASE_TOOLS_PATH)\Source\Python\Common\LongFilePathSupport.py \\r
30fdf114
LG
48 $(BASE_TOOLS_PATH)\Source\Python\Common\MigrationUtilities.py \\r
49 $(BASE_TOOLS_PATH)\Source\Python\Common\Misc.py \\r
50 $(BASE_TOOLS_PATH)\Source\Python\Common\Parsing.py \\r
51 $(BASE_TOOLS_PATH)\Source\Python\Common\String.py \\r
52 $(BASE_TOOLS_PATH)\Source\Python\Common\TargetTxtClassObject.py \\r
53 $(BASE_TOOLS_PATH)\Source\Python\Common\ToolDefClassObject.py \\r
e56468c0 54 $(BASE_TOOLS_PATH)\Source\Python\Common\VpdInfoFile.py \\r
b36d134f 55 $(BASE_TOOLS_PATH)\Source\Python\Common\BuildVersion.py \\r
c2305a4a 56 $(BASE_TOOLS_PATH)\Source\Python\Common\MultipleWorkspace.py \\r
ec53da7b
LG
57 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\CommonClass.py \\r
58 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\DataClass.py \\r
59 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\Exceptions.py \\r
60 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\FdfClass.py \\r
61 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\ModuleClass.py \\r
62 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\PackageClass.py \\r
63 $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\PlatformClass.py \\r
64 $(BASE_TOOLS_PATH)\Source\Python\Table\Table.py \\r
65 $(BASE_TOOLS_PATH)\Source\Python\Table\TableDataModel.py \\r
66 $(BASE_TOOLS_PATH)\Source\Python\Table\TableDec.py \\r
67 $(BASE_TOOLS_PATH)\Source\Python\Table\TableDsc.py \\r
68 $(BASE_TOOLS_PATH)\Source\Python\Table\TableEotReport.py \\r
69 $(BASE_TOOLS_PATH)\Source\Python\Table\TableFdf.py \\r
70 $(BASE_TOOLS_PATH)\Source\Python\Table\TableFile.py \\r
71 $(BASE_TOOLS_PATH)\Source\Python\Table\TableFunction.py \\r
72 $(BASE_TOOLS_PATH)\Source\Python\Table\TableIdentifier.py \\r
73 $(BASE_TOOLS_PATH)\Source\Python\Table\TableInf.py \\r
74 $(BASE_TOOLS_PATH)\Source\Python\Table\TablePcd.py \\r
75 $(BASE_TOOLS_PATH)\Source\Python\Table\TableQuery.py \\r
76 $(BASE_TOOLS_PATH)\Source\Python\Table\TableReport.py \\r
30fdf114
LG
77 $(BASE_TOOLS_PATH)\Source\Python\Workspace\BuildClassObject.py \\r
78 $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaDataTable.py \\r
ec53da7b 79 $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaFileCommentParser.py \\r
30fdf114
LG
80 $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaFileParser.py \\r
81 $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaFileTable.py \\r
ec53da7b 82 $(BASE_TOOLS_PATH)\Source\Python\Workspace\WorkspaceCommon.py \\r
30fdf114 83 $(BASE_TOOLS_PATH)\Source\Python\Workspace\WorkspaceDatabase.py \\r
02f6fd1d
LG
84 $(BASE_TOOLS_PATH)\Source\Python\Workspace\DecBuildData.py \\r
85 $(BASE_TOOLS_PATH)\Source\Python\Workspace\DscBuildData.py \\r
86 $(BASE_TOOLS_PATH)\Source\Python\Workspace\InfBuildData.py \\r
ec53da7b
LG
87 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\AutoGen.py \\r
88 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\BuildEngine.py \\r
89 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenC.py \\r
90 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenDepex.py \\r
91 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenMake.py \\r
92 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenPcdDb.py \\r
93 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\InfSectionParser.py \\r
94 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\StrGather.py \\r
ff6096f5 95 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\UniClassObject.py \\r
96 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\ValidCheckingInfoObject.py \\r
02f6fd1d 97 $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenVar.py \\r
ff6096f5 98 $(BASE_TOOLS_PATH)\Source\Python\Common\RangeExpression.py \\r
99 $(BASE_TOOLS_PATH)\Source\Python\Common\VariableAttributes.py\r
6c22c0a3 100\r
101CMD_BUILD=$(BASE_TOOLS_PATH)\Source\Python\build\BuildReport.py \\r
ec53da7b
LG
102 $(BASE_TOOLS_PATH)\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py \\r
103 $(BASE_TOOLS_PATH)\Source\Python\PatchPcdValue\PatchPcdValue.py \\r
6c22c0a3 104 $(BASE_TOOLS_PATH)\Source\Python\Eot\c.py \\r
105 $(BASE_TOOLS_PATH)\Source\Python\Eot\CLexer.py \\r
106 $(BASE_TOOLS_PATH)\Source\Python\Eot\CodeFragment.py \\r
107 $(BASE_TOOLS_PATH)\Source\Python\Eot\CodeFragmentCollector.py \\r
108 $(BASE_TOOLS_PATH)\Source\Python\Eot\CParser.py \\r
109 $(BASE_TOOLS_PATH)\Source\Python\Eot\Database.py \\r
110 $(BASE_TOOLS_PATH)\Source\Python\Eot\EfiCompressor.pyd \\r
111 $(BASE_TOOLS_PATH)\Source\Python\Eot\Eot.py \\r
112 $(BASE_TOOLS_PATH)\Source\Python\Eot\EotGlobalData.py \\r
113 $(BASE_TOOLS_PATH)\Source\Python\Eot\EotToolError.py \\r
114 $(BASE_TOOLS_PATH)\Source\Python\Eot\FileProfile.py \\r
115 $(BASE_TOOLS_PATH)\Source\Python\Eot\FvImage.py \\r
116 $(BASE_TOOLS_PATH)\Source\Python\Eot\InfParserLite.py \\r
117 $(BASE_TOOLS_PATH)\Source\Python\Eot\LzmaCompressor.pyd \\r
118 $(BASE_TOOLS_PATH)\Source\Python\Eot\Parser.py \\r
119 $(BASE_TOOLS_PATH)\Source\Python\Eot\ParserWarning.py \\r
120 $(BASE_TOOLS_PATH)\Source\Python\Eot\Report.py\r
121\r
122CMD_GENFDS=$(BASE_TOOLS_PATH)\Source\Python\GenFds\AprioriSection.py \\r
123 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Attribute.py \\r
124 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Capsule.py \\r
125 $(BASE_TOOLS_PATH)\Source\Python\GenFds\CapsuleData.py \\r
126 $(BASE_TOOLS_PATH)\Source\Python\GenFds\ComponentStatement.py \\r
127 $(BASE_TOOLS_PATH)\Source\Python\GenFds\CompressSection.py \\r
128 $(BASE_TOOLS_PATH)\Source\Python\GenFds\DataSection.py \\r
129 $(BASE_TOOLS_PATH)\Source\Python\GenFds\DepexSection.py \\r
130 $(BASE_TOOLS_PATH)\Source\Python\GenFds\EfiSection.py \\r
131 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Fd.py \\r
132 $(BASE_TOOLS_PATH)\Source\Python\GenFds\FdfParser.py \\r
133 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Ffs.py \\r
134 $(BASE_TOOLS_PATH)\Source\Python\GenFds\FfsFileStatement.py \\r
135 $(BASE_TOOLS_PATH)\Source\Python\GenFds\FfsInfStatement.py \\r
136 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Fv.py \\r
137 $(BASE_TOOLS_PATH)\Source\Python\GenFds\FvImageSection.py \\r
138 $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py \\r
139 $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFdsGlobalVariable.py \\r
140 $(BASE_TOOLS_PATH)\Source\Python\GenFds\GuidSection.py \\r
141 $(BASE_TOOLS_PATH)\Source\Python\GenFds\OptionRom.py \\r
142 $(BASE_TOOLS_PATH)\Source\Python\GenFds\OptRomFileStatement.py \\r
143 $(BASE_TOOLS_PATH)\Source\Python\GenFds\OptRomInfStatement.py \\r
144 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Region.py \\r
145 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Rule.py \\r
146 $(BASE_TOOLS_PATH)\Source\Python\GenFds\RuleComplexFile.py \\r
147 $(BASE_TOOLS_PATH)\Source\Python\GenFds\RuleSimpleFile.py \\r
148 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Section.py \\r
149 $(BASE_TOOLS_PATH)\Source\Python\GenFds\UiSection.py \\r
150 $(BASE_TOOLS_PATH)\Source\Python\GenFds\VerSection.py \\r
151 $(BASE_TOOLS_PATH)\Source\Python\GenFds\Vtf.py\r
152\r
153CMD_BPDG=$(BASE_TOOLS_PATH)\Source\Python\BPDG\GenVpd.py \\r
154 $(BASE_TOOLS_PATH)\Source\Python\BPDG\StringTable.py\r
155\r
156CMD_UPT=$(BASE_TOOLS_PATH)\Source\Python\UPT\Core\DependencyRules.py \\r
157 $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\DistributionPackageClass.py \\r
158 $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\FileHook.py \\r
159 $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\IpiDb.py \\r
160 $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\PackageFile.py \\r
161 $(BASE_TOOLS_PATH)\Source\Python\UPT\Dll\sqlite3.dll \\r
162 $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenDecFile.py \\r
163 $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenInfFile.py \\r
164 $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenMetaFileMisc.py \\r
165 $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenXmlFile.py \\r
166 $(BASE_TOOLS_PATH)\Source\Python\UPT\InstallPkg.py \\r
167 $(BASE_TOOLS_PATH)\Source\Python\UPT\InventoryWs.py \\r
168 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\CommentGenerating.py \\r
169 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\CommentParsing.py \\r
170 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\DataType.py \\r
171 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\ExpressionValidate.py \\r
172 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\GlobalData.py \\r
173 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\Misc.py \\r
174 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\ParserValidate.py \\r
175 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\Parsing.py \\r
176 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\String.py \\r
177 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\UniClassObject.py \\r
178 $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\Xml\XmlRoutines.py \\r
179 $(BASE_TOOLS_PATH)\Source\Python\UPT\Logger\Log.py \\r
180 $(BASE_TOOLS_PATH)\Source\Python\UPT\Logger\StringTable.py \\r
181 $(BASE_TOOLS_PATH)\Source\Python\UPT\Logger\ToolError.py \\r
182 $(BASE_TOOLS_PATH)\Source\Python\UPT\MkPkg.py \\r
183 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\DecObject.py \\r
184 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfBinaryObject.py \\r
185 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfBuildOptionObject.py \\r
186 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfCommonObject.py \\r
187 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfDefineCommonObject.py \\r
188 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfDefineObject.py \\r
189 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfDepexObject.py \\r
190 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfGuidObject.py \\r
191 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfHeaderObject.py \\r
192 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfLibraryClassesObject.py \\r
193 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfMisc.py \\r
194 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfPackagesObject.py \\r
195 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfPcdObject.py \\r
196 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfPpiObject.py \\r
197 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfProtocolObject.py \\r
198 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfSoucesObject.py \\r
199 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfUserExtensionObject.py \\r
200 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\POM\CommonObject.py \\r
201 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\POM\ModuleObject.py \\r
202 $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\POM\PackageObject.py \\r
203 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\DecParser.py \\r
204 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\DecParserMisc.py \\r
205 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfAsBuiltProcess.py \\r
206 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfBinarySectionParser.py \\r
207 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfBuildOptionSectionParser.py \\r
208 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfDefineSectionParser.py \\r
209 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfDepexSectionParser.py \\r
210 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfGuidPpiProtocolSectionParser.py \\r
211 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfLibrarySectionParser.py \\r
212 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfPackageSectionParser.py \\r
213 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfParser.py \\r
214 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfParserMisc.py \\r
215 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfPcdSectionParser.py \\r
216 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfSectionParser.py \\r
217 $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfSourceSectionParser.py \\r
218 $(BASE_TOOLS_PATH)\Source\Python\UPT\PomAdapter\DecPomAlignment.py \\r
219 $(BASE_TOOLS_PATH)\Source\Python\UPT\PomAdapter\InfPomAlignment.py \\r
220 $(BASE_TOOLS_PATH)\Source\Python\UPT\PomAdapter\InfPomAlignmentMisc.py \\r
221 $(BASE_TOOLS_PATH)\Source\Python\UPT\ReplacePkg.py \\r
222 $(BASE_TOOLS_PATH)\Source\Python\UPT\RmPkg.py \\r
223 $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\CommentGeneratingUnitTest.py \\r
224 $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\CommentParsingUnitTest.py \\r
225 $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\DecParserTest.py \\r
226 $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\DecParserUnitTest.py \\r
227 $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\InfBinarySectionTest.py \\r
228 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\CommonXml.py \\r
229 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\GuidProtocolPpiXml.py \\r
230 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\IniToXml.py \\r
231 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\ModuleSurfaceAreaXml.py \\r
232 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\PackageSurfaceAreaXml.py \\r
233 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\PcdXml.py \\r
234 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\XmlParser.py \\r
235 $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\XmlParserMisc.py\r
30fdf114 236\r
7807dea5
HW
237CMD_ECC=$(BASE_TOOLS_PATH)\Source\Python\Ecc\c.py \\r
238 $(BASE_TOOLS_PATH)\Source\Python\Ecc\Check.py \\r
239 $(BASE_TOOLS_PATH)\Source\Python\Ecc\CLexer.py \\r
240 $(BASE_TOOLS_PATH)\Source\Python\Ecc\CodeFragment.py \\r
241 $(BASE_TOOLS_PATH)\Source\Python\Ecc\CodeFragmentCollector.py \\r
242 $(BASE_TOOLS_PATH)\Source\Python\Ecc\Configuration.py \\r
243 $(BASE_TOOLS_PATH)\Source\Python\Ecc\CParser.py \\r
244 $(BASE_TOOLS_PATH)\Source\Python\Ecc\Database.py \\r
245 $(BASE_TOOLS_PATH)\Source\Python\Ecc\Ecc.py \\r
246 $(BASE_TOOLS_PATH)\Source\Python\Ecc\EccGlobalData.py \\r
247 $(BASE_TOOLS_PATH)\Source\Python\Ecc\EccToolError.py \\r
248 $(BASE_TOOLS_PATH)\Source\Python\Ecc\Exception.py \\r
249 $(BASE_TOOLS_PATH)\Source\Python\Ecc\FileProfile.py \\r
250 $(BASE_TOOLS_PATH)\Source\Python\Ecc\MetaDataParser.py \\r
251 $(BASE_TOOLS_PATH)\Source\Python\Ecc\ParserWarning.py \\r
252 $(BASE_TOOLS_PATH)\Source\Python\Ecc\MetaFileWorkspace\MetaDataTable.py \\r
253 $(BASE_TOOLS_PATH)\Source\Python\Ecc\MetaFileWorkspace\MetaFileParser.py \\r
254 $(BASE_TOOLS_PATH)\Source\Python\Ecc\MetaFileWorkspace\MetaFileTable.py \\r
255 $(BASE_TOOLS_PATH)\Source\Python\Ecc\Xml\XmlRoutines.py\r
256\r
efb1e40f 257!IFDEF PYTHON_FREEZER_PATH\r
c69f724d 258all: SetPythonPath $(APPLICATIONS)\r
efb1e40f
LG
259!ELSE\r
260all:\r
261 @echo.\r
262 @echo !!! WARNING !!! PYTHON_FREEZER_PATH is not set.\r
263 @echo Cannot make executable from Python code, executing python scripts instead !!!\r
264!ENDIF\r
c69f724d 265\r
266SetPythonPath:\r
267 set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\Python\r
268\r
ec53da7b 269$(BIN_DIR)\build.exe: $(BASE_TOOLS_PATH)\Source\Python\build\build.py $(COMMON_PYTHON) $(CMD_BUILD) $(CMD_GENFDS)\r
17947564 270 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) build\build.py\r
c69f724d 271\r
6c22c0a3 272$(BIN_DIR)\GenFds.exe: $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py $(COMMON_PYTHON) $(CMD_GENFDS)\r
17947564 273 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenFds\GenFds.py\r
c69f724d 274\r
275$(BIN_DIR)\Trim.exe: $(BASE_TOOLS_PATH)\Source\Python\Trim\Trim.py $(COMMON_PYTHON)\r
17947564 276 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Trim\Trim.py\r
c69f724d 277\r
30fdf114 278$(BIN_DIR)\GenDepex.exe: $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenDepex.py $(COMMON_PYTHON)\r
17947564 279 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) AutoGen\GenDepex.py\r
30fdf114
LG
280\r
281$(BIN_DIR)\TargetTool.exe: $(BASE_TOOLS_PATH)\Source\Python\TargetTool\TargetTool.py $(COMMON_PYTHON)\r
17947564 282 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) TargetTool\TargetTool.py\r
30fdf114 283\r
c69f724d 284$(BIN_DIR)\GenPatchPcdTable.exe: $(BASE_TOOLS_PATH)\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py $(COMMON_PYTHON)\r
17947564 285 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenPatchPcdTable\GenPatchPcdTable.py\r
52302d4d 286\r
c69f724d 287$(BIN_DIR)\PatchPcdValue.exe: $(BASE_TOOLS_PATH)\Source\Python\PatchPcdValue\PatchPcdValue.py $(COMMON_PYTHON)\r
17947564 288 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) PatchPcdValue\PatchPcdValue.py\r
52302d4d 289\r
6c22c0a3 290$(BIN_DIR)\BPDG.exe: $(BASE_TOOLS_PATH)\Source\Python\BPDG\BPDG.py $(COMMON_PYTHON) $(CMD_BPDG)\r
17947564 291 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) BPDG\BPDG.py\r
4234283c 292\r
6c22c0a3 293$(BIN_DIR)\UPT.exe: $(BASE_TOOLS_PATH)\Source\Python\UPT\UPT.py $(CMD_UPT)\r
17947564 294 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) UPT\UPT.py\r
4234283c 295\r
17947564
LH
296$(BIN_DIR)\Rsa2048Sha256Sign.exe: $(BASE_TOOLS_PATH)\Source\Python\Rsa2048Sha256Sign\Rsa2048Sha256Sign.py $(BIN_DIR)\TestSigningPrivateKey.pem\r
297 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Rsa2048Sha256Sign\Rsa2048Sha256Sign.py\r
298\r
299$(BIN_DIR)\TestSigningPrivateKey.pem: $(BASE_TOOLS_PATH)\Source\Python\Rsa2048Sha256Sign\TestSigningPrivateKey.pem\r
300 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Rsa2048Sha256Sign\TestSigningPrivateKey.pem $(BIN_DIR)\TestSigningPrivateKey.pem\r
65ce860e
MK
301 \r
302$(BIN_DIR)\Rsa2048Sha256GenerateKeys.exe: $(BASE_TOOLS_PATH)\Source\Python\Rsa2048Sha256Sign\Rsa2048Sha256GenerateKeys.py\r
17947564
LH
303 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Rsa2048Sha256Sign\Rsa2048Sha256GenerateKeys.py\r
304\r
305$(BIN_DIR)\Ecc.exe: $(BASE_TOOLS_PATH)\Source\Python\Ecc\Ecc.py $(CMD_ECC) $(BIN_DIR)\config.ini $(BIN_DIR)\exception.xml\r
306 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Ecc\Ecc.py\r
307\r
308$(BIN_DIR)\config.ini: $(BASE_TOOLS_PATH)\Source\Python\Ecc\config.ini\r
309 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Ecc\config.ini $(BIN_DIR)\config.ini\r
b7668cce 310\r
17947564
LH
311$(BIN_DIR)\exception.xml: $(BASE_TOOLS_PATH)\Source\Python\Ecc\exception.xml\r
312 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Ecc\exception.xml $(BIN_DIR)\exception.xml\r
cd1c9604
YZ
313\r
314$(BIN_DIR)\Pkcs7Sign.exe: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\Pkcs7Sign.py $(BIN_DIR)\TestCert.pem $(BIN_DIR)\TestCert.pub.pem $(BIN_DIR)\TestRoot.pem $(BIN_DIR)\TestRoot.pub.pem $(BIN_DIR)\TestSub.pem $(BIN_DIR)\TestSub.pub.pem\r
315 @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Pkcs7Sign\Pkcs7Sign.py\r
316\r
317$(BIN_DIR)\TestCert.pem: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestCert.pem\r
318 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestCert.pem $(BIN_DIR)\TestCert.pem\r
319\r
320$(BIN_DIR)\TestCert.pub.pem: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestCert.pub.pem\r
321 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestCert.pub.pem $(BIN_DIR)\TestCert.pub.pem\r
322\r
323$(BIN_DIR)\TestSub.pem: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestSub.pem\r
324 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestSub.pem $(BIN_DIR)\TestSub.pem\r
325\r
326$(BIN_DIR)\TestSub.pub.pem: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestSub.pub.pem\r
327 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestSub.pub.pem $(BIN_DIR)\TestSub.pub.pem\r
328\r
329$(BIN_DIR)\TestRoot.pem: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestRoot.pem\r
330 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestRoot.pem $(BIN_DIR)\TestRoot.pem\r
331\r
332$(BIN_DIR)\TestRoot.pub.pem: $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestRoot.pub.pem\r
333 @copy /Y /B $(BASE_TOOLS_PATH)\Source\Python\Pkcs7Sign\TestRoot.pub.pem $(BIN_DIR)\TestRoot.pub.pem\r
334\r
30fdf114 335clean:\r
c69f724d 336cleanall: \r
337 @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll\r
efb1e40f 338 @del /f /q $(BASE_TOOLS_PATH)\Source\Python\*.pyc\r
c69f724d 339 @for %%i in ($(APPLICATIONS)) do @del /f /q %%i\r
340\r