[edk2-devel] [PATCH edk2-platforms 1/4] Vlv2TbltDevicePkg: Adjust the device priority

Gary Lin glin at suse.com
Fri Jul 26 07:06:37 UTC 2019


In BootOptionPriority(), the higher number implies the lower boot
priority. This commit lowers the priority of network booting and raises
the priority of the local devices. Besides, SD and EMMC are also added
to BootOptionPriority() since Minnowboard comes with a SD card slot.

Cc: Zailiang Sun <zailiang.sun at intel.com>
Cc: Yi Qian <yi.qian at intel.com>
Cc: Michael D Kinney <michael.d.kinney at intel.com>
Signed-off-by: Gary Lin <glin at suse.com>
---
 Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c | 28 ++++++++++----------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c b/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c
index 84aa097d58..a73d54a97d 100644
--- a/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c
+++ b/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c
@@ -499,11 +499,10 @@ BootOptionType (
   Returns the priority number.

   OptionType                 EFI

   ------------------------------------

-  PXE                         2

-  DVD                         4

-  USB                         6

-  NVME                        7

-  HDD                         8

+  HDD                         2

+  USB                         4

+  SATA/NVME/SD                6

+  PXE/HTTP                    8

   EFI Shell                   9

   Others                      100

 

@@ -518,21 +517,22 @@ BootOptionPriority (
     // EFI boot options

     //

     switch (BootOptionType (BootOption->FilePath)) {

-    case MSG_MAC_ADDR_DP:

-    case MSG_VLAN_DP:

-    case MSG_IPv4_DP:

-    case MSG_IPv6_DP:

-      return 2;

+    case MSG_USB_DP:

+      return 4;

 

     case MSG_SATA_DP:

     case MSG_ATAPI_DP:

     case MSG_UFS_DP:

     case MSG_NVME_NAMESPACE_DP:

-      return 4;

-

-    case MSG_USB_DP:

+    case MSG_SD_DP:

+    case MSG_EMMC_DP:

       return 6;

 

+    case MSG_MAC_ADDR_DP:

+    case MSG_VLAN_DP:

+    case MSG_IPv4_DP:

+    case MSG_IPv6_DP:

+      return 8;

     }

     if (StrCmp (BootOption->Description, INTERNAL_UEFI_SHELL_NAME) == 0) {

       if (PcdGetBool (PcdBootToShellOnly)) {

@@ -541,7 +541,7 @@ BootOptionPriority (
       return 9;

     }

     if (StrCmp (BootOption->Description, UEFI_HARD_DRIVE_NAME) == 0) {

-      return 8;

+      return 2;

     }

     return 100;

 }

-- 
2.22.0


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#44444): https://edk2.groups.io/g/devel/message/44444
Mute This Topic: https://groups.io/mt/32606871/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list