From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 7EBE4203B85A2 for ; Mon, 14 May 2018 22:40:22 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 22:40:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,402,1520924400"; d="scan'208,217";a="224295221" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 14 May 2018 22:40:21 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 14 May 2018 22:40:21 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 14 May 2018 22:40:20 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.79]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.40]) with mapi id 14.03.0319.002; Tue, 15 May 2018 13:40:19 +0800 From: "Zeng, Star" To: Marvin H?user , "edk2-devel@lists.01.org" CC: "Dong, Eric" , "Ni, Ruiyu" , "Zeng, Star" Thread-Topic: Proposition of a BmEnumerateBootOptions() hook. Thread-Index: AdPrsgMo2EIXJLdYQImjwNC1Y2yr9AAXQvHA Date: Tue, 15 May 2018 05:40:18 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BAEC287@shsmsx102.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.26 Subject: Re: Proposition of a BmEnumerateBootOptions() hook. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 05:40:22 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc Ray. Thanks, Star From: Marvin H?user [mailto:Marvin.Haeuser@outlook.com] Sent: Tuesday, May 15, 2018 3:00 AM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: Proposition of a BmEnumerateBootOptions() hook. Hey Star, Eric and everyone else, I have seen that some platforms add a Boot Option for the UEFI Shell in "Pl= atformBootManagerBeforeConsole()", which is called as part of the regular b= oot flow. This is surely beneficial for development platforms that are supposed to bo= ot to UEFI Shell by default when no other option has been registered, howev= er for retail platforms it usually makes more sense to show the UEFI Boot M= enu, which renders adding the Shell Boot Option as part of the regular boot= flow obsolete and just adds up to the boot time. Meanwhile, there is a fun= ction in the UefiBootManagerLib, "BmEnumerateBootOptions()", which is calle= d prior to entering the Boot Menu and, in my opinion, would be the perfect = place to introduce another PlatformBootManagerLib hook, which retrieves pla= tform-specific boot options, such as an UEFI Shell or other utilities like = a Memory Test application. If you have a few spare minutes, I'll be happy for feedback. Thanks in advance for your time. Best regards, Marvin