CopyLongFilePath(MapFile, CopyMapFile)\r
\r
#Get PE Section alignment when align is set to AUTO\r
- if self.Alignment == 'Auto' and self.SecType in ('TE', 'PE32'):\r
+ if self.Alignment == 'Auto' and self.SecType in (BINARY_FILE_TYPE_TE, BINARY_FILE_TYPE_PE32):\r
ImageObj = PeImageClass (Filename)\r
if ImageObj.SectionAlignment < 0x400:\r
self.Alignment = str (ImageObj.SectionAlignment)\r
self.Alignment = str (ImageObj.SectionAlignment / 0x100000) + 'M'\r
\r
NoStrip = True\r
- if self.SecType in ('TE', 'PE32'):\r
+ if self.SecType in (BINARY_FILE_TYPE_TE, BINARY_FILE_TYPE_PE32):\r
if self.KeepReloc is not None:\r
NoStrip = self.KeepReloc\r
\r
)\r
self.SectFileName = StrippedFile\r
\r
- if self.SecType == 'TE':\r
+ if self.SecType == BINARY_FILE_TYPE_TE:\r
TeFile = os.path.join( OutputPath, ModuleName + 'Te.raw')\r
GenFdsGlobalVariable.GenerateFirmwareImage(\r
TeFile,\r