diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2017-12-07 11:35:16 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-12-08 08:57:48 +0800 |
commit | cf245466a56a7be7405142753c6c6a6689b7461b (patch) | |
tree | 39563accec9ee619a87f3800c7448723e9ff33b4 /BaseTools/Source/Python/GenFds/EfiSection.py | |
parent | 5b8766bb92debfa7b2f45a4a6d683b4227360d66 (diff) | |
download | edk2-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/EfiSection.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/EfiSection.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/GenFds/EfiSection.py b/BaseTools/Source/Python/GenFds/EfiSection.py index 7b3b717191..5029ec7a18 100644 --- a/BaseTools/Source/Python/GenFds/EfiSection.py +++ b/BaseTools/Source/Python/GenFds/EfiSection.py @@ -92,9 +92,10 @@ class EfiSection (EfiSectionClassObject): elif os.path.exists(Filename):
FileList.append(Filename)
elif '.depex' in FfsInf.FinalTargetSuffixMap or FfsInf.Depex:
- FileList.append(Filename)
+ if IsMakefile:
+ FileList.append(Filename)
else:
- FileList, IsSect = Section.Section.GetFileList(FfsInf, self.FileType, self.FileExtension, Dict)
+ FileList, IsSect = Section.Section.GetFileList(FfsInf, self.FileType, self.FileExtension, Dict, IsMakefile=IsMakefile)
if IsSect :
return FileList, self.Alignment
|