mirror of https://github.com/acidanthera/audk.git
ArmVirtPkg/PlatformBootManagerLib: use EfiBootManagerUpdateConsoleVariable
In this rather mechanical patch, we replace the calls to GenericBdsLib's
BdsLibUpdateConsoleVariable() with calls to UefiBootManagerLib's
EfiBootManagerUpdateConsoleVariable(), which has the same purpose.
The latter uses CONSOLE_TYPE enum constants from
"MdeModulePkg/Include/Library/UefiBootManagerLib.h", for identifying the
console type / underlying UEFI variable in the first parameter.
This patch parallels OvmfPkg commit 9dc08ec657
.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@Intel.com>
This commit is contained in:
parent
e3fe3c0ff9
commit
b7a33aff26
|
@ -329,14 +329,14 @@ AddOutput (
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = BdsLibUpdateConsoleVariable (L"ConOut", DevicePath, NULL);
|
Status = EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a: %s: adding to ConOut: %r\n", __FUNCTION__,
|
DEBUG ((EFI_D_ERROR, "%a: %s: adding to ConOut: %r\n", __FUNCTION__,
|
||||||
ReportText, Status));
|
ReportText, Status));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = BdsLibUpdateConsoleVariable (L"ErrOut", DevicePath, NULL);
|
Status = EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a: %s: adding to ErrOut: %r\n", __FUNCTION__,
|
DEBUG ((EFI_D_ERROR, "%a: %s: adding to ErrOut: %r\n", __FUNCTION__,
|
||||||
ReportText, Status));
|
ReportText, Status));
|
||||||
|
@ -393,7 +393,7 @@ PlatformBootManagerAfterConsole (
|
||||||
//
|
//
|
||||||
// Add the hardcoded short-form USB keyboard device path to ConIn.
|
// Add the hardcoded short-form USB keyboard device path to ConIn.
|
||||||
//
|
//
|
||||||
BdsLibUpdateConsoleVariable (L"ConIn",
|
EfiBootManagerUpdateConsoleVariable (ConIn,
|
||||||
(EFI_DEVICE_PATH_PROTOCOL *)&mUsbKeyboard, NULL);
|
(EFI_DEVICE_PATH_PROTOCOL *)&mUsbKeyboard, NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -401,11 +401,11 @@ PlatformBootManagerAfterConsole (
|
||||||
//
|
//
|
||||||
CopyGuid (&mSerialConsole.TermType.Guid,
|
CopyGuid (&mSerialConsole.TermType.Guid,
|
||||||
PcdGetPtr (PcdTerminalTypeGuidBuffer));
|
PcdGetPtr (PcdTerminalTypeGuidBuffer));
|
||||||
BdsLibUpdateConsoleVariable (L"ConIn",
|
EfiBootManagerUpdateConsoleVariable (ConIn,
|
||||||
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
||||||
BdsLibUpdateConsoleVariable (L"ConOut",
|
EfiBootManagerUpdateConsoleVariable (ConOut,
|
||||||
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
||||||
BdsLibUpdateConsoleVariable (L"ErrOut",
|
EfiBootManagerUpdateConsoleVariable (ErrOut,
|
||||||
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue