Revision: 16476
          http://sourceforge.net/p/edk2/code/16476
Author:   jyao1
Date:     2014-12-05 00:28:11 +0000 (Fri, 05 Dec 2014)
Log Message:
-----------
Specify little-endian, and then use the ?\226?\128?\156Standard 
size?\226?\128?\157 from the chart. 

Enhance python tool.
The default being native size (and alignment) means by default the standard 
sizes are not used, which might cause different behavior on difference compiler.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <[email protected]>
Reviewed-by: "Andrew Fish" <[email protected]>

Modified Paths:
--------------
    trunk/edk2/IntelFspPkg/Tools/GenCfgOpt.py

Modified: trunk/edk2/IntelFspPkg/Tools/GenCfgOpt.py
===================================================================
--- trunk/edk2/IntelFspPkg/Tools/GenCfgOpt.py   2014-12-04 06:03:58 UTC (rev 
16475)
+++ trunk/edk2/IntelFspPkg/Tools/GenCfgOpt.py   2014-12-05 00:28:11 UTC (rev 
16476)
@@ -614,8 +614,8 @@
 
                 BinFd = open(BinFile, "rb")
                 IdStr    = BinFd.read(0x08)
-                ImageId  = struct.unpack('Q', IdStr)
-                ImageRev = struct.unpack('I', BinFd.read(0x04))
+                ImageId  = struct.unpack('<Q', IdStr)
+                ImageRev = struct.unpack('<I', BinFd.read(0x04))
                 BinFd.close()
 
                 HeaderFd.write("#define VPD_IMAGE_ID    0x%016X        /* '%s' 
*/\n" % (ImageId[0], IdStr))


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to