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>
This commit is contained in:
Liming Gao 2016-05-20 16:42:35 +08:00
parent 6b571c4d8c
commit 483b01d2da
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class Section (SectionClassObject):
Tuple = os.walk(FfsInf.EfiOutputPath) Tuple = os.walk(FfsInf.EfiOutputPath)
for Dirpath, Dirnames, Filenames in Tuple: for Dirpath, Dirnames, Filenames in Tuple:
for F in Filenames: 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) FullName = os.path.join(Dirpath, F)
if os.path.getmtime(FullName) > os.path.getmtime(Makefile): if os.path.getmtime(FullName) > os.path.getmtime(Makefile):
FileList.append(FullName) FileList.append(FullName)