From nobody Sun May 5 08:10:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail(p=none dis=none) header.from=intel.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1529582788055552.6068424947504; Thu, 21 Jun 2018 05:06:28 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2292A210F6243; Thu, 21 Jun 2018 05:06:27 -0700 (PDT) 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 0CEDA210F529F for ; Thu, 21 Jun 2018 05:06:25 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 05:06:25 -0700 Received: from shwde7172.ccr.corp.intel.com ([10.239.158.25]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jun 2018 05:06:24 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,251,1526367600"; d="scan'208";a="59079132" From: Liming Gao To: edk2-devel@lists.01.org Date: Thu, 21 Jun 2018 20:06:17 +0800 Message-Id: <1529582777-12420-1-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 Subject: [edk2] [Patch] MdeModulePkg BootMaintenanceManagerUiLib: Move refresh boot option later 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: , Cc: Xu WeiX MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Constructor is too early that ConnectAll() may not do. Move refresh boot=20 option in form open.=20 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Xu WeiX Reviewed-by: Liming Gao Reviewed-by: Eric Dong --- MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenan= ce.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c index 98e14c7..fdcb56a 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c @@ -1111,6 +1111,7 @@ BootMaintCallback ( // 2. Re-scan the BootOption menus (including the legacy boot opti= on). // CustomizeMenus (); + EfiBootManagerRefreshAllBootOption (); BOpt_GetBootOptions (Private); mFirstEnterBMMForm =3D TRUE; } @@ -1690,8 +1691,6 @@ BootMaintenanceManagerUiLibConstructor ( Status =3D gBS->LocateProtocol (&gEfiFormBrowser2ProtocolGuid, NULL, (VO= ID **) &mBmmCallbackInfo->FormBrowser2); ASSERT_EFI_ERROR (Status); =20 - EfiBootManagerRefreshAllBootOption (); - // // Create LoadOption in BmmCallbackInfo for Driver Callback // --=20 2.8.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel