From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smarthost01a.ixn.mail.zen.net.uk (smarthost01a.ixn.mail.zen.net.uk [212.23.1.20]) by mx.groups.io with SMTP id smtpd.web11.39131.1643662572905794574 for ; Mon, 31 Jan 2022 12:56:13 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=permerror, err=parse error for token &{10 18 sdn.klaviyomail.com}: permanent DNS error (domain: starlabs.systems, ip: 212.23.1.20, mailfrom: sean@starlabs.systems) Received: from [217.155.46.38] (helo=sean-StarBook.lan) by smarthost01a.ixn.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1nEdic-0007uD-Mt; Mon, 31 Jan 2022 20:56:10 +0000 From: "Sean Rhodes" To: devel@edk2.groups.io Cc: Sean Rhodes Subject: [PATCH 43/43] UefiPayloadPkg: Add option to follow BGRT spec Date: Mon, 31 Jan 2022 20:56:08 +0000 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: <9dd14fc91c174eae87fd122c7ac70073a363527f.1643662556.git.sean@starlabs.systems> References: <9dd14fc91c174eae87fd122c7ac70073a363527f.1643662556.git.sean@starlabs.systems> MIME-Version: 1.0 X-Originating-smarthost01a-IP: [217.155.46.38] Feedback-ID: 217.155.46.38 Content-Transfer-Encoding: quoted-printable Add option to centre the Boot Logo 38.2% from the top of screen, following the BGRT specification. Signed-off-by: Sean Rhodes --- MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 6 +++++- MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf | 3 +++ MdeModulePkg/MdeModulePkg.dec | 3 +++ UefiPayloadPkg/UefiPayloadPkg.dsc | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c b/MdeModulePkg/= Library/BootLogoLib/BootLogoLib.c index 478ec2d40e..f6d052eea2 100644 --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c @@ -176,7 +176,11 @@ BootLogoEnableLogo ( break;=0D case EdkiiPlatformLogoDisplayAttributeCenter:=0D DestX =3D (SizeOfX - Image.Width) / 2;=0D - DestY =3D (SizeOfY - Image.Height) / 2;=0D + if (FixedPcdGetBool (PcdFollowBGRTSpec) =3D=3D TRUE) {=0D + DestY =3D (SizeOfY * 382) / 1000 - Image.Height / 2;=0D + } else {=0D + DestY =3D (SizeOfY - Image.Height) / 2;=0D + }=0D break;=0D case EdkiiPlatformLogoDisplayAttributeCenterRight:=0D DestX =3D SizeOfX - Image.Width;=0D diff --git a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf b/MdeModulePk= g/Library/BootLogoLib/BootLogoLib.inf index 7d50f2dfa3..03ff038f47 100644 --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf @@ -48,5 +48,8 @@ gEfiUserManagerProtocolGuid ## CONSUMES=0D gEdkiiPlatformLogoProtocolGuid ## CONSUMES=0D =0D +[Pcd]=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdFollowBGRTSpec=0D +=0D [FeaturePcd]=0D gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## CONSUMES=0D diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 463e889e9a..fb3eb7ab7f 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2079,6 +2079,9 @@ # @Prompt Enable PCIe Resizable BAR Capability support.=0D gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|FALSE|BOOLEAN|= 0x10000024=0D =0D + # Follow BGRT Specifcation=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdFollowBGRTSpec|TRUE|BOOLEAN|0x00000025= =0D +=0D [PcdsPatchableInModule]=0D ## Specify memory size with page number for PEI code when=0D # Loading Module at Fixed Address feature is enabled.=0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 1ce96a51c1..115111c037 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -33,6 +33,7 @@ DEFINE UNIVERSAL_PAYLOAD =3D FALSE=0D DEFINE SECURITY_STUB_ENABLE =3D TRUE=0D DEFINE SMM_SUPPORT =3D FALSE=0D + DEFINE FOLLOW_BGRT_SPEC =3D TRUE=0D #=0D # SBL: UEFI payload for Slim Bootloader=0D # COREBOOT: UEFI payload for coreboot=0D @@ -398,6 +399,7 @@ !if $(PERFORMANCE_MEASUREMENT_ENABLE)=0D gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1=0D !endif=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdFollowBGRTSpec|$(FOLLOW_BGRT_SPEC)=0D =0D [PcdsPatchableInModule.X64]=0D gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)= =0D --=20 2.32.0