]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
UefiPayloadPkg: Add a Macro to enable Boot Logo
[mirror_edk2.git] / UefiPayloadPkg / Library / PlatformBootManagerLib / PlatformBootManager.c
index 9364a5683d6b3fdcc8f6941b92203bdd21ba7352..a92a260a6e2d3a0198ecde7efed30467ff471925 100644 (file)
@@ -243,6 +243,8 @@ PlatformBootManagerAfterConsole (
 {\r
   EFI_GRAPHICS_OUTPUT_BLT_PIXEL  Black;\r
   EFI_GRAPHICS_OUTPUT_BLT_PIXEL  White;\r
+  EDKII_PLATFORM_LOGO_PROTOCOL   *PlatformLogo;\r
+  EFI_STATUS                     Status;\r
 \r
   if (mUniversalPayloadPlatformBootManagerOverrideInstance != NULL) {\r
     mUniversalPayloadPlatformBootManagerOverrideInstance->AfterConsole ();\r
@@ -252,6 +254,13 @@ PlatformBootManagerAfterConsole (
   Black.Blue = Black.Green = Black.Red = Black.Reserved = 0;\r
   White.Blue = White.Green = White.Red = White.Reserved = 0xFF;\r
 \r
+  Status = gBS->LocateProtocol (&gEdkiiPlatformLogoProtocolGuid, NULL, (VOID **)&PlatformLogo);\r
+\r
+  if (!EFI_ERROR (Status)) {\r
+    gST->ConOut->ClearScreen (gST->ConOut);\r
+    BootLogoEnableLogo ();\r
+  }\r
+\r
   EfiBootManagerConnectAll ();\r
   EfiBootManagerRefreshAllBootOption ();\r
 \r