mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
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:
parent
d219119721
commit
79aab22fca
@ -243,6 +243,8 @@ PlatformBootManagerAfterConsole (
|
|||||||
{
|
{
|
||||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black;
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black;
|
||||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL White;
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL White;
|
||||||
|
EDKII_PLATFORM_LOGO_PROTOCOL *PlatformLogo;
|
||||||
|
EFI_STATUS Status;
|
||||||
|
|
||||||
if (mUniversalPayloadPlatformBootManagerOverrideInstance != NULL) {
|
if (mUniversalPayloadPlatformBootManagerOverrideInstance != NULL) {
|
||||||
mUniversalPayloadPlatformBootManagerOverrideInstance->AfterConsole ();
|
mUniversalPayloadPlatformBootManagerOverrideInstance->AfterConsole ();
|
||||||
@ -252,6 +254,13 @@ PlatformBootManagerAfterConsole (
|
|||||||
Black.Blue = Black.Green = Black.Red = Black.Reserved = 0;
|
Black.Blue = Black.Green = Black.Red = Black.Reserved = 0;
|
||||||
White.Blue = White.Green = White.Red = White.Reserved = 0xFF;
|
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 ();
|
EfiBootManagerConnectAll ();
|
||||||
EfiBootManagerRefreshAllBootOption ();
|
EfiBootManagerRefreshAllBootOption ();
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
UefiRuntimeServicesTableLib
|
UefiRuntimeServicesTableLib
|
||||||
UefiLib
|
UefiLib
|
||||||
UefiBootManagerLib
|
UefiBootManagerLib
|
||||||
|
BootLogoLib
|
||||||
PcdLib
|
PcdLib
|
||||||
DxeServicesLib
|
DxeServicesLib
|
||||||
MemoryAllocationLib
|
MemoryAllocationLib
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE
|
DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE
|
||||||
DEFINE SD_MMC_TIMEOUT = 1000000
|
DEFINE SD_MMC_TIMEOUT = 1000000
|
||||||
DEFINE USE_CBMEM_FOR_CONSOLE = FALSE
|
DEFINE USE_CBMEM_FOR_CONSOLE = FALSE
|
||||||
|
DEFINE BOOTSPLASH_IMAGE = FALSE
|
||||||
|
|
||||||
#
|
#
|
||||||
# NULL: NullMemoryTestDxe
|
# NULL: NullMemoryTestDxe
|
||||||
@ -229,6 +230,7 @@
|
|||||||
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
||||||
SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
|
SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
|
||||||
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
||||||
|
BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
|
||||||
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
||||||
FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
|
FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
|
||||||
|
|
||||||
@ -432,6 +434,7 @@
|
|||||||
|
|
||||||
gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_MEMORY)
|
gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_MEMORY)
|
||||||
gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)
|
gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)
|
||||||
|
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1800000
|
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1800000
|
||||||
|
|
||||||
!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE
|
!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE
|
||||||
@ -616,6 +619,9 @@
|
|||||||
!endif
|
!endif
|
||||||
UefiCpuPkg/CpuDxe/CpuDxe.inf
|
UefiCpuPkg/CpuDxe/CpuDxe.inf
|
||||||
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
||||||
|
!if $(BOOTSPLASH_IMAGE)
|
||||||
|
MdeModulePkg/Logo/LogoDxe.inf
|
||||||
|
!endif
|
||||||
MdeModulePkg/Application/UiApp/UiApp.inf {
|
MdeModulePkg/Application/UiApp/UiApp.inf {
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
|
NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
|
||||||
|
@ -165,6 +165,10 @@ INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
|||||||
INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
|
INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
|
||||||
|
|
||||||
INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
||||||
|
!if $(BOOTSPLASH_IMAGE)
|
||||||
|
INF MdeModulePkg/Logo/LogoDxe.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# PCI Support
|
# PCI Support
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user