Revision: 18016
http://sourceforge.net/p/edk2/code/18016
Author: yingke
Date: 2015-07-16 00:56:14 +0000 (Thu, 16 Jul 2015)
Log Message:
-----------
BaseTools: Fixed incorrect alignment bug.
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 <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Modified Paths:
--------------
trunk/edk2/BaseTools/Source/Python/GenFds/EfiSection.py
Modified: trunk/edk2/BaseTools/Source/Python/GenFds/EfiSection.py
===================================================================
--- trunk/edk2/BaseTools/Source/Python/GenFds/EfiSection.py 2015-07-15
15:39:53 UTC (rev 18015)
+++ trunk/edk2/BaseTools/Source/Python/GenFds/EfiSection.py 2015-07-16
00:56:14 UTC (rev 18016)
@@ -97,6 +97,7 @@
return FileList, self.Alignment
Index = 0
+ Align = self.Alignment
""" If Section type is 'VERSION'"""
OutputFileList = []
@@ -229,9 +230,9 @@
if self.Alignment == 'Auto' and (SectionType == 'PE32' or
SectionType == 'TE'):
ImageObj = PeImageClass (File)
if ImageObj.SectionAlignment < 0x400:
- self.Alignment = str (ImageObj.SectionAlignment)
+ Align = str (ImageObj.SectionAlignment)
else:
- self.Alignment = str (ImageObj.SectionAlignment /
0x400) + 'K'
+ Align = str (ImageObj.SectionAlignment / 0x400) +
'K'
if File[(len(File)-4):] == '.efi':
MapFile = File.replace('.efi', '.map')
@@ -272,4 +273,4 @@
)
OutputFileList.append(OutputFile)
- return OutputFileList, self.Alignment
+ return OutputFileList, Align
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits