]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: introduce empty PlatformDxe
authorLaszlo Ersek <lersek@redhat.com>
Sat, 22 Mar 2014 07:12:55 +0000 (07:12 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 22 Mar 2014 07:12:55 +0000 (07:12 +0000)
This DXE driver will load/save persistent values for OVMF's config knobs,
plus expose those knobs via HII.

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@15364 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32.fdf
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgIa32X64.fdf
OvmfPkg/OvmfPkgX64.dsc
OvmfPkg/OvmfPkgX64.fdf
OvmfPkg/PlatformDxe/Platform.c [new file with mode: 0644]
OvmfPkg/PlatformDxe/Platform.inf [new file with mode: 0644]

index a6e028b7eba14bb0ecf682c35d47a0bbc62e6a5d..5adf4c0857cd2d0c20b2b068ff4e7c60181348ad 100644 (file)
   }\r
   OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
 !endif\r
+\r
+  OvmfPkg/PlatformDxe/Platform.inf\r
index 173539699b80e69b3378bc7535d67e333a12bc04..1f78b5bf92e51e4fa8b3a98856ba04c3c709844f 100644 (file)
@@ -376,6 +376,7 @@ INF  RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
 !endif\r
 \r
 INF  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
+INF  OvmfPkg/PlatformDxe/Platform.inf\r
 \r
 ################################################################################\r
 \r
index 94d49adc595981767bfc4daf01a5cb5bd674764e..75ff5f0a081938cc6e38927126884360afbdf031 100644 (file)
   }\r
   OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
 !endif\r
+\r
+  OvmfPkg/PlatformDxe/Platform.inf\r
index 9a7cf3e2bd9d9f7a2110fb7c27f868e057e80a05..e78995b32d350940ea5b3d4f4408a2a86034c93a 100644 (file)
@@ -376,6 +376,7 @@ INF  RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
 !endif\r
 \r
 INF  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
+INF  OvmfPkg/PlatformDxe/Platform.inf\r
 \r
 ################################################################################\r
 \r
index 47ae1e1c430da389092a661376f32f0d6020b747..7a1e0ee1fb1adbd8025372a9187cc26eae1e179c 100644 (file)
   }\r
   OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
 !endif\r
+\r
+  OvmfPkg/PlatformDxe/Platform.inf\r
index 47bec31e2bd7c87ba704b087fceba07cabb73ecd..c5bc6ac169c06690c2d964b960bbbf88518d0205 100644 (file)
@@ -376,6 +376,7 @@ INF  RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
 !endif\r
 \r
 INF  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
+INF  OvmfPkg/PlatformDxe/Platform.inf\r
 \r
 ################################################################################\r
 \r
diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c
new file mode 100644 (file)
index 0000000..7e23530
--- /dev/null
@@ -0,0 +1,53 @@
+/** @file\r
+  This driver effectuates OVMF's platform configuration settings and exposes\r
+  them via HII.\r
+\r
+  Copyright (C) 2014, Red Hat, Inc.\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+  This program and the accompanying materials are licensed and made available\r
+  under the terms and conditions of the BSD License which accompanies this\r
+  distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
+  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+**/\r
+\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+\r
+/**\r
+  Entry point for this driver.\r
+\r
+  @param[in] ImageHandle  Image handle of this driver.\r
+  @param[in] SystemTable  Pointer to SystemTable.\r
+\r
+  @retval EFI_SUCESS            Driver has loaded successfully.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PlatformInit (\r
+  IN  EFI_HANDLE        ImageHandle,\r
+  IN  EFI_SYSTEM_TABLE  *SystemTable\r
+  )\r
+{\r
+  return EFI_SUCCESS;\r
+}\r
+\r
+/**\r
+  Unload the driver.\r
+\r
+  @param[in]  ImageHandle  Handle that identifies the image to evict.\r
+\r
+  @retval EFI_SUCCESS  The image has been unloaded.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+PlatformUnload (\r
+  IN  EFI_HANDLE  ImageHandle\r
+  )\r
+{\r
+  return EFI_SUCCESS;\r
+}\r
diff --git a/OvmfPkg/PlatformDxe/Platform.inf b/OvmfPkg/PlatformDxe/Platform.inf
new file mode 100644 (file)
index 0000000..42a104c
--- /dev/null
@@ -0,0 +1,41 @@
+## @file\r
+#  This driver effectuates OVMF's platform configuration settings and exposes\r
+#  them via HII.\r
+#\r
+#  Copyright (C) 2014, Red Hat, Inc.\r
+#  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  This program and the accompanying materials are licensed and made available\r
+#  under the terms and conditions of the BSD License which accompanies this\r
+#  distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r
+#  IMPLIED.\r
+##\r
+\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = PlatformDxe\r
+  FILE_GUID                      = D9DCC5DF-4007-435E-9098-8970935504B2\r
+  MODULE_TYPE                    = DXE_DRIVER\r
+  VERSION_STRING                 = 1.0\r
+  ENTRY_POINT                    = PlatformInit\r
+  UNLOAD_IMAGE                   = PlatformUnload\r
+\r
+[Sources]\r
+  Platform.c\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+  MdeModulePkg/MdeModulePkg.dec\r
+  OvmfPkg/OvmfPkg.dec\r
+\r
+[LibraryClasses]\r
+  DebugLib\r
+  UefiBootServicesTableLib\r
+  UefiDriverEntryPoint\r
+\r
+[Depex]\r
+  TRUE\r