From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C45DB1A1E43 for ; Wed, 26 Oct 2016 17:51:11 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 26 Oct 2016 17:51:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,551,1473145200"; d="scan'208";a="1059750930" Received: from gdong1-mobl4.ccr.corp.intel.com ([10.34.84.24]) by fmsmga001.fm.intel.com with ESMTP; 26 Oct 2016 17:51:11 -0700 From: gdong1 To: edk2-devel@lists.01.org Cc: maurice.ma@intel.com, prince.agyeman@intel.com, guo.dong@intel.com Date: Wed, 26 Oct 2016 17:51:09 -0700 Message-Id: <5d0d5eddf51876b7c9678758a15a508e8a89f1b8.1477529406.git.guo.dong@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [PATCH] CorebootPayloadPkg: Make EFI shell the last boot option. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 00:51:12 -0000 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 Reviewed-by: Maurice Ma --- .../Library/PlatformBootManagerLib/PlatformBootManager.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index a31384a..1546e48 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" -- 2.7.0.windows.1