Revision: 17849
          http://sourceforge.net/p/edk2/code/17849
Author:   niruiyu
Date:     2015-07-07 05:43:00 +0000 (Tue, 07 Jul 2015)
Log Message:
-----------
MdeModulePkg: Update UefiBootManagerLib to support HTTP boot option creation

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Siyuan Fu <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
    trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h

Modified: trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c 2015-07-07 
05:41:43 UTC (rev 17848)
+++ trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c 2015-07-07 
05:43:00 UTC (rev 17849)
@@ -69,6 +69,8 @@
   @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 @@
         // 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 @@
         case MSG_IPv6_DP:
           return BmMessageNetworkBoot;
           break;
+
+        case MSG_URI_DP:
+          return BmMessageHttpBoot;
+          break;
         }
     }
   }
@@ -686,6 +692,10 @@
     Description = L"Network";
     break;
 
+  case BmMessageHttpBoot:
+    Description = L"Http";
+    break;
+
   default:
     Status = gBS->HandleProtocol (Handle, &gEfiSimpleFileSystemProtocolGuid, 
(VOID **) &Fs);
     if (!EFI_ERROR (Status)) {

Modified: trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
===================================================================
--- trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h     
2015-07-07 05:41:43 UTC (rev 17848)
+++ trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h     
2015-07-07 05:43:00 UTC (rev 17849)
@@ -91,6 +91,7 @@
   BmMessageUsbBoot,
   BmMessageScsiBoot,
   BmMessageNetworkBoot,
+  BmMessageHttpBoot,
   BmMiscBoot
 } BM_BOOT_TYPE;
 


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to