|
From: <qh...@us...> - 2010-05-12 01:33:18
|
Revision: 1970
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=1970&view=rev
Author: qhuang8
Date: 2010-05-12 01:33:12 +0000 (Wed, 12 May 2010)
Log Message:
-----------
Ignore the [depex] for user-defined modules as the contents of them should be analyzed by 3rd party tool.
This fix avoids the build.exe crash when [depex] section appears in module INF with USER_DEFINED module type.
Modified Paths:
--------------
trunk/BaseTools/Source/Python/AutoGen/AutoGen.py
Modified: trunk/BaseTools/Source/Python/AutoGen/AutoGen.py
===================================================================
--- trunk/BaseTools/Source/Python/AutoGen/AutoGen.py 2010-05-10 21:21:44 UTC (rev 1969)
+++ trunk/BaseTools/Source/Python/AutoGen/AutoGen.py 2010-05-12 01:33:12 UTC (rev 1970)
@@ -1953,8 +1953,10 @@
return
for ModuleType in self.DepexList:
- if len(self.DepexList[ModuleType]) == 0:
+ # Ignore empty [depex] section or [depex] section for "USER_DEFINED" module
+ if len(self.DepexList[ModuleType]) == 0 or ModuleType == "USER_DEFINED":
continue
+
Dpx = GenDepex.DependencyExpression(self.DepexList[ModuleType], ModuleType, True)
DpxFile = gAutoGenDepexFileName % {"module_name" : self.Name}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|