diff options
author | edk2-devel On Behalf Of rthomaiy <[mailto:edk2-devel-bounces@lists.01.org]> | 2017-03-01 14:57:58 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2017-03-01 14:57:58 +0800 |
commit | e4408576df907721e87a2b439087a54790dcad46 (patch) | |
tree | f0786d8048cf6a7024ecb8812f00a827c606d91f /IntelFsp2Pkg/Tools/GenCfgOpt.py | |
parent | 4879e13097830f9c7cb924a674bcf96cb7686baf (diff) | |
download | edk2-e4408576df907721e87a2b439087a54790dcad46.tar.gz edk2-e4408576df907721e87a2b439087a54790dcad46.tar.bz2 edk2-e4408576df907721e87a2b439087a54790dcad46.zip |
Make [-D Macros] as optional argument for GenCfgOpt
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Richard Thomaiyar <richard.marian.thomaiyar@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'IntelFsp2Pkg/Tools/GenCfgOpt.py')
-rw-r--r-- | IntelFsp2Pkg/Tools/GenCfgOpt.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/IntelFsp2Pkg/Tools/GenCfgOpt.py b/IntelFsp2Pkg/Tools/GenCfgOpt.py index 7658b7fc5c..d8038e98ce 100644 --- a/IntelFsp2Pkg/Tools/GenCfgOpt.py +++ b/IntelFsp2Pkg/Tools/GenCfgOpt.py @@ -1428,11 +1428,12 @@ def Main(): else:
OutFile = sys.argv[4]
Start = 5
- GenCfgOpt.ParseBuildMode(sys.argv[3])
- if GenCfgOpt.ParseMacros(sys.argv[Start:]) != 0:
- print "ERROR: Macro parsing failed !"
- return 3
+ if argc > Start:
+ if GenCfgOpt.ParseMacros(sys.argv[Start:]) != 0:
+ print "ERROR: Macro parsing failed !"
+ return 3
+ GenCfgOpt.ParseBuildMode(sys.argv[3])
FvDir = sys.argv[3]
if not os.path.exists(FvDir):
os.makedirs(FvDir)
|