]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Section.py
Sync BaseTools Branch (version r2271) to EDKII main trunk.
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Section.py
index a6d3c6319da6da184a99805575cdcd5058e91916..d26f464ab97be7e4fecefb0e68bf8c25686fda63 100644 (file)
@@ -139,14 +139,10 @@ class Section (SectionClassObject):
                 else:\r
                     GenFdsGlobalVariable.InfLogger ("\nCurrent ARCH \'%s\' of File %s is not in the Support Arch Scope of %s specified by INF %s in FDF" %(FfsInf.CurrentArch, File.File, File.Arch, FfsInf.InfFileName))\r
 \r
-        if Suffix != None and os.path.exists(FfsInf.EfiOutputPath):\r
-            # Update to search files with suffix in all sub-dirs.\r
-            Tuple = os.walk(FfsInf.EfiOutputPath)\r
-            for Dirpath, Dirnames, Filenames in Tuple:\r
-                for F in Filenames:\r
-                    if os.path.splitext(F)[1] in (Suffix):\r
-                        FullName = os.path.join(Dirpath, F)\r
-                        FileList.append(FullName)\r
+        if Suffix != None:\r
+            for File in FfsInf.GetFinalBuildTargetList():\r
+                if os.path.splitext(File)[1] in (Suffix):\r
+                    FileList.append(File)\r
 \r
         #Process the file lists is alphabetical for a same section type\r
         if len (FileList) > 1:\r