]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Section.py
Sync EDKII BaseTools to BaseTools project r1903.
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Section.py
index 1905935ebf4b40fb630c481c0730e6fbd7c962ec..2e24697a3dc7b4ee18abdae99752a975e0527c52 100644 (file)
@@ -140,7 +140,6 @@ class Section (SectionClassObject):
                     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
-#            FileList.extend(glob.glob(os.path.join(FfsInf.EfiOutputPath, "*" + Suffix)))\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
@@ -149,5 +148,9 @@ class Section (SectionClassObject):
                         FullName = os.path.join(Dirpath, F)\r
                         FileList.append(FullName)\r
 \r
+        #Process the file lists is alphabetical for a same section type\r
+        if len (FileList) > 1:\r
+            FileList.sort()\r
+\r
         return FileList, IsSect\r
     GetFileList = staticmethod(GetFileList)\r