git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@524 7335b...
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 8 Aug 2007 09:15:57 +0000 (09:15 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 8 Aug 2007 09:15:57 +0000 (09:15 +0000)
Source/Python/Common/EdkIIWorkspaceBuild.py

index 7869069..886ede7 100644 (file)
@@ -862,15 +862,16 @@ class WorkspaceBuild(object):
     # Check if the module is defined in <Compentent> of <Platform>\r
     #\r
     def IsModuleDefinedInPlatform(self, Inf, Arch):\r
+        Inf = NormPath(Inf)\r
         for Dsc in self.DscDatabase.values():\r
             for LibraryClass in Dsc.Platform.LibraryClasses.LibraryList:\r
                 if Inf == NormPath(LibraryClass.FilePath) and Arch in LibraryClass.SupArchList:\r
                     return True\r
             for Module in Dsc.Platform.Modules.ModuleList:\r
-                if Inf == NormPath(Module.Name) and Arch in Module.SupArchList:\r
+                if Inf == NormPath(Module.FilePath) and Arch in Module.SupArchList:\r
                     return True\r
                 for Item in Module.LibraryClasses.LibraryList:\r
-                    if Inf == NormPath(Item.FilePath) and Arch in Item.SupArchList:\r
+                    if Inf == NormPath(Item.FilePath):\r
                         return True\r
                 \r
         return False\r