diff options
author | Liming Gao <liming.gao@intel.com> | 2016-05-20 16:42:35 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 09:33:27 +0800 |
commit | 5157924850251ca5dd06ea32d1288ed09b0c8c48 (patch) | |
tree | e2d0f279872473c8e8da948823dd025cdddfb31b /BaseTools | |
parent | d23ef816c666e3bb0d75c7451ad92ef5159d8317 (diff) | |
download | edk2-platforms-5157924850251ca5dd06ea32d1288ed09b0c8c48.tar.xz |
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>
(cherry picked from commit 483b01d2da22bab88f0815a2f01025ea6b9333f5)
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/GenFds/Section.py | 2 |
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)
|