X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FUefiBootManagerLib%2FBmBoot.c;h=2c38aa827529f0da06be24f26fa82a320c8d25da;hb=ebf735f11907e31e1fa80f21737d277d8a964e17;hp=3691c116a9d18b2723be8998817af7aa40967283;hpb=3e2744e41f07066bfa72e77c150251b5d59ca5cc;p=mirror_edk2.git diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c index 3691c116a9..2c38aa8275 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c @@ -69,6 +69,8 @@ EfiBootManagerRegisterLegacyBootSupport ( @retval MessageNetworkBoot If given device path contains MESSAGING_DEVICE_PATH type device path node and its last device path node's subtype is MSG_MAC_ADDR_DP, MSG_VLAN_DP, MSG_IPv4_DP or MSG_IPv6_DP. + @retval MessageHttpBoot If given device path contains MESSAGING_DEVICE_PATH type device path node + and its last device path node's subtype is MSG_URI_DP. @retval UnsupportedBoot If tiven device path doesn't match the above condition, it's not supported. **/ @@ -113,7 +115,7 @@ BmDevicePathType ( // If the device path not only point to driver device, it is not a messaging device path, // if (!IsDevicePathEndType (NextNode)) { - break; + continue; } switch (DevicePathSubType (Node)) { @@ -139,6 +141,10 @@ BmDevicePathType ( case MSG_IPv6_DP: return BmMessageNetworkBoot; break; + + case MSG_URI_DP: + return BmMessageHttpBoot; + break; } } } @@ -686,6 +692,10 @@ BmGetMiscDescription ( Description = L"Network"; break; + case BmMessageHttpBoot: + Description = L"Http"; + break; + default: Status = gBS->HandleProtocol (Handle, &gEfiSimpleFileSystemProtocolGuid, (VOID **) &Fs); if (!EFI_ERROR (Status)) {