## @ GenCfgOpt.py\r
#\r
-# Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available under\r
# the terms and conditions of the BSD License that accompanies this distribution.\r
# The full text of the license may be found at\r
ElifStack[-1] = ElifStack[-1] + 1\r
else:\r
if len(DscLine) > 0 and DscLine[0] == '!':\r
- self.Error = "Invalid DscLine '%s'" % DscLine\r
- Error = 3\r
- break;\r
+ #\r
+ # Current it can only handle build switch.\r
+ # It does not support INF file in included dsc.\r
+ #\r
else:\r
if reduce(lambda x,y: x and y, IfStack):\r
Handle = True\r
\r
BinFd = open(BinFile, "rb")\r
IdStr = BinFd.read(0x08)\r
- ImageId = struct.unpack('Q', IdStr)\r
- ImageRev = struct.unpack('I', BinFd.read(0x04))\r
+ ImageId = struct.unpack('<Q', IdStr)\r
+ ImageRev = struct.unpack('<I', BinFd.read(0x04))\r
BinFd.close()\r
\r
- HeaderFd.write("#define VPD_IMAGE_ID 0x%016X /* '%s' */\n" % (ImageId[0], IdStr))\r
- HeaderFd.write("#define VPD_IMAGE_REV 0x%08X \n\n" % ImageRev[0])\r
+ HeaderFd.write("#define FSP_IMAGE_ID 0x%016X /* '%s' */\n" % (ImageId[0], IdStr))\r
+ HeaderFd.write("#define FSP_IMAGE_REV 0x%08X \n\n" % ImageRev[0])\r
\r
HeaderFd.write("typedef struct _" + Region[0] + "PD_DATA_REGION {\n")\r
NextOffset = 0\r