From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0565182121 for ; Tue, 14 Feb 2017 22:34:50 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP; 14 Feb 2017 22:34:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,164,1484035200"; d="scan'208";a="65955779" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 14 Feb 2017 22:34:49 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 14 Feb 2017 22:34:49 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 14 Feb 2017 22:34:49 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0248.002; Wed, 15 Feb 2017 14:34:46 +0800 From: "Yao, Jiewen" To: "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Ma, Maurice" Thread-Topic: [edk2] [PATCH] Make [-D Macros] as optional argument for GenCfgOpt Thread-Index: AQHShedswv4lkM0CZEOlwNciy6vaFaFpm4uwgAADlxA= Date: Wed, 15 Feb 2017 06:34:46 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A8EE957@shsmsx102.ccr.corp.intel.com> References: <20170213105249.55344-1-richard.marian.thomaiyar@intel.com> <97159AD15C0F454180C255F8DA6613552AF6A003@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <97159AD15C0F454180C255F8DA6613552AF6A003@SHSMSX104.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] Make [-D Macros] as optional argument for GenCfgOpt X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 06:34:50 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > rthomaiy > Sent: Monday, February 13, 2017 18:53 > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen > Subject: [edk2] [PATCH] Make [-D Macros] as optional argument for GenCfgO= pt >=20 > Cc: Maurice Ma > Cc: Jiewen Yao > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Richard Thomaiyar > --- > IntelFsp2Pkg/Tools/GenCfgOpt.py | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/IntelFsp2Pkg/Tools/GenCfgOpt.py > b/IntelFsp2Pkg/Tools/GenCfgOpt.py index 7658b7f..d8038e9 100644 > --- a/IntelFsp2Pkg/Tools/GenCfgOpt.py > +++ b/IntelFsp2Pkg/Tools/GenCfgOpt.py > @@ -1428,11 +1428,12 @@ def Main(): > else: > OutFile =3D sys.argv[4] > Start =3D 5 > - GenCfgOpt.ParseBuildMode(sys.argv[3]) > - if GenCfgOpt.ParseMacros(sys.argv[Start:]) !=3D 0: > - print "ERROR: Macro parsing failed !" > - return 3 > + if argc > Start: > + if GenCfgOpt.ParseMacros(sys.argv[Start:]) !=3D 0: > + print "ERROR: Macro parsing failed !" > + return 3 >=20 > + GenCfgOpt.ParseBuildMode(sys.argv[3]) > FvDir =3D sys.argv[3] > if not os.path.exists(FvDir): > os.makedirs(FvDir) > -- > 2.9.0.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel