UefiPayloadPkg: Add a Macro to enable Boot Logo

Add a macro called BOOTSPLASH_IMAGE, which when enabled, will
display a logo at boot time.

Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Sean Rhodes
2022-07-10 19:20:40 +01:00
committed by mergify[bot]
parent d219119721
commit 79aab22fca
4 changed files with 20 additions and 0 deletions

View File

@ -243,6 +243,8 @@ PlatformBootManagerAfterConsole (
{
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black;
EFI_GRAPHICS_OUTPUT_BLT_PIXEL White;
EDKII_PLATFORM_LOGO_PROTOCOL *PlatformLogo;
EFI_STATUS Status;
if (mUniversalPayloadPlatformBootManagerOverrideInstance != NULL) {
mUniversalPayloadPlatformBootManagerOverrideInstance->AfterConsole ();
@ -252,6 +254,13 @@ PlatformBootManagerAfterConsole (
Black.Blue = Black.Green = Black.Red = Black.Reserved = 0;
White.Blue = White.Green = White.Red = White.Reserved = 0xFF;
Status = gBS->LocateProtocol (&gEdkiiPlatformLogoProtocolGuid, NULL, (VOID **)&PlatformLogo);
if (!EFI_ERROR (Status)) {
gST->ConOut->ClearScreen (gST->ConOut);
BootLogoEnableLogo ();
}
EfiBootManagerConnectAll ();
EfiBootManagerRefreshAllBootOption ();