summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds/Section.py
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2017-12-07 11:35:16 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-12-08 08:57:48 +0800
commitcf245466a56a7be7405142753c6c6a6689b7461b (patch)
tree39563accec9ee619a87f3800c7448723e9ff33b4 /BaseTools/Source/Python/GenFds/Section.py
parent5b8766bb92debfa7b2f45a4a6d683b4227360d66 (diff)
downloadedk2-cf245466a56a7be7405142753c6c6a6689b7461b.tar.gz
edk2-cf245466a56a7be7405142753c6c6a6689b7461b.tar.bz2
edk2-cf245466a56a7be7405142753c6c6a6689b7461b.zip
BaseTools: Fix GenSec can't found the depex file
Filter the FileList when multiple genfds thread options is not enabled. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Tested-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/Section.py')
-rw-r--r--BaseTools/Source/Python/GenFds/Section.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/GenFds/Section.py b/BaseTools/Source/Python/GenFds/Section.py
index 4c1aaacd68..463faa3781 100644
--- a/BaseTools/Source/Python/GenFds/Section.py
+++ b/BaseTools/Source/Python/GenFds/Section.py
@@ -110,7 +110,7 @@ class Section (SectionClassObject):
# @param Dict dictionary contains macro and its value
# @retval tuple (File list, boolean)
#
- def GetFileList(FfsInf, FileType, FileExtension, Dict = {}):
+ def GetFileList(FfsInf, FileType, FileExtension, Dict = {}, IsMakefile=False):
if FileType in Section.SectFileType.keys() :
IsSect = True
else :
@@ -141,7 +141,7 @@ 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:
+ if (not IsMakefile and Suffix != None and os.path.exists(FfsInf.EfiOutputPath)) or (IsMakefile and Suffix != None):
#
# Get Makefile path and time stamp
#