From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 9ED6B209574F3 for ; Mon, 26 Feb 2018 22:48:31 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2018 22:54:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,398,1515484800"; d="scan'208";a="34413887" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 26 Feb 2018 22:54:36 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 26 Feb 2018 22:54:36 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 26 Feb 2018 22:54:35 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.125]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0319.002; Tue, 27 Feb 2018 14:54:28 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch] BaseTools:Override the MAKE_FLAGS by BuildOptions in DSC Thread-Index: AQHTrXcBd/+cdHiK30SPKxpp5icbaqO31J3g Date: Tue, 27 Feb 2018 06:54:28 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1D3E41@SHSMSX104.ccr.corp.intel.com> References: <1519480462-16108-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1519480462-16108-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools:Override the MAKE_FLAGS by BuildOptions in DSC X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 06:48:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Yo= nghong Zhu > Sent: Saturday, February 24, 2018 9:54 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch] BaseTools:Override the MAKE_FLAGS by BuildOptions= in DSC >=20 > The issue that *_*_*_MAKE_FLAGS doesn't work in DSC [BuildOptions] > section. It means MAKE flags can't be set in platform DSC file. >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Yonghong Zhu > --- > BaseTools/Source/Python/AutoGen/AutoGen.py | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Sourc= e/Python/AutoGen/AutoGen.py > index 405bfa1..1787dec 100644 > --- a/BaseTools/Source/Python/AutoGen/AutoGen.py > +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py > @@ -1905,10 +1905,17 @@ class PlatformAutoGen(AutoGen): > self._BuildCommand +=3D SplitOption(self.ToolDefinition[= "MAKE"]["PATH"]) > if "FLAGS" in self.ToolDefinition["MAKE"]: > NewOption =3D self.ToolDefinition["MAKE"]["FLAGS"].s= trip() > if NewOption !=3D '': > self._BuildCommand +=3D SplitOption(NewOption) > + if "MAKE" in self.EdkIIBuildOption: > + if "FLAGS" in self.EdkIIBuildOption["MAKE"]: > + Flags =3D self.EdkIIBuildOption["MAKE"]["FLAGS"] > + if Flags.startswith('=3D'): > + self._BuildCommand =3D [self._BuildCommand[0= ]] + [Flags[1:]] > + else: > + self._BuildCommand +=3D [Flags] > return self._BuildCommand >=20 > ## Get tool chain definition > # > # Get each tool defition for given tool chain from tools_def.txt an= d platform > -- > 2.6.1.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel