mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 07:04:28 +02:00
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>
This commit is contained in:
parent
4879e13097
commit
e4408576df
@ -1428,11 +1428,12 @@ def Main():
|
|||||||
else:
|
else:
|
||||||
OutFile = sys.argv[4]
|
OutFile = sys.argv[4]
|
||||||
Start = 5
|
Start = 5
|
||||||
GenCfgOpt.ParseBuildMode(sys.argv[3])
|
if argc > Start:
|
||||||
if GenCfgOpt.ParseMacros(sys.argv[Start:]) != 0:
|
if GenCfgOpt.ParseMacros(sys.argv[Start:]) != 0:
|
||||||
print "ERROR: Macro parsing failed !"
|
print "ERROR: Macro parsing failed !"
|
||||||
return 3
|
return 3
|
||||||
|
|
||||||
|
GenCfgOpt.ParseBuildMode(sys.argv[3])
|
||||||
FvDir = sys.argv[3]
|
FvDir = sys.argv[3]
|
||||||
if not os.path.exists(FvDir):
|
if not os.path.exists(FvDir):
|
||||||
os.makedirs(FvDir)
|
os.makedirs(FvDir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user