diff options
author | gdong1 <guo.dong@intel.com> | 2016-10-26 17:49:58 -0700 |
---|---|---|
committer | Maurice Ma <maurice.ma@intel.com> | 2016-10-27 09:22:33 -0700 |
commit | f94623aacc35bd1dd32a5d4ecb6b00121adf3847 (patch) | |
tree | 2ad8e23b0f21bdc584fcf551da64d0d2acef3bee | |
parent | 5a5025e485b299c76ebed79fa63ba88a5b219a12 (diff) | |
download | edk2-platforms-f94623aacc35bd1dd32a5d4ecb6b00121adf3847.tar.xz |
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>
-rw-r--r-- | CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index a31384af00..1546e4879a 100644 --- a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -201,11 +201,6 @@ PlatformBootManagerBeforeConsole ( EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL);
//
- // Register UEFI Shell
- //
- PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", LOAD_OPTION_ACTIVE);
-
- //
// Install ready to lock.
// This needs to be done before option rom dispatched.
//
@@ -237,6 +232,11 @@ PlatformBootManagerAfterConsole ( EfiBootManagerConnectAll ();
EfiBootManagerRefreshAllBootOption ();
+ //
+ // Register UEFI Shell
+ //
+ PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", LOAD_OPTION_ACTIVE);
+
Print (
L"\n"
L"F2 to enter Boot Manager Menu.\n"
|