]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/UnitTestHostBaseLib: Remove HOST_APPLICATION limitation
authorLiu, Zhiguang <Zhiguang.Liu@intel.com>
Wed, 7 Dec 2022 01:36:47 +0000 (09:36 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 14 Dec 2022 13:34:33 +0000 (13:34 +0000)
Remove HOST_APPLICATION limitation for UnitTestHostBaseLib, so that
this library can be used as BaseLib by Emulator.
Also, add some missing files

Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf

index 09a610c31c1d5bd2fafef8b825ba2bba339d81c5..12a5cdcc0a9e0fbdab0540492b165d04c7d42e8f 100644 (file)
@@ -1,7 +1,8 @@
 ## @file\r
-#  Base Library implementation for use with host based unit tests.\r
+#  Base Library implementation for use with host based unit tests, and\r
+#  can also be used by emulation platforms such as EmulatorPkg.\r
 #\r
-#  Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.<BR>\r
 #  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 #  Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>\r
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
@@ -18,7 +19,7 @@
   FILE_GUID                      = 9555A0D3-09BA-46C4-A51A-45198E3C765E\r
   MODULE_TYPE                    = BASE\r
   VERSION_STRING                 = 1.1\r
-  LIBRARY_CLASS                  = BaseLib|HOST_APPLICATION\r
+  LIBRARY_CLASS                  = BaseLib\r
   LIBRARY_CLASS                  = UnitTestHostBaseLib|HOST_APPLICATION\r
 \r
 #\r
   X86RdRand.c\r
   X86SpeculationBarrier.c\r
   X86UnitTestHost.c\r
+  IntelTdxNull.c\r
 \r
 [Sources.X64]\r
   X64/LongJump.nasm\r
   X64/RdRand.nasm\r
   ChkStkGcc.c  | GCC\r
   X86UnitTestHost.c\r
+  IntelTdxNull.c\r
 \r
 [Sources.EBC]\r
   Ebc/CpuBreakpoint.c\r