1. Fix a bug in add inf file to database from FDF file.
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 21 Sep 2007 07:38:07 +0000 (07:38 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 21 Sep 2007 07:38:07 +0000 (07:38 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@748 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/EdkIIWorkspaceBuild.py

index a018737..0421c03 100755 (executable)
@@ -949,8 +949,9 @@ class WorkspaceBuild(object):
     # Check if the module is defined in <Compentent> of <Platform>\r
     #\r
     def IsModuleDefinedInPlatform(self, Inf, Arch, InfList):\r
-        if Inf in InfList:\r
-            return True\r
+        for InfFile in InfList:\r
+            if Inf == NormPath(InfFile):\r
+                return True\r
         Inf = NormPath(Inf)\r
         for Dsc in self.DscDatabase.values():\r
             for LibraryClass in Dsc.Platform.LibraryClasses.LibraryList:\r