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:\r
- for File in FfsInf.GetFinalBuildTargetList():\r
- if os.path.splitext(File)[1] in (Suffix):\r
- FileList.append(File)\r
+ SuffixMap = FfsInf.GetFinalTargetSuffixMap()\r
+ if Suffix in SuffixMap:\r
+ FileList.extend(SuffixMap[Suffix])\r
\r
#Process the file lists is alphabetical for a same section type\r
if len (FileList) > 1:\r