From nobody Tue Nov 26 16:31:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+50614+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+50614+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1573697880; cv=none; d=zoho.com; s=zohoarc; b=S3PuHXMNhUwOUzsHxJg74qgNbIfceNU3jZD/bOlJrC+kqn1241RgF+3g7Qkr1AhAm7BeSLMi8HR7M0BwlsCuISn4iPj5yzmfiaKzqKp2e3PAyksqXTxGHyU1cWAcdQK7faYtsClgKnFRuN8m8VJyao2WX/DnwbRv02ZQIg3OM48= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573697880; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=lFobn15quJhAD918kYp2XWcHeoTnXpi+qAKVs/RiyfM=; b=SItmINEqye8PKu+JqFotPHGCMpUUJNb3NCeF4HCOTvpOqXUzfY/OshpTsXI5P3DEOgFtpR8NfBmq+zONLT6O4v+dLtIICGbUlmMLrfc8dk9loyG5Jw+kHJ7ztzt6IKUcXJveQzaA2fsFMG++yaqeKXeu0Q3k2bBGwKBM1SRG2mo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+50614+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1573697880047662.0298626997073; Wed, 13 Nov 2019 18:18:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id lvp6YY1788612xL057fBOpI8; Wed, 13 Nov 2019 18:17:59 -0800 X-Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web10.830.1573697867801385708 for ; Wed, 13 Nov 2019 18:17:59 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 18:17:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,302,1569308400"; d="scan'208";a="235500582" X-Received: from shwdeopenpsi777.ccr.corp.intel.com ([10.239.158.59]) by fmsmga002.fm.intel.com with ESMTP; 13 Nov 2019 18:17:57 -0800 From: "Wang, Jian J" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Liming Gao , Ray Ni Subject: [edk2-devel] [PATCH 08/11] OvmfPkg: specify RngLib instances in dsc files Date: Thu, 14 Nov 2019 10:17:40 +0800 Message-Id: <20191114021743.3876-9-jian.j.wang@intel.com> In-Reply-To: <20191114021743.3876-1-jian.j.wang@intel.com> References: <20191114021743.3876-1-jian.j.wang@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jian.j.wang@intel.com X-Gm-Message-State: EolgG9Vq9dUEYGjhnnTYbyw1x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1573697879; bh=3gDZesJETc9puAhMz8+2PdkYegA+Sozs10FASH15kcY=; h=Cc:Date:From:Reply-To:Subject:To; b=R//quNU7JatnfLXmdTRGNd/ppCxJo4K0oh/XrgVdWjxhLsk1nWYWANyKh00PAZZtlVG PR3I/YauBAEBPGSLcV/Kc6B0Hm4hgyTdg1Qag3g/jY0j1sKNOXc441Z3ANNcCUzXUeC5I FErPPgPziqGcnhuuPs39DYO1g+1ZZG94O90= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Per BZ1871, OpensslLib will depend on RngLib instead of TimerLib. Update OVMF dsc files to accommodate the coming changes. It's supposed that only TlsDxe needs random number. The DxeRngLibRngProtocol is added for it. For all other drivers, BaseRngLibNull is used by default. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1871 Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Liming Gao Cc: Ray Ni Signed-off-by: Jian J Wang --- OvmfPkg/OvmfPkgIa32.dsc | 5 +++++ OvmfPkg/OvmfPkgIa32X64.dsc | 5 +++++ OvmfPkg/OvmfPkgX64.dsc | 5 +++++ OvmfPkg/OvmfXen.dsc | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index d350b75630..5a709a95b2 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -217,6 +217,7 @@ =20 [LibraryClasses.common] BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf =20 [LibraryClasses.common.SEC] TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf @@ -786,6 +787,10 @@ NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf } + NetworkPkg/TlsDxe/TlsDxe.inf { + + RngLib|SecurityPkg/RandomNumberGenerator/DxeRngLibRngProtocol/DxeRng= LibRngProtocol.inf + } !endif OvmfPkg/VirtioNetDxe/VirtioNet.inf =20 diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index 1ef82cafe4..16ff25fd2c 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -222,6 +222,7 @@ =20 [LibraryClasses.common] BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf =20 [LibraryClasses.common.SEC] TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf @@ -799,6 +800,10 @@ NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf } + NetworkPkg/TlsDxe/TlsDxe.inf { + + RngLib|SecurityPkg/RandomNumberGenerator/DxeRngLibRngProtocol/DxeRng= LibRngProtocol.inf + } !endif OvmfPkg/VirtioNetDxe/VirtioNet.inf =20 diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 232815c08e..c9c2af740f 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -222,6 +222,7 @@ =20 [LibraryClasses.common] BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf =20 [LibraryClasses.common.SEC] TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf @@ -797,6 +798,10 @@ NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf } + NetworkPkg/TlsDxe/TlsDxe.inf { + + RngLib|SecurityPkg/RandomNumberGenerator/DxeRngLibRngProtocol/DxeRng= LibRngProtocol.inf + } !endif OvmfPkg/VirtioNetDxe/VirtioNet.inf =20 diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index 8c11efe9b7..557dff7744 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -204,6 +204,7 @@ =20 [LibraryClasses.common] BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf =20 [LibraryClasses.common.SEC] QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf @@ -666,6 +667,10 @@ NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf } + NetworkPkg/TlsDxe/TlsDxe.inf { + + RngLib|SecurityPkg/RandomNumberGenerator/DxeRngLibRngProtocol/DxeRng= LibRngProtocol.inf + } !endif =20 # --=20 2.17.1.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50614): https://edk2.groups.io/g/devel/message/50614 Mute This Topic: https://groups.io/mt/56714143/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-