summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2014-12-04 06:01:15 +0000
committerjyao1 <jyao1@Edk2>2014-12-04 06:01:15 +0000
commit59c30d741646018c7f9b4d86010133e0f698c1d0 (patch)
tree8a07f83b86098642a46a768bc6ee564e2b7d766a
parentd86b04fbe9955e3fc56f3f529a505005ad3a090f (diff)
downloadedk2-platforms-59c30d741646018c7f9b4d86010133e0f698c1d0.tar.xz
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" <jiewen.yao@intel.com> Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com> Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com> Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16474 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFspPkg/Tools/GenCfgOpt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFspPkg/Tools/GenCfgOpt.py b/IntelFspPkg/Tools/GenCfgOpt.py
index 4417bc33fe..78b330a2ac 100644
--- a/IntelFspPkg/Tools/GenCfgOpt.py
+++ b/IntelFspPkg/Tools/GenCfgOpt.py
@@ -615,7 +615,7 @@ EndList
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))