else:\r
Align = str (ImageObj.SectionAlignment // 0x100000) + 'M'\r
\r
- if File[(len(File)-4):] == '.efi':\r
+ if File[(len(File)-4):] == '.efi' and FfsInf.InfModule.BaseName == os.path.basename(File)[:-4]:\r
MapFile = File.replace('.efi', '.map')\r
CopyMapFile = os.path.join(OutputPath, ModuleName + '.map')\r
if IsMakefile:\r