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.web12.6723.1602368695682531529 for ; Sat, 10 Oct 2020 15:24:56 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: fengyunhua@byosoft.com.cn) Received: from LAPTOP2AECFQIA ([117.143.52.23]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Sun, 11 Oct 2020 06:24:49 +0800 X-WM-Sender: fengyunhua@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: fengyunhua@byosoft.com.cn From: "fengyunhua" To: Cc: , Subject: [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO Date: Sun, 11 Oct 2020 06:24:54 +0800 Message-ID: <000101d69f54$2ddf3380$899d9a80$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdafVC13ZSXfP1cdQfaFAE8+gL11jg== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn 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") =20 AutoGenH.Append('\nextern GUID gEfiCallerIdGuid;') + AutoGenH.Append('\nextern GUID gEdkiiDscPlatformGuid;') AutoGenH.Append('\nextern CHAR8 *gEfiCallerBaseName;\n\n') =20 if Info.IsLibrary: return =20 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)) =20 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.Guid)) + 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) =20 ## Create common code for header file --=20 2.27.0.windows.1