mirror of https://github.com/acidanthera/audk.git
Move PcdConInConnectOnDemand initlization to PlatformBds constructor so that hotkey service can act accordingly
Signed-off-by: Chao Zhang<chao.b.zhang@intel.com> Reviewed-by: Ni Ruiyu<ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13577 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
cf98e61d1a
commit
0a57b95918
|
@ -662,11 +662,16 @@ InitializeHotkeyService (
|
|||
EFI_KEY_OPTION *KeyOption;
|
||||
|
||||
//
|
||||
// Export our capability - EFI_BOOT_OPTION_SUPPORT_KEY and EFI_BOOT_OPTION_SUPPORT_APP
|
||||
// Export our capability - EFI_BOOT_OPTION_SUPPORT_KEY and EFI_BOOT_OPTION_SUPPORT_APP.
|
||||
// with maximum number of key presses of 3
|
||||
// Do not report the hotkey capability if PcdConInConnectOnDemand is enabled.
|
||||
//
|
||||
BootOptionSupport = EFI_BOOT_OPTION_SUPPORT_KEY | EFI_BOOT_OPTION_SUPPORT_APP;
|
||||
SET_BOOT_OPTION_SUPPORT_KEY_COUNT (BootOptionSupport, 3);
|
||||
BootOptionSupport = EFI_BOOT_OPTION_SUPPORT_APP;
|
||||
if (!PcdGetBool (PcdConInConnectOnDemand)) {
|
||||
BootOptionSupport |= EFI_BOOT_OPTION_SUPPORT_KEY;
|
||||
SET_BOOT_OPTION_SUPPORT_KEY_COUNT (BootOptionSupport, 3);
|
||||
}
|
||||
|
||||
Status = gRT->SetVariable (
|
||||
L"BootOptionSupport",
|
||||
&gEfiGlobalVariableGuid,
|
||||
|
|
Loading…
Reference in New Issue