From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web09.1291.1574389752561406767 for ; Thu, 21 Nov 2019 18:29:12 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: jiewen.yao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 18:29:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,228,1571727600"; d="scan'208";a="290518745" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2019 18:29:11 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 18:29:10 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 18:29:10 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.108]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.41]) with mapi id 14.03.0439.000; Fri, 22 Nov 2019 10:29:09 +0800 From: "Yao, Jiewen" To: Sami Mujawar , "devel@edk2.groups.io" CC: "achin.gupta@arm.com" , "supreeth.venkatesh@arm.com" , "Matteo.Carlini@arm.com" , "Laura.Moretta@arm.com" , "nd@arm.com" Subject: Re: [PATCH v1 1/1] StandaloneMmPkg: Disable deprecated APIs Thread-Topic: [PATCH v1 1/1] StandaloneMmPkg: Disable deprecated APIs Thread-Index: AQHVoH9xaA2UqZB8rEGCTNSlYAr85aeWeDBQ Date: Fri, 22 Nov 2019 02:29:09 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503F868B1D@shsmsx102.ccr.corp.intel.com> References: <20191121152146.20636-1-sami.mujawar@arm.com> In-Reply-To: <20191121152146.20636-1-sami.mujawar@arm.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjlkOTc4NWItODYyNS00ZDMyLTgwMGMtZDc4YzI2YTQxMTAwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiS01RV1cya1J3cUMzU0w1blA4WFMxTnlVS1h1TnFnQnVMSEh5aFI2RW1HUFJheXZqY082VCtEaUZWcHN4cEY3eiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jiewen.yao@intel.com 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: Sami Mujawar > Sent: Thursday, November 21, 2019 11:22 PM > To: devel@edk2.groups.io > Cc: Sami Mujawar ; achin.gupta@arm.com; Yao, > Jiewen ; supreeth.venkatesh@arm.com; > Matteo.Carlini@arm.com; Laura.Moretta@arm.com; nd@arm.com > Subject: [PATCH v1 1/1] StandaloneMmPkg: Disable deprecated APIs >=20 > Add the DISABLE_NEW_DEPRECATED_INTERFACES macro to > the StandaloneMmPkg package build flags to disable > deprecated APIs. >=20 > CC: Achin Gupta > CC: Jiewen Yao > CC: Supreeth Venkatesh > Signed-off-by: Sami Mujawar > --- > The changes can be seen at: > https://github.com/samimujawar/edk2/tree/698_stmm_disable_deprecated_ap > is_v1 >=20 > Notes: > v1: > - Disable/prevent the use of deprecated APIs [SAMI= ] >=20 > StandaloneMmPkg/StandaloneMmPkg.dsc | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/StandaloneMmPkg/StandaloneMmPkg.dsc > b/StandaloneMmPkg/StandaloneMmPkg.dsc > index > 8a68d397469bdb83586bfeaebedcd52fd528b20f..cdd2ffc44f8178f2c6c29399ce4 > d82634e8b5db9 100644 > --- a/StandaloneMmPkg/StandaloneMmPkg.dsc > +++ b/StandaloneMmPkg/StandaloneMmPkg.dsc > @@ -2,7 +2,7 @@ > # Standalone MM Platform. > # > # Copyright (c) 2015, Intel Corporation. All rights reserved.
> -# Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
> +# Copyright (c) 2016 - 2019, ARM Limited. All rights reserved.
> # > # SPDX-License-Identifier: BSD-2-Clause-Patent > # > @@ -112,6 +112,9 @@ [Components.AARCH64] > # module style (EDK or EDKII) specified in [Compo= nents] section. > # >=20 > ################################################################# > ################################## > +[BuildOptions.common] > +*_*_*_CC_FLAGS =3D -DDISABLE_NEW_DEPRECATED_INTERFACES > + > [BuildOptions.AARCH64] > GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 -march=3Darmv8- > a+nofp -mstrict-align > GCC:*_*_*_CC_FLAGS =3D -mstrict-align > -- > 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' >=20