From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A4ECE1A1E43 for ; Wed, 26 Oct 2016 19:54:54 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 26 Oct 2016 19:54:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="1050855271" Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by orsmga001.jf.intel.com with ESMTP; 26 Oct 2016 19:54:54 -0700 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.50]) by ORSMSX110.amr.corp.intel.com ([169.254.10.110]) with mapi id 14.03.0248.002; Wed, 26 Oct 2016 19:54:53 -0700 From: "Ma, Maurice" To: "Dong, Guo" CC: "Agyeman, Prince" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH] CorebootPayloadPkg: Make EFI shell the last boot option. Thread-Index: AQHSL+w/tl0rGjcalkSst76WIE1Yr6C7msrQ Date: Thu, 27 Oct 2016 02:54:53 +0000 Message-ID: <7AAC936950815649B5F88FAE785306C284176D30@ORSMSX113.amr.corp.intel.com> References: <5d0d5eddf51876b7c9678758a15a508e8a89f1b8.1477529406.git.guo.dong@intel.com> In-Reply-To: <5d0d5eddf51876b7c9678758a15a508e8a89f1b8.1477529406.git.guo.dong@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDIwMDI4ODEtZjIxOS00MWQ1LTk4MWItODNkOTQ1OTczMTJhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjlZZ0NzaTJQSjBZeUNsNjBLM0JaRndMWDJiNm41SkdMMGsydzVaNEE2bjQ9In0= x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Subject: Re: [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 02:54:54 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Maurice Ma -----Original Message----- From: Dong, Guo=20 Sent: Wednesday, October 26, 2016 5:51 PM To: edk2-devel@lists.01.org Cc: Ma, Maurice; Agyeman, Prince; Dong, Guo Subject: [edk2] [PATCH] CorebootPayloadPkg: Make EFI shell the last boot op= tion. To let it boot to OS automatically, make built in shell as the last boot op= tion. 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/PlatformBoot= Manager.c b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootM= anager.c index a31384a..1546e48 100644 --- a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager= .c +++ b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootMana +++ ger.c @@ -201,11 +201,6 @@ PlatformBootManagerBeforeConsole ( EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumb= er, 0, &F2, NULL); =20 // - // Register UEFI Shell - // - PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", L= OAD_OPTION_ACTIVE); - - // // Install ready to lock. // This needs to be done before option rom dispatched. // @@ -237,6 +232,11 @@ PlatformBootManagerAfterConsole ( EfiBootManagerConnectAll (); EfiBootManagerRefreshAllBootOption (); =20 + // + // Register UEFI Shell + // + PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI=20 + Shell", LOAD_OPTION_ACTIVE); + =20 Print ( L"\n" L"F2 to enter Boot Manager Menu.\n" -- 2.7.0.windows.1