]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix GenFds issue to wrongly get file without postfix.
authorLiming Gao <liming.gao@intel.com>
Fri, 20 May 2016 08:42:35 +0000 (16:42 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 26 May 2016 02:58:30 +0000 (10:58 +0800)
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

index fc25447dfdcd57b857930dbbadef6e44e9c5014a..942dd5cd3a9f0535d9e03431b7631e46dbc3a29b 100644 (file)
@@ -154,7 +154,7 @@ class Section (SectionClassObject):
                 Tuple = os.walk(FfsInf.EfiOutputPath)\r
                 for Dirpath, Dirnames, Filenames in Tuple:\r
                     for F in Filenames:\r
-                        if os.path.splitext(F)[1] in (Suffix):\r
+                        if os.path.splitext(F)[1] == Suffix:\r
                             FullName = os.path.join(Dirpath, F)\r
                             if os.path.getmtime(FullName) > os.path.getmtime(Makefile):\r
                                 FileList.append(FullName)\r