Revision: 16483
          http://sourceforge.net/p/edk2/code/16483
Author:   vanjeff
Date:     2014-12-08 02:26:52 +0000 (Mon, 08 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.

(Sync patches r16476 from main trunk.)

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

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/16476

Modified Paths:
--------------
    branches/UDK2014.SP1/IntelFspPkg/Tools/GenCfgOpt.py

Modified: branches/UDK2014.SP1/IntelFspPkg/Tools/GenCfgOpt.py
===================================================================
--- branches/UDK2014.SP1/IntelFspPkg/Tools/GenCfgOpt.py 2014-12-08 02:26:07 UTC 
(rev 16482)
+++ branches/UDK2014.SP1/IntelFspPkg/Tools/GenCfgOpt.py 2014-12-08 02:26:52 UTC 
(rev 16483)
@@ -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