[PATCH 1/2] UefiPayloadPkg: Enable boot logo


Patrick Rudolph
 

From: Tim Crawford <tcrawford@system76.com>

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
---
UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c |=
3 +++
UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf |=
1 +
UefiPayloadPkg/UefiPayloadPkg.dsc |=
2 ++
UefiPayloadPkg/UefiPayloadPkg.fdf |=
2 ++
4 files changed, 8 insertions(+)

diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana=
ger.c b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
index c5c6af0abc..2df2d5a02d 100644
--- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
+++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
@@ -216,6 +216,9 @@ 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
+ gST->ConOut->ClearScreen (gST->ConOut);=0D
+ BootLogoEnableLogo ();=0D
+=0D
EfiBootManagerConnectAll ();=0D
EfiBootManagerRefreshAllBootOption ();=0D
=0D
diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana=
gerLib.inf b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana=
gerLib.inf
index 1f5a0bcad0..beba973a70 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 ae62a9c4d6..1a084c479e 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.dsc
+++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
@@ -169,6 +169,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
@@ -389,6 +390,7 @@
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf=0D
UefiCpuPkg/CpuDxe/CpuDxe.inf=0D
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf=0D
+ MdeModulePkg/Logo/LogoDxe.inf=0D
MdeModulePkg/Application/UiApp/UiApp.inf {=0D
<LibraryClasses>=0D
NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf=
=0D
diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload=
Pkg.fdf
index a97ace7395..98d3fdea4a 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.fdf
+++ b/UefiPayloadPkg/UefiPayloadPkg.fdf
@@ -112,6 +112,8 @@ INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngi=
neDxe.inf
INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf=0D
=0D
INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf=0D
+INF MdeModulePkg/Logo/LogoDxe.inf=0D
+=0D
#=0D
# PCI Support=0D
#=0D
--=20
2.26.2

Join devel@edk2.groups.io to automatically receive all group messages.