From nobody Mon Apr 29 04:43:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+97054+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97054+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1670377034; cv=none; d=zohomail.com; s=zohoarc; b=MNKRtUJxvqKrAw9C0FkV3VT6U8J5dTzSbXVedsYaJS2VTtZGLai6AOyRS3gRCgVEJzJ6MzBgy6xXgfG7tmn0rirEXMRR5k/r3j6HFwJoQUbyZ0IY2MMCXpkuM/btXVpaFtQ9CCjO5NSq8gcmKj8KtGBO+G2LblplZCLvxKYpPvk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670377034; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=FK1InRaeS02iwTbqvmJMbbmL/EZeXthX0IO8C59A8Ak=; b=gU+tVEl77w4/Yu8E0yLUHPwoD1LxDdf0RLdAYKDVtOc/SHx6nS99rwZHqfA1gFa8aKLjGXd6Syog3gyv7F/qMI33t/kf0vk4xzt3/CLxDvnlcZ8YoLgpw03/1YJew5KNQgLKNsS5Su83iOMP6oAJaDDqn6eu17B6ziKnEWTPAs4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97054+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1670377033997135.8802880459034; Tue, 6 Dec 2022 17:37:13 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 086mYY1788612xB7TedqmxFP; Tue, 06 Dec 2022 17:37:13 -0800 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.4239.1670377032943727314 for ; Tue, 06 Dec 2022 17:37:13 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="317921401" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="317921401" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 17:37:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="678959075" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="678959075" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 17:37:05 -0800 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu , Michael D Kinney , Liming Gao , Ray Ni Subject: [edk2-devel] [PATCH v2] MdePkg/UnitTestHostBaseLib: Remove HOST_APPLICATION limitation Date: Wed, 7 Dec 2022 09:36:47 +0800 Message-Id: <20221207013647.10321-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,zhiguang.liu@intel.com X-Gm-Message-State: vF4StT6OD8AbYXju4MkfZL7mx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1670377033; bh=akmL1EfiBAQwGsPNs9dD5i6yv2qS+L7DFToEweVPjYk=; h=Cc:Date:From:Reply-To:Subject:To; b=ZyTyhxEuq3lFtgKnco0sgN0Ybibw7tkuHHdVnykbNwnE/eFp40QAkaezy3F2P6pz7em xERdgbz6wtKTuNl9l2T+d0My61WtM7WTukJ51ZMzdgrQXYXFTwihHZ1gtKZ1y6y2SmyGq 3ecrePXdLqTihEn0Sxb76TrJz2X6aer2Mbg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1670377035655100001 Content-Type: text/plain; charset="utf-8" Remove HOST_APPLICATION limitation for UnitTestHostBaseLib, so that this library can be used as BaseLib by Emulator. Also, add some missing files Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Ray Ni Signed-off-by: Zhiguang Liu --- MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf b/MdePkg/Librar= y/BaseLib/UnitTestHostBaseLib.inf index 09a610c31c..12a5cdcc0a 100644 --- a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf +++ b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf @@ -1,7 +1,8 @@ ## @file -# Base Library implementation for use with host based unit tests. +# Base Library implementation for use with host based unit tests, and +# can also be used by emulation platforms such as EmulatorPkg. # -# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
@@ -18,7 +19,7 @@ FILE_GUID =3D 9555A0D3-09BA-46C4-A51A-45198E3C765E MODULE_TYPE =3D BASE VERSION_STRING =3D 1.1 - LIBRARY_CLASS =3D BaseLib|HOST_APPLICATION + LIBRARY_CLASS =3D BaseLib LIBRARY_CLASS =3D UnitTestHostBaseLib|HOST_APPLICATION =20 # @@ -128,6 +129,7 @@ X86RdRand.c X86SpeculationBarrier.c X86UnitTestHost.c + IntelTdxNull.c =20 [Sources.X64] X64/LongJump.nasm @@ -168,6 +170,7 @@ X64/RdRand.nasm ChkStkGcc.c | GCC X86UnitTestHost.c + IntelTdxNull.c =20 [Sources.EBC] Ebc/CpuBreakpoint.c --=20 2.31.1.windows.1 -=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 (#97054): https://edk2.groups.io/g/devel/message/97054 Mute This Topic: https://groups.io/mt/95507715/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-