diff mbox

[edk2,06/17] OvmfPkg: clone PciHostBridgeLib from MdeModulePkg's Null instance

Message ID 1456532616-32475-7-git-send-email-lersek@redhat.com
State Superseded
Headers show

Commit Message

Laszlo Ersek Feb. 27, 2016, 12:23 a.m. UTC
In this patch we clone "MdeModulePkg/Library/PciHostBridgeLibNull" for
customization under OvmfPkg. Differences relative to a verbatim copy:

- the Null suffix is dropped from file names,
- the UNI file is dropped, together with the corresponding MODULE_UNI_FILE
  reference in the INF file,
- the INF file receives a new FILE_GUID,
- the top comments in the files mention OVMF, not a null instance.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf => OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf | 10 +++++-----
 MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.c => OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c     |  3 ++-
 2 files changed, 7 insertions(+), 6 deletions(-)

-- 
1.8.3.1


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
similarity index 74%
copy from MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf
copy to OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
index 8df14924add3..1f3930195a1d 100644
--- a/MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf
+++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
@@ -1,6 +1,7 @@ 
 ## @file
-#  Null instance of PCI Host Bridge Library with empty functions.
+#  OVMF's instance of the PCI Host Bridge Library.
 #
+#  Copyright (C) 2016, Red Hat, Inc.
 #  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
 #
 #  This program and the accompanying materials are licensed and made available
@@ -16,9 +17,8 @@ 
 
 [Defines]
   INF_VERSION                    = 0x00010005
-  BASE_NAME                      = PciHostBridgeLibNull
-  MODULE_UNI_FILE                = PciHostBridgeLibNull.uni
-  FILE_GUID                      = A19A6C36-7053-4E2C-8BD0-E8286230E473
+  BASE_NAME                      = PciHostBridgeLib
+  FILE_GUID                      = 9F2BC05E-51EA-4AED-9A3E-7699641734E8
   MODULE_TYPE                    = DXE_DRIVER
   VERSION_STRING                 = 1.0
   LIBRARY_CLASS                  = PciHostBridgeLib
@@ -31,7 +31,7 @@  [Defines]
 #
 
 [Sources]
-  PciHostBridgeLibNull.c
+  PciHostBridgeLib.c
 
 [Packages]
   MdePkg/MdePkg.dec
diff --git a/MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.c b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
similarity index 95%
copy from MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.c
copy to OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
index fe0632dd3552..3752993f65aa 100644
--- a/MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.c
+++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
@@ -1,6 +1,7 @@ 
 /** @file
-  Null instance of PCI Host Bridge Library with empty functions.
+  OVMF's instance of the PCI Host Bridge Library.
 
+  Copyright (C) 2016, Red Hat, Inc.
   Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials are licensed and made available