* [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO
@ 2020-10-10 22:24 fengyunhua
2020-10-13 1:57 ` 回复: " gaoliming
[not found] ` <163D6AA02A76FB25.31166@groups.io>
0 siblings, 2 replies; 3+ messages in thread
From: fengyunhua @ 2020-10-10 22:24 UTC (permalink / raw)
To: devel; +Cc: bob.c.feng, gaoliming
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2969
Add EDKII_DSC_PLATFORM_GUID MACRO to AutoGen.h and AutoGen.c
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn>
---
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 <Library/PcdLib.h>\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 = %s;\n' % GuidStringToGuidStructureString(Info.Guid))
+ AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED GUID gEdkiiDscPlatformGuid = %s;\n' % GuidStringToGuidStructureString(Info.PlatformInfo.Guid))
AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED CHAR8 *gEfiCallerBaseName = "%s";\n' % Info.Name)
## Create common code for header file
--
2.27.0.windows.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* 回复: [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO
2020-10-10 22:24 [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO fengyunhua
@ 2020-10-13 1:57 ` gaoliming
[not found] ` <163D6AA02A76FB25.31166@groups.io>
1 sibling, 0 replies; 3+ messages in thread
From: gaoliming @ 2020-10-13 1:57 UTC (permalink / raw)
To: 'fengyunhua', devel; +Cc: bob.c.feng
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> -----邮件原件-----
> 发件人: fengyunhua <fengyunhua@byosoft.com.cn>
> 发送时间: 2020年10月11日 6:25
> 收件人: devel@edk2.groups.io
> 抄送: bob.c.feng@intel.com; gaoliming@byosoft.com.cn
> 主题: [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2969
>
> Add EDKII_DSC_PLATFORM_GUID MACRO to AutoGen.h and AutoGen.c
>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn>
> ---
> 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 <Library/PcdLib.h>\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 = %s;\n' % GuidStringToGuidStructureString(Info.Guid))
> + AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED GUID
> gEdkiiDscPlatformGuid = %s;\n' %
> GuidStringToGuidStructureString(Info.PlatformInfo.Guid))
> AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED CHAR8
> *gEfiCallerBaseName = "%s";\n' % Info.Name)
>
> ## Create common code for header file
> --
> 2.27.0.windows.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* 回复: [edk2-devel] 回复: [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO
[not found] ` <163D6AA02A76FB25.31166@groups.io>
@ 2020-10-13 2:36 ` gaoliming
0 siblings, 0 replies; 3+ messages in thread
From: gaoliming @ 2020-10-13 2:36 UTC (permalink / raw)
To: devel, gaoliming, 'fengyunhua'; +Cc: bob.c.feng
Merge https://github.com/tianocore/edk2/pull/1006
Thanks
Liming
> -----邮件原件-----
> 发件人: bounce+27952+66142+4905953+8761045@groups.io
> <bounce+27952+66142+4905953+8761045@groups.io> 代表 gaoliming
> 发送时间: 2020年10月13日 9:58
> 收件人: 'fengyunhua' <fengyunhua@byosoft.com.cn>; devel@edk2.groups.io
> 抄送: bob.c.feng@intel.com
> 主题: [edk2-devel] 回复: [PATCH v3] BaseTools: Add
> EDKII_DSC_PLATFORM_GUID MACRO
>
> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
>
> > -----邮件原件-----
> > 发件人: fengyunhua <fengyunhua@byosoft.com.cn>
> > 发送时间: 2020年10月11日 6:25
> > 收件人: devel@edk2.groups.io
> > 抄送: bob.c.feng@intel.com; gaoliming@byosoft.com.cn
> > 主题: [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO
> >
> > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2969
> >
> > Add EDKII_DSC_PLATFORM_GUID MACRO to AutoGen.h and AutoGen.c
> >
> > Cc: Bob Feng <bob.c.feng@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn>
> > ---
> > 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 <Library/PcdLib.h>\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 = %s;\n' % GuidStringToGuidStructureString(Info.Guid))
> > + AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED GUID
> > gEdkiiDscPlatformGuid = %s;\n' %
> > GuidStringToGuidStructureString(Info.PlatformInfo.Guid))
> > AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED CHAR8
> > *gEfiCallerBaseName = "%s";\n' % Info.Name)
> >
> > ## Create common code for header file
> > --
> > 2.27.0.windows.1
> >
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-13 2:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-10 22:24 [PATCH v3] BaseTools: Add EDKII_DSC_PLATFORM_GUID MACRO fengyunhua
2020-10-13 1:57 ` 回复: " gaoliming
[not found] ` <163D6AA02A76FB25.31166@groups.io>
2020-10-13 2:36 ` 回复: [edk2-devel] " gaoliming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox