From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.2949.1602556598134430007 for ; Mon, 12 Oct 2020 19:36:38 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 13 Oct 2020 10:36:35 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , "'fengyunhua'" Cc: References: <000101d69f54$2ddf3380$899d9a80$@byosoft.com.cn> <163D6AA02A76FB25.31166@groups.io> In-Reply-To: <163D6AA02A76FB25.31166@groups.io> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0g5Zue5aSNOiBbUEFUQ0ggdjNdIEJhc2VUb29sczogQWRkIEVES0lJX0RTQ19QTEFURk9STV9HVUlEIE1BQ1JP?= Date: Tue, 13 Oct 2020 10:36:36 +0800 Message-ID: <006401d6a109$abce2600$036a7200$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFZGuCmIrTUKcroFeUO6lKHh1ctmQD0mGJSqog4wtA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Merge https://github.com/tianocore/edk2/pull/1006 Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+66142+4905953+8761045@groups.i= o > =E4=BB=A3=E8=A1=A8 gaolim= ing > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B410=E6=9C=8813=E6=97= =A5 9:58 > =E6=94=B6=E4=BB=B6=E4=BA=BA: 'fengyunhua' ; d= evel@edk2.groups.io > =E6=8A=84=E9=80=81: bob.c.feng@intel.com > =E4=B8=BB=E9=A2=98: [edk2-devel] =E5=9B=9E=E5=A4=8D: [PATCH v3] BaseTool= s: Add > EDKII_DSC_PLATFORM_GUID MACRO >=20 > Reviewed-by: Liming Gao >=20 > > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > > =E5=8F=91=E4=BB=B6=E4=BA=BA: fengyunhua > > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B410=E6=9C=8811=E6=97= = =A5 6:25 > > =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io > > =E6=8A=84=E9=80=81: bob.c.feng@intel.com; gaoliming@byosoft.com.cn > > =E4=B8=BB=E9=A2=98: [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID = MACRO > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2969 > > > > Add EDKII_DSC_PLATFORM_GUID MACRO to AutoGen.h and AutoGen.c > > > > Cc: Bob Feng > > Cc: Liming Gao > > Signed-off-by: Yunhua Feng > > --- > > BaseTools/Source/Python/AutoGen/GenC.py | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/BaseTools/Source/Python/AutoGen/GenC.py > > b/BaseTools/Source/Python/AutoGen/GenC.py > > index 5e0d11e165..a2053d5485 100755 > > --- a/BaseTools/Source/Python/AutoGen/GenC.py > > +++ b/BaseTools/Source/Python/AutoGen/GenC.py > > @@ -1980,12 +1980,14 @@ def CreateHeaderCode(Info, AutoGenC, > > AutoGenH): > > AutoGenH.Append("#include \n") > > > > AutoGenH.Append('\nextern GUID gEfiCallerIdGuid;') > > + AutoGenH.Append('\nextern GUID gEdkiiDscPlatformGuid;') > > AutoGenH.Append('\nextern CHAR8 *gEfiCallerBaseName;\n\n') > > > > if Info.IsLibrary: > > return > > > > AutoGenH.Append("#define EFI_CALLER_ID_GUID \\\n %s\n" % > > GuidStringToGuidStructureString(Info.Guid)) > > + AutoGenH.Append("#define EDKII_DSC_PLATFORM_GUID > > \\\n %s\n" % GuidStringToGuidStructureString(Info.PlatformInfo.Guid)) > > > > if Info.IsLibrary: > > return > > @@ -2002,6 +2004,7 @@ def CreateHeaderCode(Info, AutoGenC, > > AutoGenH): > > # Publish the CallerId Guid > > # > > AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED GUID > > gEfiCallerIdGuid =3D %s;\n' % GuidStringToGuidStructureString(Info.Gui= d)) > > + AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED GUID > > gEdkiiDscPlatformGuid =3D %s;\n' % > > GuidStringToGuidStructureString(Info.PlatformInfo.Guid)) > > AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED CHAR8 > > *gEfiCallerBaseName =3D "%s";\n' % Info.Name) > > > > ## Create common code for header file > > -- > > 2.27.0.windows.1 > > >=20 >=20 >=20 >=20 >=20 >=20 >=20