summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds/Section.py
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2016-05-20 16:42:35 +0800
committerLiming Gao <liming.gao@intel.com>2016-05-26 10:58:30 +0800
commit483b01d2da22bab88f0815a2f01025ea6b9333f5 (patch)
tree3109625ff6dffa5bd59a91b495df69e967aa85e0 /BaseTools/Source/Python/GenFds/Section.py
parent6b571c4d8c827a39a5e249d5d9db4f99aebb5d63 (diff)
downloadedk2-483b01d2da22bab88f0815a2f01025ea6b9333f5.tar.gz
edk2-483b01d2da22bab88f0815a2f01025ea6b9333f5.tar.bz2
edk2-483b01d2da22bab88f0815a2f01025ea6b9333f5.zip
BaseTools: Fix GenFds issue to wrongly get file without postfix.
GenFds GenSection will search the output file based on the file extension. If the output file has no extension, it should be skip. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Andrew Fish <afish@apple.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/Section.py')
-rw-r--r--BaseTools/Source/Python/GenFds/Section.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/Section.py b/BaseTools/Source/Python/GenFds/Section.py
index fc25447dfd..942dd5cd3a 100644
--- a/BaseTools/Source/Python/GenFds/Section.py
+++ b/BaseTools/Source/Python/GenFds/Section.py
@@ -154,7 +154,7 @@ class Section (SectionClassObject):
Tuple = os.walk(FfsInf.EfiOutputPath)
for Dirpath, Dirnames, Filenames in Tuple:
for F in Filenames:
- if os.path.splitext(F)[1] in (Suffix):
+ if os.path.splitext(F)[1] == Suffix:
FullName = os.path.join(Dirpath, F)
if os.path.getmtime(FullName) > os.path.getmtime(Makefile):
FileList.append(FullName)