From 63c05743b481945e729f22554b0916e526e05a3d Mon Sep 17 00:00:00 2001 From: "Yao, Jiewen" Date: Fri, 5 Dec 2014 00:28:11 +0000 Subject: =?UTF-8?q?Specify=20little-endian,=20and=20then=20use=20the=20?= =?UTF-8?q?=E2=80=9CStandard=20size=E2=80=9D=20from=20the=20chart.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" Reviewed-by: "Andrew Fish" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16476 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFspPkg/Tools/GenCfgOpt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IntelFspPkg') diff --git a/IntelFspPkg/Tools/GenCfgOpt.py b/IntelFspPkg/Tools/GenCfgOpt.py index 78b330a2ac..555099bbd2 100644 --- a/IntelFspPkg/Tools/GenCfgOpt.py +++ b/IntelFspPkg/Tools/GenCfgOpt.py @@ -614,8 +614,8 @@ EndList BinFd = open(BinFile, "rb") IdStr = BinFd.read(0x08) - ImageId = struct.unpack('Q', IdStr) - ImageRev = struct.unpack('I', BinFd.read(0x04)) + ImageId = struct.unpack('