]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformBootManagerLib: display boot option loading/starting
authorLaszlo Ersek <lersek@redhat.com>
Wed, 20 Feb 2019 00:08:58 +0000 (01:08 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 25 Feb 2019 10:51:36 +0000 (11:51 +0100)
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 <anthony.perard@citrix.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Julien Grall <julien.grall@linaro.org>
Cc: Ray Ni <ray.ni@intel.com>
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1515418
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf

index b2faa797c61bab7267992f08d06789b9a6f3dcc5..12303fb0f1f3b564af2aada82ba8ed9f7a2b66ae 100644 (file)
@@ -16,6 +16,7 @@
 #include <Guid/XenInfo.h>\r
 #include <Guid/RootBridgesConnectedEventGroup.h>\r
 #include <Protocol/FirmwareVolume2.h>\r
+#include <Library/PlatformBmPrintScLib.h>\r
 #include <Library/Tcg2PhysicalPresenceLib.h>\r
 \r
 \r
@@ -1542,6 +1543,8 @@ PlatformBootManagerAfterConsole (
 \r
   RemoveStaleFvFileOptions ();\r
   SetBootOrderFromQemu ();\r
+\r
+  PlatformBmPrintScRegisterHandler ();\r
 }\r
 \r
 /**\r
index 5d9b53bf2d1eac643a15255b1debea70fb9e5e70..c41aaeef3fc3f345defa230a8192a17b3b5fb01f 100644 (file)
@@ -58,6 +58,7 @@
   QemuBootOrderLib\r
   ReportStatusCodeLib\r
   UefiLib\r
+  PlatformBmPrintScLib\r
   Tcg2PhysicalPresenceLib\r
 \r
 [Pcd]\r