From a7488174093ded6754cb34197b5b36f2eb67a159 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 20 Feb 2019 01:08:58 +0100 Subject: [PATCH] OvmfPkg/PlatformBootManagerLib: display boot option loading/starting Consume PlatformBmPrintScLib, added earlier in this series. When BdsDxe+UefiBootManagerLib report LoadImage() / StartImage() preparations and return statuses, print the reports to the UEFI console. This allows end-users better visibility into the boot process. Cc: Anthony Perard Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Julien Grall Cc: Ray Ni Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1515418 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 3 +++ .../Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + 2 files changed, 4 insertions(+) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index b2faa797c6..12303fb0f1 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -1542,6 +1543,8 @@ PlatformBootManagerAfterConsole ( RemoveStaleFvFileOptions (); SetBootOrderFromQemu (); + + PlatformBmPrintScRegisterHandler (); } /** diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf index 5d9b53bf2d..c41aaeef3f 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -58,6 +58,7 @@ QemuBootOrderLib ReportStatusCodeLib UefiLib + PlatformBmPrintScLib Tcg2PhysicalPresenceLib [Pcd]