summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2014-12-05 00:28:11 +0000
committerjyao1 <jyao1@Edk2>2014-12-05 00:28:11 +0000
commit63c05743b481945e729f22554b0916e526e05a3d (patch)
tree4abdc6678caaf22c3f2f2b749c4e6bb3a88822de
parent8e89d9ceeb3a69f3554471095ded6b0496fa541e (diff)
downloadedk2-63c05743b481945e729f22554b0916e526e05a3d.tar.gz
edk2-63c05743b481945e729f22554b0916e526e05a3d.tar.bz2
edk2-63c05743b481945e729f22554b0916e526e05a3d.zip
Specify little-endian, and then use the “Standard size” 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. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: "Andrew Fish" <afish@apple.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16476 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFspPkg/Tools/GenCfgOpt.py4
1 files changed, 2 insertions, 2 deletions
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('<Q', IdStr)
+ ImageRev = struct.unpack('<I', BinFd.read(0x04))
BinFd.close()
HeaderFd.write("#define VPD_IMAGE_ID 0x%016X /* '%s' */\n" % (ImageId[0], IdStr))