]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/UiApp: Connect all devices in UiApp if needed
authorDandan Bi <dandan.bi@intel.com>
Mon, 6 Jun 2016 03:01:55 +0000 (11:01 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 21 Jun 2016 04:33:47 +0000 (12:33 +0800)
If the connect all action has not been performed before.
We do it in UiApp now.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Application/UiApp/FrontPage.c
MdeModulePkg/Application/UiApp/FrontPage.h

index 1c0afa560a4628d4232c46389c577a9ea45a5f37..d1372d334e20d2c5d9b8a3307b6634638e5df4ca 100644 (file)
@@ -19,7 +19,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 EFI_GUID   mFrontPageGuid      = FRONT_PAGE_FORMSET_GUID;\r
 \r
-BOOLEAN   gConnectAllHappened = FALSE;\r
 BOOLEAN   mFeaturerSwitch = TRUE;\r
 BOOLEAN   mResetRequired  = FALSE;\r
 \r
@@ -990,9 +989,10 @@ UiEntry (
 \r
   //\r
   // Indicate if the connect all has been performed before.\r
+  // If has not been performed before, do here.\r
   //\r
-  if (ConnectAllHappened) {\r
-    gConnectAllHappened = TRUE;\r
+  if (!ConnectAllHappened) {\r
+    EfiBootManagerConnectAll ();\r
   }\r
 \r
   //\r
index 1da56aced21d60a9a271c624dccd3930c291fd60..642d9d0c85ea9ee5abdba92a1745a0192cd45025 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Head file for front page.\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -26,7 +26,6 @@ extern UINT8  FrontPageVfrBin[];
 \r
 extern EFI_FORM_BROWSER2_PROTOCOL      *gFormBrowser2;\r
 \r
-extern BOOLEAN  gConnectAllHappened;\r
 \r
 #define SMBIOS_TYPE4_CPU_SOCKET_POPULATED BIT6\r
 \r