mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
CorebootPayloadPkg: Make EFI shell the last boot option.
To let it boot to OS automatically, make built in shell as the last boot option. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Dong <guo.dong@intel.com> Reviewed-by: Maurice Ma <maurice.ma@intel.com>
This commit is contained in:
parent
5a5025e485
commit
f94623aacc
@ -200,11 +200,6 @@ PlatformBootManagerBeforeConsole (
|
|||||||
EfiBootManagerGetBootManagerMenu (&BootOption);
|
EfiBootManagerGetBootManagerMenu (&BootOption);
|
||||||
EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL);
|
EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL);
|
||||||
|
|
||||||
//
|
|
||||||
// Register UEFI Shell
|
|
||||||
//
|
|
||||||
PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", LOAD_OPTION_ACTIVE);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Install ready to lock.
|
// Install ready to lock.
|
||||||
// This needs to be done before option rom dispatched.
|
// This needs to be done before option rom dispatched.
|
||||||
@ -237,6 +232,11 @@ PlatformBootManagerAfterConsole (
|
|||||||
EfiBootManagerConnectAll ();
|
EfiBootManagerConnectAll ();
|
||||||
EfiBootManagerRefreshAllBootOption ();
|
EfiBootManagerRefreshAllBootOption ();
|
||||||
|
|
||||||
|
//
|
||||||
|
// Register UEFI Shell
|
||||||
|
//
|
||||||
|
PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", LOAD_OPTION_ACTIVE);
|
||||||
|
|
||||||
Print (
|
Print (
|
||||||
L"\n"
|
L"\n"
|
||||||
L"F2 to enter Boot Manager Menu.\n"
|
L"F2 to enter Boot Manager Menu.\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user