## @ GenCfgOpt.py\r
#\r
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2017, 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
return 0\r
\r
def WriteBsfStruct (self, BsfFd, Item):\r
+ LogExpr = CLogicalExpression()\r
if Item['type'] == "None":\r
Space = "gPlatformFspPkgTokenSpaceGuid"\r
else:\r
for Option in OptList:\r
Option = Option.strip()\r
(OpVal, OpStr) = Option.split(':')\r
+ test = LogExpr.getNumber (OpVal)\r
+ if test is None:\r
+ raise Exception("Selection Index '%s' is not a number" % OpVal)\r
TmpList.append((OpVal, OpStr))\r
return TmpList\r
\r
else:\r
OutFile = sys.argv[4]\r
Start = 5\r
- GenCfgOpt.ParseBuildMode(sys.argv[3])\r
- if GenCfgOpt.ParseMacros(sys.argv[Start:]) != 0:\r
- print "ERROR: Macro parsing failed !"\r
- return 3\r
+ if argc > Start:\r
+ if GenCfgOpt.ParseMacros(sys.argv[Start:]) != 0:\r
+ print "ERROR: Macro parsing failed !"\r
+ return 3\r
\r
+ GenCfgOpt.ParseBuildMode(sys.argv[3])\r
FvDir = sys.argv[3]\r
if not os.path.exists(FvDir):\r
os.makedirs(FvDir)\r