Revision: 16474
http://sourceforge.net/p/edk2/code/16474
Author: jyao1
Date: 2014-12-04 06:01:15 +0000 (Thu, 04 Dec 2014)
Log Message:
-----------
properly support GCC - pass 'I' (int) rather than 'L' (long) to struct.unpack.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <[email protected]>
Reviewed-by: "Rangarajan, Ravi P" <[email protected]>
Reviewed-by: "Ma, Maurice" <[email protected]>
Reviewed-by: "Mudusuru, Giri P" <[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 01:18:04 UTC (rev
16473)
+++ trunk/edk2/IntelFspPkg/Tools/GenCfgOpt.py 2014-12-04 06:01:15 UTC (rev
16474)
@@ -615,7 +615,7 @@
BinFd = open(BinFile, "rb")
IdStr = BinFd.read(0x08)
ImageId = struct.unpack('Q', IdStr)
- ImageRev = struct.unpack('L', BinFd.read(0x04))
+ 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