]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: QemuFlashFvbServicesRuntimeDxe: clean up includes and libraries
authorLaszlo Ersek <lersek@redhat.com>
Mon, 26 Oct 2015 14:58:46 +0000 (14:58 +0000)
committerlersek <lersek@Edk2>
Mon, 26 Oct 2015 14:58:46 +0000 (14:58 +0000)
Before introducing the SMM driver interface, clean up #include directives
and [LibraryClasses] by:
- removing what's not directly used (HobLib and UefiLib),
- adding what's used but not spelled out (DevicePathLib),
- sorting the result.

This helps with seeing each source file's dependencies and with
determining the library classes for the SMM driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18672 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c

index ec6bfdb24b43f5f505cc0b66a7c4bcc085ee9280..6edbeed82f4b1ae4d505aab5f5b8e006027d4430 100644 (file)
 //\r
 // The package level header files this module uses\r
 //\r
-#include <PiDxe.h>\r
+#include <Pi/PiFirmwareVolume.h>\r
+\r
 //\r
 // The protocols, PPI and GUID defintions for this module\r
 //\r
-#include <Guid/EventGroup.h>\r
-#include <Guid/FirmwareFileSystem2.h>\r
 #include <Guid/SystemNvDataGuid.h>\r
-#include <Protocol/FirmwareVolumeBlock.h>\r
-#include <Protocol/DevicePath.h>\r
 //\r
 // The Library classes this module consumes\r
 //\r
-#include <Library/UefiLib.h>\r
-#include <Library/UefiDriverEntryPoint.h>\r
 #include <Library/BaseLib.h>\r
-#include <Library/DxeServicesTableLib.h>\r
-#include <Library/UefiRuntimeLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/HobLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/PcdLib.h>\r
 \r
 typedef struct {\r
index 480b6946b1d03e9ffad2f9d058204aab706966a1..ea8413fcfd366d06242b51bfa1f92b2f68e6f5b9 100644 (file)
   OvmfPkg/OvmfPkg.dec\r
 \r
 [LibraryClasses]\r
-  UefiBootServicesTableLib\r
-  MemoryAllocationLib\r
+  BaseLib\r
   BaseMemoryLib\r
-  HobLib\r
   DebugLib\r
-  UefiRuntimeLib\r
+  DevicePathLib\r
   DxeServicesTableLib\r
-  BaseLib\r
-  UefiDriverEntryPoint\r
-  UefiLib\r
+  MemoryAllocationLib\r
   PcdLib\r
+  UefiBootServicesTableLib\r
+  UefiDriverEntryPoint\r
+  UefiRuntimeLib\r
 \r
 [Guids]\r
   gEfiEventVirtualAddressChangeGuid   # ALWAYS_CONSUMED\r
index 0158bf9cd08a5024676aea3f547aadea2375d782..c37aed1c9e7b6c31c9bcb0e28593ddf800045c50 100644 (file)
 //\r
 // The protocols, PPI and GUID defintions for this module\r
 //\r
-#include <Protocol/FirmwareVolumeBlock.h>\r
 #include <Protocol/DevicePath.h>\r
+#include <Protocol/FirmwareVolumeBlock.h>\r
 \r
 //\r
 // The Library classes this module consumes\r
 //\r
 #include <Library/BaseLib.h>\r
-#include <Library/DxeServicesTableLib.h>\r
-#include <Library/DebugLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/DxeServicesTableLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/DevicePathLib.h>\r
 \r
 #include "FwBlockService.h"\r
 #include "QemuFlash.h"\r
index 5b030468963523a168433168d6daadf92d14b4dc..28bcb135aedf6367400abbac03b3680185e03dd9 100644 (file)
@@ -13,8 +13,8 @@
 \r
 **/\r
 \r
-#include <Library/DebugLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
 #include <Library/PcdLib.h>\r
 \r
 #include "QemuFlash.h"\r