From patchwork Sat Feb 27 00:23:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 63125 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp145775lbc; Fri, 26 Feb 2016 16:23:59 -0800 (PST) X-Received: by 10.98.18.8 with SMTP id a8mr6095209pfj.41.1456532635530; Fri, 26 Feb 2016 16:23:55 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id u64si23084309pfa.100.2016.02.26.16.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 16:23:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5758D1A1E4D; Fri, 26 Feb 2016 16:23:58 -0800 (PST) X-Original-To: edk2-devel@ml01.01.org Delivered-To: edk2-devel@ml01.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2D0821A1E4C for ; Fri, 26 Feb 2016 16:23:57 -0800 (PST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 6150E337743; Sat, 27 Feb 2016 00:23:51 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-113-45.phx2.redhat.com [10.3.113.45]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1R0NdFW026697; Fri, 26 Feb 2016 19:23:50 -0500 From: Laszlo Ersek To: edk2-devel-01 Date: Sat, 27 Feb 2016 01:23:25 +0100 Message-Id: <1456532616-32475-7-git-send-email-lersek@redhat.com> In-Reply-To: <1456532616-32475-1-git-send-email-lersek@redhat.com> References: <1456532616-32475-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Cc: Ruiyu Ni , Jordan Justen , Marcel Apfelbaum Subject: [edk2] [PATCH 06/17] OvmfPkg: clone PciHostBridgeLib from MdeModulePkg's Null instance X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 Cc: Ruiyu Ni Cc: Marcel Apfelbaum Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- 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 --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.
# # 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.
This program and the accompanying materials are licensed and made available