From 483b01d2da22bab88f0815a2f01025ea6b9333f5 Mon Sep 17 00:00:00 2001
From: Liming Gao <liming.gao@intel.com>
Date: Fri, 20 May 2016 16:42:35 +0800
Subject: 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>
---
 BaseTools/Source/Python/GenFds/Section.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'BaseTools/Source/Python/GenFds')

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)
-- 
cgit v1.2.3