ArmPkg/PlatformBootManagerLib: move to BootLogoLib for boot splash support
Replace the duplicated and outdated code in QuietBoot.c with a reference to BootLogoLib, which provides the same functionality. This also allows us to drop all references to IntelFrameworkModulePkg in this module. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
**/
|
||||
|
||||
#include <IndustryStandard/Pci22.h>
|
||||
#include <Library/BootLogoLib.h>
|
||||
#include <Library/DevicePathLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/UefiBootManagerLib.h>
|
||||
@ -513,13 +514,15 @@ PlatformBootManagerAfterConsole (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
Print (L"Press ESCAPE for boot options ");
|
||||
EFI_STATUS Status;
|
||||
|
||||
//
|
||||
// Show the splash screen.
|
||||
//
|
||||
EnableQuietBoot (PcdGetPtr (PcdLogoFile));
|
||||
|
||||
Status = BootLogoEnableLogo ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
Print (L"Press ESCAPE for boot options ");
|
||||
}
|
||||
//
|
||||
// Connect the rest of the devices.
|
||||
//
|
||||
@ -550,5 +553,25 @@ PlatformBootManagerWaitCallback (
|
||||
UINT16 TimeoutRemain
|
||||
)
|
||||
{
|
||||
Print (L".");
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION Black;
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION White;
|
||||
UINT16 Timeout;
|
||||
EFI_STATUS Status;
|
||||
|
||||
Timeout = PcdGet16 (PcdPlatformBootTimeOut);
|
||||
|
||||
Black.Raw = 0x00000000;
|
||||
White.Raw = 0x00FFFFFF;
|
||||
|
||||
Status = BootLogoUpdateProgress (
|
||||
White.Pixel,
|
||||
Black.Pixel,
|
||||
L"Press ESCAPE for boot options",
|
||||
White.Pixel,
|
||||
(Timeout - TimeoutRemain) * 100 / Timeout,
|
||||
0
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
Print (L".");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user