mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformBootManagerLib: use EfiBootManagerUpdateConsoleVariable
Call EfiBootManagerUpdateConsoleVariable in UefiBootManagerLib instead of BdsLibUpdateConsoleVariable in GenericBdsLib. Still cannot pass build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
a7566234e9
commit
9dc08ec657
|
@ -236,7 +236,7 @@ Returns:
|
||||||
//
|
//
|
||||||
DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gPnpPs2KeyboardDeviceNode);
|
DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gPnpPs2KeyboardDeviceNode);
|
||||||
|
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleInp, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConIn, DevicePath, NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Register COM1
|
// Register COM1
|
||||||
|
@ -263,9 +263,9 @@ Returns:
|
||||||
FreePool(DevPathStr);
|
FreePool(DevPathStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleInp, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConIn, DevicePath, NULL);
|
||||||
BdsLibUpdateConsoleVariable (VarErrorOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Register COM2
|
// Register COM2
|
||||||
|
@ -292,9 +292,9 @@ Returns:
|
||||||
FreePool(DevPathStr);
|
FreePool(DevPathStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleInp, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConIn, DevicePath, NULL);
|
||||||
BdsLibUpdateConsoleVariable (VarErrorOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -374,8 +374,8 @@ GetGopDevicePath (
|
||||||
// Delete the PCI device's path that added by GetPlugInPciVgaDevicePath()
|
// Delete the PCI device's path that added by GetPlugInPciVgaDevicePath()
|
||||||
// Add the integrity GOP device path.
|
// Add the integrity GOP device path.
|
||||||
//
|
//
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOutDev, NULL, PciDevicePath);
|
EfiBootManagerUpdateConsoleVariable (ConOutDev, NULL, PciDevicePath);
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOutDev, TempDevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConOutDev, TempDevicePath, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gBS->FreePool (GopHandleBuffer);
|
gBS->FreePool (GopHandleBuffer);
|
||||||
|
@ -424,7 +424,7 @@ Returns:
|
||||||
GetGopDevicePath (DevicePath, &GopDevicePath);
|
GetGopDevicePath (DevicePath, &GopDevicePath);
|
||||||
DevicePath = GopDevicePath;
|
DevicePath = GopDevicePath;
|
||||||
|
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -467,9 +467,9 @@ Returns:
|
||||||
DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gUartDeviceNode);
|
DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gUartDeviceNode);
|
||||||
DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gTerminalTypeDeviceNode);
|
DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gTerminalTypeDeviceNode);
|
||||||
|
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleInp, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConIn, DevicePath, NULL);
|
||||||
BdsLibUpdateConsoleVariable (VarErrorOut, DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -731,13 +731,13 @@ Returns:
|
||||||
// Update the console variable with the connect type
|
// Update the console variable with the connect type
|
||||||
//
|
//
|
||||||
if ((PlatformConsole[Index].ConnectType & CONSOLE_IN) == CONSOLE_IN) {
|
if ((PlatformConsole[Index].ConnectType & CONSOLE_IN) == CONSOLE_IN) {
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleInp, PlatformConsole[Index].DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConIn, PlatformConsole[Index].DevicePath, NULL);
|
||||||
}
|
}
|
||||||
if ((PlatformConsole[Index].ConnectType & CONSOLE_OUT) == CONSOLE_OUT) {
|
if ((PlatformConsole[Index].ConnectType & CONSOLE_OUT) == CONSOLE_OUT) {
|
||||||
BdsLibUpdateConsoleVariable (VarConsoleOut, PlatformConsole[Index].DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ConOut, PlatformConsole[Index].DevicePath, NULL);
|
||||||
}
|
}
|
||||||
if ((PlatformConsole[Index].ConnectType & STD_ERROR) == STD_ERROR) {
|
if ((PlatformConsole[Index].ConnectType & STD_ERROR) == STD_ERROR) {
|
||||||
BdsLibUpdateConsoleVariable (VarErrorOut, PlatformConsole[Index].DevicePath, NULL);
|
EfiBootManagerUpdateConsoleVariable (ErrOut, PlatformConsole[Index].DevicePath, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue