Sean: Thanks for your update. I have one minor comment in below. Other change is good to me.
Thanks Liming > -----邮件原件----- > 发件人: Sean Rhodes <sean@starlabs.systems> > 发送时间: 2022年9月26日 16:10 > 收件人: devel@edk2.groups.io > 抄送: Sean Rhodes <sean@starlabs.systems>; Zhichao Gao > <zhichao....@intel.com>; Ray Ni <ray...@intel.com>; Jian J Wang > <jian.j.w...@intel.com>; Liming Gao <gaolim...@byosoft.com.cn> > 主题: [PATCH 2/3] MdeModulePkg/Logo: Add a PCD to control the position of > the Logo > > When set to true, the Logo is positioned according to the BGRT > specification, 38.2% from the top of the screen. When set to false, > no behaviour is changed and the logo is positioned centrally. > > Cc: Zhichao Gao <zhichao....@intel.com> > Cc: Ray Ni <ray...@intel.com> > Cc: Jian J Wang <jian.j.w...@intel.com> > Cc: Liming Gao <gaolim...@byosoft.com.cn> > Signed-off-by: Sean Rhodes <sean@starlabs.systems> > --- > MdeModulePkg/Logo/Logo.c | 5 +++++ > MdeModulePkg/Logo/LogoDxe.inf | 4 ++++ > MdeModulePkg/MdeModulePkg.dec | 6 ++++++ > MdeModulePkg/MdeModulePkg.uni | 6 ++++++ > 4 files changed, 21 insertions(+) > > diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c > index 8ab874d2da..1638d0f984 100644 > --- a/MdeModulePkg/Logo/Logo.c > +++ b/MdeModulePkg/Logo/Logo.c > @@ -13,6 +13,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > #include <Protocol/HiiPackageList.h> > > #include <Library/UefiBootServicesTableLib.h> > > #include <Library/DebugLib.h> > > +#include <Library/PcdLib.h> > > > > typedef struct { > > EFI_IMAGE_ID ImageId; > > @@ -69,6 +70,10 @@ GetImage ( > return EFI_NOT_FOUND; > > } > > > > + if (FixedPcdGetBool (PcdFollowMicrosoftRecommended)) { > > + mLogos[Current].Attribute = > EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended; > > + } > > + [Liming] Please use PcdGetBool (PcdFollowMicrosoftRecommended), PcdGetBool is more flexible for PCD usage. Thanks Liming > > (*Instance)++; > > *Attribute = mLogos[Current].Attribute; > > *OffsetX = mLogos[Current].OffsetX; > > diff --git a/MdeModulePkg/Logo/LogoDxe.inf > b/MdeModulePkg/Logo/LogoDxe.inf > index 41215d25d8..ce29950089 100644 > --- a/MdeModulePkg/Logo/LogoDxe.inf > +++ b/MdeModulePkg/Logo/LogoDxe.inf > @@ -41,6 +41,7 @@ > UefiBootServicesTableLib > > UefiDriverEntryPoint > > DebugLib > > + PcdLib > > > > [Protocols] > > gEfiHiiDatabaseProtocolGuid ## CONSUMES > > @@ -48,6 +49,9 @@ > gEfiHiiPackageListProtocolGuid ## PRODUCES CONSUMES > > gEdkiiPlatformLogoProtocolGuid ## PRODUCES > > > > +[Pcd] > > + gEfiMdeModulePkgTokenSpaceGuid.PcdFollowMicrosoftRecommended ## > CONSUMES > > + > > [Depex] > > gEfiHiiDatabaseProtocolGuid AND > > gEfiHiiImageExProtocolGuid > > diff --git a/MdeModulePkg/MdeModulePkg.dec > b/MdeModulePkg/MdeModulePkg.dec > index 58e6ab0048..ac437990f1 100644 > --- a/MdeModulePkg/MdeModulePkg.dec > +++ b/MdeModulePkg/MdeModulePkg.dec > @@ -2102,6 +2102,12 @@ > # @Prompt The shared bit mask when Intel Tdx is enabled. > > > gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0|UINT64|0x10 > 000025 > > > > + ## This PCD sets the position of the Boot Logo. > > + # TRUE - The Logo is positioned following the recommendations from > Microsoft. > > + # FALSE - The logo is positioned in the center of the screen. > > + # @ Prompt This position of the boot logo > > + > gEfiMdeModulePkgTokenSpaceGuid.PcdFollowMicrosoftRecommended|FALSE > |BOOLEAN|0x10000026 > > + > > [PcdsPatchableInModule] > > ## Specify memory size with page number for PEI code when > > # Loading Module at Fixed Address feature is enabled. > > diff --git a/MdeModulePkg/MdeModulePkg.uni > b/MdeModulePkg/MdeModulePkg.uni > index 33ce9f6198..09c1ac1cc1 100644 > --- a/MdeModulePkg/MdeModulePkg.uni > +++ b/MdeModulePkg/MdeModulePkg.uni > @@ -1338,3 +1338,9 @@ > #string > STR_gEfiMdeModulePkgTokenSpaceGuid_PcdPcieResizableBarSupport_HELP > #language en-US "Indicates if the PCIe Resizable BAR Capability > Supported.<BR><BR>\n" > > > "TRUE - PCIe Resizable BAR Capability is supported.<BR>\n" > > > "FALSE - PCIe Resizable BAR Capability is not supported.<BR>" > > + > > +#string > STR_gEfiMdeModulePkgTokenSpaceGuid_PcdFollowMicrosoftRecommended_ > PROMPT #language en-US "The position of the Boot Logo" > > + > > +#string > STR_gEfiMdeModulePkgTokenSpaceGuid_PcdFollowMicrosoftRecommend_HE > LP #language en-US "Sets the position of the Logo. When set to true, the > Logo is positioned following the recommendations" > > + > " from Microsoft, 38.2% from the top of the screen." > > + > > -- > 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94827): https://edk2.groups.io/g/devel/message/94827 Mute This Topic: https://groups.io/mt/94193210/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-