[PATCH 2/2] UefiPayloadPkg: Load Boot Logo into ACPI table


Sean Rhodes
 

If the boot logo is enabled, this will allow edk2 to pass the logo
to the OS via ACPI.

Cc: Guo Dong <guo.dong@...>
Cc: Ray Ni <ray.ni@...>
Signed-off-by: Sean Rhodes <sean@...>
---
UefiPayloadPkg/UefiPayloadPkg.dsc | 10 ++++++++++
UefiPayloadPkg/UefiPayloadPkg.fdf | 4 ++++
2 files changed, 14 insertions(+)

diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload=
Pkg.dsc
index abe1a42709..91cd78dbf1 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.dsc
+++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
@@ -300,6 +300,12 @@
VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf=0D
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeRepor=
tStatusCodeLib.inf=0D
=0D
+[LibraryClasses.common]=0D
+!if $(BOOTSPLASH_IMAGE)=0D
+ SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf=0D
+ BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.i=
nf=0D
+!endif=0D
+=0D
[LibraryClasses.common.SEC]=0D
HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf=0D
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf=0D
@@ -679,6 +685,10 @@
# ACPI Support=0D
#=0D
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf=0D
+!if $(BOOTSPLASH_IMAGE)=0D
+ MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf=0D
+ MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsRes=
ourceTableDxe.inf=0D
+!endif=0D
=0D
#=0D
# PCI Support=0D
diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload=
Pkg.fdf
index d7c9db191c..27534f445d 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.fdf
+++ b/UefiPayloadPkg/UefiPayloadPkg.fdf
@@ -245,6 +245,10 @@ INF MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
# ACPI Support=0D
#=0D
INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf=0D
+!if $(BOOTSPLASH_IMAGE)=0D
+INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf=0D
+INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphics=
ResourceTableDxe.inf=0D
+!endif=0D
=0D
#=0D
# UEFI network modules=0D
--=20
2.34.1

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