X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FEfiSection.py;fp=BaseTools%2FSource%2FPython%2FGenFds%2FEfiSection.py;h=fd58391dac9919e46960140dcf65e1c3102067d6;hp=e7d463904120391672c4cbabdf3dbb9991993531;hb=d8be01079b3c7b554ac8126e97e73fba8894e519;hpb=3a7a6761143a4840faea0bd84daada3ac0f1bd22 diff --git a/BaseTools/Source/Python/GenFds/EfiSection.py b/BaseTools/Source/Python/GenFds/EfiSection.py index e7d4639041..fd58391dac 100644 --- a/BaseTools/Source/Python/GenFds/EfiSection.py +++ b/BaseTools/Source/Python/GenFds/EfiSection.py @@ -260,14 +260,7 @@ class EfiSection (EfiSectionClassObject): #Get PE Section alignment when align is set to AUTO if self.Alignment == 'Auto' and (SectionType == BINARY_FILE_TYPE_PE32 or SectionType == BINARY_FILE_TYPE_TE): - ImageObj = PeImageClass (File) - if ImageObj.SectionAlignment < 0x400: - Align = str (ImageObj.SectionAlignment) - elif ImageObj.SectionAlignment < 0x100000: - Align = str (ImageObj.SectionAlignment // 0x400) + 'K' - else: - Align = str (ImageObj.SectionAlignment // 0x100000) + 'M' - + Align = "0" 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')