The current Makefile only checks the primary python file, such as build.py and does...
authorlhauch <larry.hauch@intel.com>
Fri, 12 Sep 2014 22:59:04 +0000 (22:59 +0000)
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Sep 2014 22:59:04 +0000 (22:59 +0000)
This modification adds all of the other files within the tool’s directory tree that would be a cause to rebuild the tool.

The format in the Makefile for listing these other files was selected to allow the nightly build script to detect changes in the additional files.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lhauch <larry.hauch@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16103 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/Python/Makefile

index 0c332afbed3c9519bf88a72b50c3311ed520a152..6436e5b7ff64238d39a285a1efeb77ff9cc0af04 100644 (file)
@@ -50,34 +50,164 @@ COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \
               $(BASE_TOOLS_PATH)\Source\Python\Common\TargetTxtClassObject.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Common\ToolDefClassObject.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Common\VpdInfoFile.py \\r
-              $(BASE_TOOLS_PATH)\Source\Python\Common\__init__.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Common\BuildVersion.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Workspace\BuildClassObject.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaDataTable.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaFileParser.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Workspace\MetaFileTable.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Workspace\WorkspaceDatabase.py \\r
-              $(BASE_TOOLS_PATH)\Source\Python\Workspace\__init__.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Autogen\AutoGen.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Autogen\BuildEngine.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Autogen\GenC.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Autogen\GenDepex.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Autogen\GenMake.py \\r
               $(BASE_TOOLS_PATH)\Source\Python\Autogen\StrGather.py \\r
-              $(BASE_TOOLS_PATH)\Source\Python\Autogen\UniClassObject.py \\r
-              $(BASE_TOOLS_PATH)\Source\Python\Autogen\__init__.py\r
+              $(BASE_TOOLS_PATH)\Source\Python\Autogen\UniClassObject.py\r
+\r
+CMD_BUILD=$(BASE_TOOLS_PATH)\Source\Python\build\BuildReport.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\c.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\CLexer.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\CodeFragment.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\CodeFragmentCollector.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\CParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\Database.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\EfiCompressor.pyd \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\Eot.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\EotGlobalData.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\EotToolError.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\FileProfile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\FvImage.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\InfParserLite.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\LzmaCompressor.pyd \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\Parser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\ParserWarning.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\Eot\Report.py\r
+\r
+CMD_GENFDS=$(BASE_TOOLS_PATH)\Source\Python\GenFds\AprioriSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Attribute.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Capsule.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\CapsuleData.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\ComponentStatement.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\CompressSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\DataSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\DepexSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\EfiSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Fd.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\FdfParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Ffs.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\FfsFileStatement.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\FfsInfStatement.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Fv.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\FvImageSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFdsGlobalVariable.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\GuidSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\OptionRom.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\OptRomFileStatement.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\OptRomInfStatement.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Region.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Rule.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\RuleComplexFile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\RuleSimpleFile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Section.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\UiSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\VerSection.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\GenFds\Vtf.py\r
+\r
+CMD_BPDG=$(BASE_TOOLS_PATH)\Source\Python\BPDG\GenVpd.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\BPDG\StringTable.py\r
+\r
+CMD_UPT=$(BASE_TOOLS_PATH)\Source\Python\UPT\Core\DependencyRules.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\DistributionPackageClass.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\FileHook.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\IpiDb.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Core\PackageFile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Dll\sqlite3.dll \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenDecFile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenInfFile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenMetaFileMisc.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\GenMetaFile\GenXmlFile.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\InstallPkg.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\InventoryWs.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\CommentGenerating.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\CommentParsing.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\DataType.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\ExpressionValidate.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\GlobalData.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\Misc.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\ParserValidate.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\Parsing.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\String.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\UniClassObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Library\Xml\XmlRoutines.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Logger\Log.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Logger\StringTable.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Logger\ToolError.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\MkPkg.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\DecObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfBinaryObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfBuildOptionObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfCommonObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfDefineCommonObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfDefineObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfDepexObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfGuidObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfHeaderObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfLibraryClassesObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfMisc.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfPackagesObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfPcdObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfPpiObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfProtocolObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfSoucesObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\Parser\InfUserExtensionObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\POM\CommonObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\POM\ModuleObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Object\POM\PackageObject.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\DecParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\DecParserMisc.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfAsBuiltProcess.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfBinarySectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfBuildOptionSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfDefineSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfDepexSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfGuidPpiProtocolSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfLibrarySectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfPackageSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfParserMisc.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfPcdSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Parser\InfSourceSectionParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\PomAdapter\DecPomAlignment.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\PomAdapter\InfPomAlignment.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\PomAdapter\InfPomAlignmentMisc.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\ReplacePkg.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\RmPkg.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\CommentGeneratingUnitTest.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\CommentParsingUnitTest.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\DecParserTest.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\DecParserUnitTest.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\UnitTest\InfBinarySectionTest.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\CommonXml.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\GuidProtocolPpiXml.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\IniToXml.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\ModuleSurfaceAreaXml.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\PackageSurfaceAreaXml.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\PcdXml.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\XmlParser.py \\r
+    $(BASE_TOOLS_PATH)\Source\Python\UPT\Xml\XmlParserMisc.py\r
 \r
