From nobody Sat Nov 2 14:41:09 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1488999935618355.680447321237; Wed, 8 Mar 2017 11:05:35 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5D0FE80374; Wed, 8 Mar 2017 11:05:33 -0800 (PST) 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 7FBB680370 for ; Wed, 8 Mar 2017 11:05:31 -0800 (PST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 17B8137EEB; Wed, 8 Mar 2017 19:05:32 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-47.phx2.redhat.com [10.3.117.47]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v28J5GPO014080; Wed, 8 Mar 2017 14:05:27 -0500 X-Original-To: edk2-devel@ml01.01.org From: Laszlo Ersek To: edk2-devel-01 Date: Wed, 8 Mar 2017 20:05:09 +0100 Message-Id: <20170308190511.31195-5-lersek@redhat.com> In-Reply-To: <20170308190511.31195-1-lersek@redhat.com> References: <20170308190511.31195-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 08 Mar 2017 19:05:32 +0000 (UTC) Subject: [edk2] [PATCH 4/6] ArmVirtPkg/QemuFwCfgLib: add explicitly initialized instance X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The QemuFwCfgLibExplicitInit instance differs from the normally used one in that the client module has to call the QemuFwCfgInitialize() function explicitly -- there is no library constructor --, and the client shall also ensure that the dependency on FDT_CLIENT_PROTOCOL is satisfied -- there is no DepEx. In particular this enables the module that produces FDT_CLIENT_PROTOCOL to use the library, after the protocol is installed. Note that neither QemuFwCfgLib instance calls FDT_CLIENT_PROTOCOL.GetOsExposure(). In fact, the QemuFwCfgLibExplicitInit instance will be utilized to implement FDT_CLIENT_PROTOCOL.GetOsExposure(). Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- ArmVirtPkg/Library/QemuFwCfgLib/{QemuFwCfgLib.inf =3D> QemuFwCfgLibExplici= tInit.inf} | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf b/ArmVirtPkg/= Library/QemuFwCfgLib/QemuFwCfgLibExplicitInit.inf similarity index 72% copy from ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf copy to ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLibExplicitInit.inf index eff4a2165062..007e5f1b2d54 100644 --- a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf +++ b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLibExplicitInit.inf @@ -1,8 +1,8 @@ ## @file # -# Stateful, implicitly initialized fw_cfg library. +# Stateful, explicitly initialized fw_cfg library. # -# Copyright (C) 2013 - 2014, Red Hat, Inc. +# Copyright (C) 2013 - 2017, Red Hat, Inc. # Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
# # This program and the accompanying materials are licensed and made avail= able @@ -18,13 +18,11 @@ =20 [Defines] INF_VERSION =3D 0x00010005 - BASE_NAME =3D QemuFwCfgLib - FILE_GUID =3D B271F41F-B841-48A9-BA8D-545B4BC2E2BF + BASE_NAME =3D QemuFwCfgLibExplicitInit + FILE_GUID =3D 7DF98175-3819-4966-A48C-E56056EA8F42 MODULE_TYPE =3D BASE VERSION_STRING =3D 1.0 - LIBRARY_CLASS =3D QemuFwCfgLib|DXE_DRIVER - - CONSTRUCTOR =3D QemuFwCfgInitialize + LIBRARY_CLASS =3D QemuFwCfgLib|DXE_DRIVER UEFI_DRIVER =20 # # The following information is for reference only and not required by the = build @@ -50,6 +48,3 @@ [LibraryClasses] =20 [Protocols] gFdtClientProtocolGuid ## CONSUMES - -[Depex] - gFdtClientProtocolGuid --=20 2.9.3 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel