mirror of https://github.com/acidanthera/audk.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 <liming.gao@intel.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
parent
6b571c4d8c
commit
483b01d2da
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue