If the connect all action has not been performed before.
We do it in UiApp now.

Cc: Liming Gao <liming....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan...@intel.com>
Reviewed-by: Eric Dong <eric.d...@intel.com>
---
 MdeModulePkg/Application/UiApp/FrontPage.c | 6 +++---
 MdeModulePkg/Application/UiApp/FrontPage.h | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/MdeModulePkg/Application/UiApp/FrontPage.c 
b/MdeModulePkg/Application/UiApp/FrontPage.c
index 1c0afa5..d1372d3 100644
--- a/MdeModulePkg/Application/UiApp/FrontPage.c
+++ b/MdeModulePkg/Application/UiApp/FrontPage.c
@@ -17,11 +17,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER 
EXPRESS OR IMPLIED.
 
 #define MAX_STRING_LEN            200
 
 EFI_GUID   mFrontPageGuid      = FRONT_PAGE_FORMSET_GUID;
 
-BOOLEAN   gConnectAllHappened = FALSE;
 BOOLEAN   mFeaturerSwitch = TRUE;
 BOOLEAN   mResetRequired  = FALSE;
 
 EFI_FORM_BROWSER2_PROTOCOL      *gFormBrowser2;
 CHAR8     *mLanguageString;
@@ -988,13 +987,14 @@ UiEntry (
     (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_USER_SETUP)
     );
 
   //
   // Indicate if the connect all has been performed before.
+  // If has not been performed before, do here.
   //
-  if (ConnectAllHappened) {
-    gConnectAllHappened = TRUE;
+  if (!ConnectAllHappened) {
+    EfiBootManagerConnectAll ();
   }
 
   //
   // The boot option enumeration time is acceptable in Ui driver
   //
diff --git a/MdeModulePkg/Application/UiApp/FrontPage.h 
b/MdeModulePkg/Application/UiApp/FrontPage.h
index 1da56ac..642d9d0 100644
--- a/MdeModulePkg/Application/UiApp/FrontPage.h
+++ b/MdeModulePkg/Application/UiApp/FrontPage.h
@@ -1,9 +1,9 @@
 /** @file
 Head file for front page.
 
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
 http://opensource.org/licenses/bsd-license.php
 
@@ -24,11 +24,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER 
EXPRESS OR IMPLIED.
 //
 extern UINT8  FrontPageVfrBin[];
 
 extern EFI_FORM_BROWSER2_PROTOCOL      *gFormBrowser2;
 
-extern BOOLEAN  gConnectAllHappened;
 
 #define SMBIOS_TYPE4_CPU_SOCKET_POPULATED BIT6
 
 //
 // This is the VFR compiler generated header file which defines the
-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to