]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add an empty CONSTRUCTOR to the UefiLib to resolve library dependency issues.
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 18 Dec 2010 00:10:30 +0000 (00:10 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 18 Dec 2010 00:10:30 +0000 (00:10 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11181 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiLib/UefiLib.c
MdePkg/Library/UefiLib/UefiLib.inf

index 61764ec89edd0ab9946df6587c9d617e19233003..96dccb1477ace083bfee2a5fb5a8e82c7ebddee9 100644 (file)
 \r
 #include "UefiLibInternal.h"\r
 \r
+/**\r
+  Empty constructor function that is required to resolve dependencies between \r
+  libraries.\r
+  \r
+    ** DO NOT REMOVE **\r
+  \r
+  @param  ImageHandle   The firmware allocated handle for the EFI image.\r
+  @param  SystemTable   A pointer to the EFI System Table.\r
+  \r
+  @retval EFI_SUCCESS   The constructor executed correctly.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UefiLibConstructor (\r
+  IN EFI_HANDLE        ImageHandle,\r
+  IN EFI_SYSTEM_TABLE  *SystemTable\r
+  )\r
+{\r
+  return EFI_SUCCESS;\r
+}\r
+\r
 /**\r
   Compare whether two names of languages are identical.\r
 \r
index 606e0ca954bc84f890b901941dec8690c4264f58..640a9f3a8e67f3868a9bf8f113f110434d1a9fad 100644 (file)
@@ -26,6 +26,7 @@
   MODULE_TYPE                    = UEFI_DRIVER\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = UefiLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER SMM_CORE\r
+  CONSTRUCTOR                    = UefiLibConstructor\r
 \r
 \r
 #\r