summaryrefslogtreecommitdiffstats
path: root/CorebootPayloadPkg
diff options
context:
space:
mode:
authorgdong1 <guo.dong@intel.com>2016-10-26 17:49:58 -0700
committerMaurice Ma <maurice.ma@intel.com>2016-10-27 09:22:33 -0700
commitf94623aacc35bd1dd32a5d4ecb6b00121adf3847 (patch)
tree2ad8e23b0f21bdc584fcf551da64d0d2acef3bee /CorebootPayloadPkg
parent5a5025e485b299c76ebed79fa63ba88a5b219a12 (diff)
downloadedk2-f94623aacc35bd1dd32a5d4ecb6b00121adf3847.tar.gz
edk2-f94623aacc35bd1dd32a5d4ecb6b00121adf3847.tar.bz2
edk2-f94623aacc35bd1dd32a5d4ecb6b00121adf3847.zip
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>
Diffstat (limited to 'CorebootPayloadPkg')
-rw-r--r--CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c10
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"