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.
v2: Also match MSG_URI_DP to sort HTTP Boot options Cc: Zailiang Sun <zailiang....@intel.com> Cc: Yi Qian <yi.q...@intel.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Signed-off-by: Gary Lin <g...@suse.com> --- Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c | 29 ++++++++++---------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c b/Platform/Intel/Vlv2TbltDevicePkg/Library/DxePlatformBootManagerLib/PlatformBootOption.c index 84aa097d58..195b3f3097 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,23 @@ 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: + case MSG_URI_DP: + return 8; } if (StrCmp (BootOption->Description, INTERNAL_UEFI_SHELL_NAME) == 0) { if (PcdGetBool (PcdBootToShellOnly)) { @@ -541,7 +542,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 (#44598): https://edk2.groups.io/g/devel/message/44598 Mute This Topic: https://groups.io/mt/32651927/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-