The alignment in rule section is shared by modules to generate FFS,
it should not be modified by certain module.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18016
6f19259b-4bc3-4df7-8a09-
765794883524
return FileList, self.Alignment\r
\r
Index = 0\r
return FileList, self.Alignment\r
\r
Index = 0\r
+ Align = self.Alignment\r
\r
""" If Section type is 'VERSION'"""\r
OutputFileList = []\r
\r
""" If Section type is 'VERSION'"""\r
OutputFileList = []\r
if self.Alignment == 'Auto' and (SectionType == 'PE32' or SectionType == 'TE'):\r
ImageObj = PeImageClass (File)\r
if ImageObj.SectionAlignment < 0x400:\r
if self.Alignment == 'Auto' and (SectionType == 'PE32' or SectionType == 'TE'):\r
ImageObj = PeImageClass (File)\r
if ImageObj.SectionAlignment < 0x400:\r
- self.Alignment = str (ImageObj.SectionAlignment)\r
+ Align = str (ImageObj.SectionAlignment)\r
- self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'\r
+ Align = str (ImageObj.SectionAlignment / 0x400) + 'K'\r
\r
if File[(len(File)-4):] == '.efi':\r
MapFile = File.replace('.efi', '.map')\r
\r
if File[(len(File)-4):] == '.efi':\r
MapFile = File.replace('.efi', '.map')\r
)\r
OutputFileList.append(OutputFile)\r
\r
)\r
OutputFileList.append(OutputFile)\r
\r
- return OutputFileList, self.Alignment\r
+ return OutputFileList, Align\r