mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
d86b04fbe9
commit
59c30d7416
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue