From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.68.99; helo=eur02-he1-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068099.outbound.protection.outlook.com [40.92.68.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A17EF21CB74A7 for ; Mon, 14 May 2018 12:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gkZIm6AhrjBKxkz5HZjDb3pGiaoq/XPJ/d+L/UlVMVI=; b=NT05ojkHM4QKRn4iPbl3CJlfbFBAiYCJH3Rsusq9LtJqaOzz/S001SRKBzYHQEkomihwDgUfNlYyAWh2pAAPqhZM3i1VmVSYzJItfpMrx0f0fQy0UiG43qwLYTN2lSWGNp+CHvCBRorMzJFGPriOZWiLEKmQjIhbqzjUPl+AyD5Y8FaSX1Re+2ASzn8YZ6xeeT0QjIEC79q4HavpbDWjlXo2nkxXTIjGSORyJXPs5EGT7/t+yJjZsnmMd3zwbMvVakxsnEq3y1uMj/R/ZVCZHFpf7sbGwvvYsqzfCLx21+QHGvfuciV103J/vvlFwgGhTa6WBeTl+uwOrS7Oli6H+w== Received: from HE1EUR02FT032.eop-EUR02.prod.protection.outlook.com (10.152.10.52) by HE1EUR02HT244.eop-EUR02.prod.protection.outlook.com (10.152.11.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Mon, 14 May 2018 19:00:03 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.10.52) by HE1EUR02FT032.mail.protection.outlook.com (10.152.10.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.735.16 via Frontend Transport; Mon, 14 May 2018 19:00:02 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e%17]) with mapi id 15.20.0755.012; Mon, 14 May 2018 19:00:02 +0000 From: Marvin H?user To: "edk2-devel@lists.01.org" CC: "star.zeng@intel.com" , "eric.dong@intel.com" Thread-Topic: Proposition of a BmEnumerateBootOptions() hook. Thread-Index: AdPrsgMo2EIXJLdYQImjwNC1Y2yr9A== Date: Mon, 14 May 2018 19:00:02 +0000 Message-ID: Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:8948E4A7C31EDCBF4AD3F367475F2710E2ED2FD79C8A10618B29A6521CB9B7AD; UpperCasedChecksum:249C18057FB29E83FD8F7D48B1FD4FAD35B4BEAE1089937586BC6D354013BAD2; SizeAsReceived:6989; Count:44 x-tmn: [U3swtgjn5NTBQjLqhzeysPdC5rmuo/dd] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1EUR02HT244; 7:bTl0Fl9QNMiN9n/H019lFX6sLFWRaPrg+CYUVgrD7z5XZ72+Jgnp5EObe6e5GeI59X/kUqW9jbV4Gq50Xc+UWUziyR2wGn3BvWu1bGHM6VtfbrGZTj3bQEV2XqgQdy/ucjuCixEzFvO0BeisoikbVbW0sJ036+PG0n8c8US4C6dJsclkLtzwvRJ+IgzD5VookKmemXemtSjUha3KhgCo9TNrfKNEsk1PmXNNVbKCuTgJf9Vawhcnhw0B5g2ib4Tz x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125425)(1701031045); SRVR:HE1EUR02HT244; x-ms-traffictypediagnostic: HE1EUR02HT244: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:HE1EUR02HT244; BCL:0; PCL:0; RULEID:; SRVR:HE1EUR02HT244; x-forefront-prvs: 067270ECAF x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(6029001)(189003)(199004)(51874003)(102836004)(33656002)(105586002)(790700001)(106356001)(6306002)(26005)(8936002)(55016002)(74316002)(54906003)(54896002)(68736007)(6436002)(82202002)(104016004)(20460500001)(3660700001)(3280700002)(81156014)(2501003)(8676002)(87572001)(5250100002)(2351001)(86362001)(6916009)(5640700003)(476003)(4326008)(6346003)(486006)(5660300001)(99286004)(2900100001)(72206003)(14454004)(25786009)(97736004)(426003)(7696005)(19627235001); DIR:OUT; SFP:1901; SCL:1; SRVR:HE1EUR02HT244; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; received-spf: None (protection.outlook.com: outlook.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Marvin.Haeuser@outlook.com; x-microsoft-antispam-message-info: 5DsVhQpPW4SuVgaM/9r0xqA4ifZEU3549yqdP6B6ZrIhtemelJvXhN5QUgCwMgEyzdPjhFZ5pmkl6ghGp8ZPsbU3XsuY5AI4eaTh0Je2jbcJfjojRDjR3imCCwcypctw9lc7m2kS9Asg6hzdukx/PKwlhzKaj/c9lcv9bJpEa7ybyxn7Cglsu0mxdcAvUD5R MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a8792ec0-cf5a-47c5-d8ed-08d5b9cce638 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: a8792ec0-cf5a-47c5-d8ed-08d5b9cce638 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2018 19:00:02.9120 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT244 X-Content-Filtered-By: Mailman/MimeDel 2.1.26 Subject: 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: Mon, 14 May 2018 19:00:06 -0000 Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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