]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1, Add <Library/DevicePathLib.h> for all source that use device path utility macros
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 11 Nov 2008 15:44:41 +0000 (15:44 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 11 Nov 2008 15:44:41 +0000 (15:44 +0000)
2, Add DevicePathLib library class to module's INF that use device path utility macros

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6458 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.c
IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DxeSmmDriverEntryPoint.inf
IntelFrameworkPkg/Library/FrameworkUefiLib/FrameworkUefiLib.h
IntelFrameworkPkg/Library/FrameworkUefiLib/FrameworkUefiLib.inf

index f0a0f6b973610f2380aa091935cbef2117ab9cd1..f77bce1610046409509f0760c5eb7895ecfdd1b9 100644 (file)
@@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiDriverEntryPoint.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/DebugLib.h>\r
-\r
+#include <Library/DevicePathLib.h>\r
 \r
 /**\r
   This function returns the size, in bytes,\r
@@ -52,8 +52,8 @@ SmmGetDevicePathSize (
   // Search for the end of the device path structure\r
   //\r
   Start = DevicePath;\r
-  while (!EfiIsDevicePathEnd (DevicePath)) {\r
-    DevicePath = EfiNextDevicePathNode (DevicePath);\r
+  while (!IsDevicePathEnd (DevicePath)) {\r
+    DevicePath = NextDevicePathNode (DevicePath);\r
   }\r
 \r
   //\r
index 8ce94b11ccec57d3e095b6b4ced1d7c09f5401b6..5e3f803cf026b7d29521a4bc8e90e42ce9bd2814 100644 (file)
@@ -43,7 +43,7 @@
 [LibraryClasses]\r
   DebugLib\r
   UefiBootServicesTableLib\r
-\r
+  DevicePathLib\r
 \r
 [Protocols]\r
   gEfiLoadedImageProtocolGuid                   # PROTOCOL ALWAYS_CONSUMED\r
index 630e892cb4f8098307096eea63800356de4f07c1..0d8365a556e79209dd218652921428fa945ebb5c 100644 (file)
@@ -38,5 +38,6 @@
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/PrintLib.h>\r
+#include <Library/DevicePathLib.h>\r
 \r
 #endif\r
index 8192558492b2690fecd1ae4515cbba2096a57e4a..058fa05ede77c824a6da97eb599081f9b4336931 100644 (file)
@@ -55,7 +55,8 @@
   BaseMemoryLib\r
   BaseLib\r
   UefiBootServicesTableLib\r
-\r
+  DevicePathLib\r
+  \r
 [Protocols]\r
   gEfiDriverBindingProtocolGuid                 # ALWAYS_CONSUMED\r
   gEfiComponentNameProtocolGuid                 # SOMETIMES_CONSUMED\r