diff options
Diffstat (limited to 'IntelFspPkg/Tools')
-rw-r--r-- | IntelFspPkg/Tools/GenCfgOpt.py | 4 |
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))
|