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.2351.1602316135059547751 for ; Sat, 10 Oct 2020 00:48: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 ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Sat, 10 Oct 2020 15:48:48 +0800 X-WM-Sender: fengyunhua@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: fengyunhua@byosoft.com.cn From: fengyunhua@byosoft.com.cn To: Cc: , Subject: [PATCH v2] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO Date: Sat, 10 Oct 2020 15:48:52 +0800 Message-ID: <000701d69ed9$cc6262a0$652727e0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: Adae2cZM4SQTgO5GSS6sKenBvZbMdg== 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..5b63d278be 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