From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web11.68805.1669962314921437954 for ; Thu, 01 Dec 2022 22:25:20 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ACH+UPSr; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: zhiguang.liu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669962320; x=1701498320; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kpuM7EHdT7d9Kgg9lvW1io0u1bl1kHm93yemCniWJLU=; b=ACH+UPSr2G2ghWbUGGHs6RZtZ2mShXmdphaOCHpQCUiQQ8UOybsu79E7 fRyIU/Q1v5J1Xi/QmypVyUUkVcUSL1jY43BQfXLXwcQRnoKZ6Vv8NzseA AqCzdgnIOTP7GOX6Trz/qujlJIzRA86J+f0LVCCZ1XkQDwGNpQPdkp62P 5Fb+B9zIACpeJtNP0mfvdZf2YIofO9Prs9TMMFckuQbIh6GvTiJjuEgYU wj73VghTUmrlH54P/BER9d68YZ8StaT6zBUe+dGynDVOREgh4pX+N8FSs 7UxCaH20Z5i24q0+lR3JiBdr15udrIGPtbOqGXak6WQhKUF0cpN7zLLJ4 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10548"; a="314585016" X-IronPort-AV: E=Sophos;i="5.96,210,1665471600"; d="scan'208";a="314585016" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2022 22:25:20 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10548"; a="890035442" X-IronPort-AV: E=Sophos;i="5.96,210,1665471600"; d="scan'208";a="890035442" Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2022 22:25:18 -0800 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu , Michael D Kinney , Liming Gao , Ray Ni Subject: [PATCH] MdePkg/UnitTestHostBaseLib: Remove HOST_APPLICATION limitation Date: Fri, 2 Dec 2022 14:25:02 +0800 Message-Id: <20221202062502.4429-2-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20221202062502.4429-1-zhiguang.liu@intel.com> References: <20221202062502.4429-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf index 09a610c31c..fefa2e79f6 100644 --- a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf +++ b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf @@ -1,7 +1,7 @@ ## @file # Base Library implementation for use with host based unit tests. # -# 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 rights reserved.
@@ -18,7 +18,7 @@ FILE_GUID = 9555A0D3-09BA-46C4-A51A-45198E3C765E MODULE_TYPE = BASE VERSION_STRING = 1.1 - LIBRARY_CLASS = BaseLib|HOST_APPLICATION + LIBRARY_CLASS = BaseLib LIBRARY_CLASS = UnitTestHostBaseLib|HOST_APPLICATION # @@ -128,6 +128,7 @@ X86RdRand.c X86SpeculationBarrier.c X86UnitTestHost.c + IntelTdxNull.c [Sources.X64] X64/LongJump.nasm @@ -168,6 +169,7 @@ X64/RdRand.nasm ChkStkGcc.c | GCC X86UnitTestHost.c + IntelTdxNull.c [Sources.EBC] Ebc/CpuBreakpoint.c -- 2.31.1.windows.1