self.Progress.Start("Generating code/makefile for platform")\r
AutoGenResult = PlatformAutoGen.New(self.Ewb, Platform, BuildTarget,\r
ToolChain, Arch, CreateDepModuleAutoGenObject)\r
-\r
-\r
+ if AutoGenResult == None:\r
+ return\r
\r
# for target which must generate AutoGen code and makefile\r
AutoGenResult.CreateCodeFile(CreateDepModuleCodeFile)\r
else:\r
AutoGenResult = PlatformAutoGen.New(self.Ewb, Platform, BuildTarget,\r
ToolChain, Arch, False)\r
+ if AutoGenResult == None:\r
+ return\r
\r
EdkLogger.info("")\r
BuildCommand = AutoGenResult.GetBuildCommand()\r
for BuildTarget in self.BuildTargetList:\r
for ToolChain in self.ToolChainList:\r
Pa = PlatformAutoGen.New(self.Ewb, self.PlatformFile, BuildTarget, ToolChain, self.ArchList)\r
+ if Pa == None:\r
+ continue\r
# multi-thread exit flag\r
ExitFlag = threading.Event()\r
ExitFlag.clear()\r
for Module in Pa.Platform[Arch].Modules:\r
# Get ModuleAutoGen object to generate C code file and makefile\r
Ma = ModuleAutoGen.New(self.Ewb, self.PlatformFile, Module, BuildTarget, ToolChain, Arch)\r
+ if Ma == None:\r
+ continue\r
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'\r
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:\r
# for target which must generate AutoGen code and makefile\r