Skip to content

Commit

Permalink
BaseTools: Fix binary file not generate map file issue
Browse files Browse the repository at this point in the history
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2624

When EFI file come from binary file, not generate .map file, so need ignore the map file.

Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Signed-off-by: Yunhua Feng <[email protected]>

Reviewed-by: Bob Feng <[email protected]>
  • Loading branch information
yunhuafx authored and mergify[bot] committed Jul 23, 2020
1 parent b87f31f commit d0da48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BaseTools/Source/Python/GenFds/EfiSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def GenSection(self, OutputPath, ModuleName, SecNum, KeyStringList, FfsInf = Non
else:
Align = str (ImageObj.SectionAlignment // 0x100000) + 'M'

if File[(len(File)-4):] == '.efi':
if File[(len(File)-4):] == '.efi' and FfsInf.InfModule.BaseName == os.path.basename(File)[:-4]:
MapFile = File.replace('.efi', '.map')
CopyMapFile = os.path.join(OutputPath, ModuleName + '.map')
if IsMakefile:
Expand Down

0 comments on commit d0da48f

Please sign in to comment.