elif os.path.exists(Filename):\r
FileList.append(Filename)\r
elif '.depex' in FfsInf.FinalTargetSuffixMap or FfsInf.Depex:\r
- FileList.append(Filename)\r
+ if IsMakefile:\r
+ FileList.append(Filename)\r
else:\r
- FileList, IsSect = Section.Section.GetFileList(FfsInf, self.FileType, self.FileExtension, Dict)\r
+ FileList, IsSect = Section.Section.GetFileList(FfsInf, self.FileType, self.FileExtension, Dict, IsMakefile=IsMakefile)\r
if IsSect :\r
return FileList, self.Alignment\r
\r
# @param Dict dictionary contains macro and its value\r
# @retval tuple (File list, boolean)\r
#\r
- def GetFileList(FfsInf, FileType, FileExtension, Dict = {}):\r
+ def GetFileList(FfsInf, FileType, FileExtension, Dict = {}, IsMakefile=False):\r
if FileType in Section.SectFileType.keys() :\r
IsSect = True\r
else :\r
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:\r
+ if (not IsMakefile and Suffix != None and os.path.exists(FfsInf.EfiOutputPath)) or (IsMakefile and Suffix != None):\r
#\r
# Get Makefile path and time stamp\r
#\r