summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds
diff options
context:
space:
mode:
authorFeng, YunhuaX <YunhuaX.Feng@intel.com>2020-05-09 17:34:04 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-07-23 03:03:00 +0000
commitd0da48f112de6ba4f9c28310565809d4c63439a1 (patch)
tree9b58571b05bba329683165ed8028a5989c0e67d3 /BaseTools/Source/Python/GenFds
parentb87f31f034340c73ca072b65386f58c8ca1bc87b (diff)
downloadedk2-d0da48f112de6ba4f9c28310565809d4c63439a1.tar.gz
edk2-d0da48f112de6ba4f9c28310565809d4c63439a1.tar.bz2
edk2-d0da48f112de6ba4f9c28310565809d4c63439a1.zip
BaseTools: Fix binary file not generate map file issue
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 <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds')
-rw-r--r--BaseTools/Source/Python/GenFds/EfiSection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/EfiSection.py b/BaseTools/Source/Python/GenFds/EfiSection.py
index db892df345..e7d4639041 100644
--- a/BaseTools/Source/Python/GenFds/EfiSection.py
+++ b/BaseTools/Source/Python/GenFds/EfiSection.py
@@ -268,7 +268,7 @@ class EfiSection (EfiSectionClassObject):
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: