X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FSection.py;h=d26f464ab97be7e4fecefb0e68bf8c25686fda63;hb=4234283c3acb8c35014acc1546621fbc2621b095;hp=a6d3c6319da6da184a99805575cdcd5058e91916;hpb=ba944801a988dddf3ed217c72c8d880d0f03d150;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/GenFds/Section.py b/BaseTools/Source/Python/GenFds/Section.py index a6d3c6319d..d26f464ab9 100644 --- a/BaseTools/Source/Python/GenFds/Section.py +++ b/BaseTools/Source/Python/GenFds/Section.py @@ -139,14 +139,10 @@ class Section (SectionClassObject): else: 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)) - if Suffix != None and os.path.exists(FfsInf.EfiOutputPath): - # Update to search files with suffix in all sub-dirs. - Tuple = os.walk(FfsInf.EfiOutputPath) - for Dirpath, Dirnames, Filenames in Tuple: - for F in Filenames: - if os.path.splitext(F)[1] in (Suffix): - FullName = os.path.join(Dirpath, F) - FileList.append(FullName) + if Suffix != None: + for File in FfsInf.GetFinalBuildTargetList(): + if os.path.splitext(File)[1] in (Suffix): + FileList.append(File) #Process the file lists is alphabetical for a same section type if len (FileList) > 1: