From nobody Sat Nov 2 14:24:57 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1486983207511706.5341423047565; Mon, 13 Feb 2017 02:53:27 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 01DD982010; Mon, 13 Feb 2017 02:53:26 -0800 (PST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 9E18881FEE for ; Mon, 13 Feb 2017 02:53:24 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2017 02:53:24 -0800 Received: from unknown (HELO RTHOMAIY-DESK3.gar.corp.intel.com) ([10.223.165.169]) by fmsmga001.fm.intel.com with ESMTP; 13 Feb 2017 02:53:22 -0800 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,156,1484035200"; d="scan'208";a="1106679172" From: rthomaiy To: edk2-devel@lists.01.org Date: Mon, 13 Feb 2017 16:22:49 +0530 Message-Id: <20170213105249.55344-1-richard.marian.thomaiyar@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [edk2] [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: , Cc: Jiewen Yao MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Maurice Ma Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Richard Thomaiyar Reviewed-by: Maurice Ma --- IntelFsp2Pkg/Tools/GenCfgOpt.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) --=20 2.9.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel