From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smarthost01a.sbp.mail.zen.net.uk (smarthost01a.sbp.mail.zen.net.uk [212.23.1.1]) by mx.groups.io with SMTP id smtpd.web10.161.1659470428993147966 for ; Tue, 02 Aug 2022 13:00:29 -0700 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.1, mailfrom: sean@starlabs.systems) Received: from [217.155.46.38] (helo=starbook.lan) by smarthost01a.sbp.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1oIy41-0003Hl-8C; Tue, 02 Aug 2022 20:00:25 +0000 From: "Sean Rhodes" To: devel@edk2.groups.io Cc: Sean Rhodes , Guo Dong , Ray Ni Subject: [PATCH 1/2] UefiPayloadPkg: Add a Macro to enable Boot Logo Date: Tue, 2 Aug 2022 21:00:20 +0100 Message-Id: <657766b60de4e2ecb2ba835a015d2274699a9ba5.1659470421.git.sean@starlabs.systems> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-smarthost01a-IP: [217.155.46.38] Feedback-ID: 217.155.46.38 Content-Transfer-Encoding: quoted-printable Add a macro called BOOTSPLASH_IMAGE, which when enabled, will display a logo at boot time. Cc: Guo Dong Cc: Ray Ni Signed-off-by: Sean Rhodes --- .../Library/PlatformBootManagerLib/PlatformBootManager.c | 9 +++++++++ .../PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + UefiPayloadPkg/UefiPayloadPkg.dsc | 6 ++++++ UefiPayloadPkg/UefiPayloadPkg.fdf | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana= ger.c b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index b360e29dfe..a3b98f713d 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -243,6 +243,8 @@ PlatformBootManagerAfterConsole ( {=0D EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black;=0D EFI_GRAPHICS_OUTPUT_BLT_PIXEL White;=0D + EDKII_PLATFORM_LOGO_PROTOCOL *PlatformLogo;=0D + EFI_STATUS Status;=0D =0D if (mUniversalPayloadPlatformBootManagerOverrideInstance !=3D NULL) {=0D mUniversalPayloadPlatformBootManagerOverrideInstance->AfterConsole ();= =0D @@ -252,6 +254,13 @@ PlatformBootManagerAfterConsole ( Black.Blue =3D Black.Green =3D Black.Red =3D Black.Reserved =3D 0;=0D White.Blue =3D White.Green =3D White.Red =3D White.Reserved =3D 0xFF;=0D =0D + Status =3D gBS->LocateProtocol (&gEdkiiPlatformLogoProtocolGuid, NULL, (= VOID **)&PlatformLogo);=0D +=0D + if (!EFI_ERROR (Status)) {=0D + gST->ConOut->ClearScreen (gST->ConOut);=0D + BootLogoEnableLogo ();=0D + }=0D +=0D EfiBootManagerConnectAll ();=0D EfiBootManagerRefreshAllBootOption ();=0D =0D diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana= gerLib.inf b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana= gerLib.inf index 9f58c460cd..7ec93420f2 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.= inf +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.= inf @@ -39,6 +39,7 @@ UefiRuntimeServicesTableLib=0D UefiLib=0D UefiBootManagerLib=0D + BootLogoLib=0D PcdLib=0D DxeServicesLib=0D MemoryAllocationLib=0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index e78e959ce4..abe1a42709 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -42,6 +42,7 @@ DEFINE CRYPTO_PROTOCOL_SUPPORT =3D FALSE=0D DEFINE SD_MMC_TIMEOUT =3D 1000000=0D DEFINE USE_CBMEM_FOR_CONSOLE =3D FALSE=0D + DEFINE BOOTSPLASH_IMAGE =3D FALSE=0D =0D #=0D # NULL: NullMemoryTestDxe=0D @@ -229,6 +230,7 @@ CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf= =0D SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf=0D UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManag= erLib.inf=0D + BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf=0D CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/Customize= dDisplayLib.inf=0D FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltL= ib.inf=0D =0D @@ -432,6 +434,7 @@ =0D gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_= MEMORY)=0D gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE= )=0D +=0D gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1800000=0D =0D !if $(CRYPTO_PROTOCOL_SUPPORT) =3D=3D TRUE=0D @@ -616,6 +619,9 @@ !endif=0D UefiCpuPkg/CpuDxe/CpuDxe.inf=0D MdeModulePkg/Universal/BdsDxe/BdsDxe.inf=0D +!if $(BOOTSPLASH_IMAGE)=0D + MdeModulePkg/Logo/LogoDxe.inf=0D +!endif=0D MdeModulePkg/Application/UiApp/UiApp.inf {=0D =0D NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf= =0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload= Pkg.fdf index afdd6447a7..d7c9db191c 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.fdf +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf @@ -165,6 +165,10 @@ INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf=0D =0D INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf=0D +!if $(BOOTSPLASH_IMAGE)=0D +INF MdeModulePkg/Logo/LogoDxe.inf=0D +!endif=0D +=0D #=0D # PCI Support=0D #=0D --=20 2.34.1