From: Liming Gao Date: Fri, 20 May 2016 08:42:35 +0000 (+0800) Subject: BaseTools: Fix GenFds issue to wrongly get file without postfix. X-Git-Tag: edk2-stable201903~6944 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=483b01d2da22bab88f0815a2f01025ea6b9333f5;p=mirror_edk2.git 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 Reviewed-by: Andrew Fish --- 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)