-UPT_BUILDVERSION_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\UPT\BuildVersion.py\r
               \r
 all: SetPythonPath $(APPLICATIONS)\r
 \r
 SetPythonPath:\r
   set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\Python\r
 \r
-$(BIN_DIR)\build.exe: $(BASE_TOOLS_PATH)\Source\Python\build\build.py $(COMMON_PYTHON)\r
+$(BIN_DIR)\build.exe: $(BASE_TOOLS_PATH)\Source\Python\build\build.py $(COMMON_PYTHON) $(CMD_BUILD)\r
   @pushd . & @cd build & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) build.py & @popd\r
 \r
-$(BIN_DIR)\GenFds.exe: $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py $(COMMON_PYTHON)\r
+$(BIN_DIR)\GenFds.exe: $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py $(COMMON_PYTHON) $(CMD_GENFDS)\r
   @pushd . & @cd GenFds & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenFds.py & @popd\r
 \r
 $(BIN_DIR)\Trim.exe: $(BASE_TOOLS_PATH)\Source\Python\Trim\Trim.py $(COMMON_PYTHON)\r
@@ -95,10 +225,10 @@ $(BIN_DIR)\GenPatchPcdTable.exe: $(BASE_TOOLS_PATH)\Source\Python\GenPatchPcdTab
 $(BIN_DIR)\PatchPcdValue.exe: $(BASE_TOOLS_PATH)\Source\Python\PatchPcdValue\PatchPcdValue.py $(COMMON_PYTHON)\r
   @pushd . & @cd PatchPcdValue & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) PatchPcdValue.py & @popd\r
 \r
-$(BIN_DIR)\BPDG.exe: $(BASE_TOOLS_PATH)\Source\Python\BPDG\BPDG.py $(COMMON_PYTHON)\r
+$(BIN_DIR)\BPDG.exe: $(BASE_TOOLS_PATH)\Source\Python\BPDG\BPDG.py $(COMMON_PYTHON) $(CMD_BPDG)\r
   @pushd . & @cd BPDG & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) BPDG.py & @popd\r
 \r
-$(BIN_DIR)\UPT.exe: $(BASE_TOOLS_PATH)\Source\Python\UPT\UPT.py $(UPT_BUILDVERSION_PYTHON)\r
+$(BIN_DIR)\UPT.exe: $(BASE_TOOLS_PATH)\Source\Python\UPT\UPT.py $(CMD_UPT)\r
   @pushd . & @cd UPT & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) UPT.py & @popd\r
 \r
 $(BIN_DIR)\Rsa2048Sha256Sign.exe: $(BASE_TOOLS_PATH)\Source\Python\Rsa2048Sha256Sign\Rsa2048Sha256Sign.py\r