summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKun Qin <kuqin@microsoft.com>2026-07-27 12:27:07 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-09-06 10:12:38 +0000
commit6cbedf25c1aa8698435bfc16311213364e7d4cd9 (patch)
tree5faa61524aa8845c9b13c63b4fff743c311673c3
parentfe79213ad7f6b9492011477c7b8a9a73e10614bd (diff)
downloadedk2-6cbedf25c1aa8698435bfc16311213364e7d4cd9.tar.gz
edk2-6cbedf25c1aa8698435bfc16311213364e7d4cd9.zip
UefiCpuPkg: Test: Add AArch64 support for host based unit tests
This change updates the host based units for AArch64 systems. The RngLib is updated to use timer based , rather hardware based library to allow usage on various host systems. Signed-off-by: Kun Qin <kun.qin@microsoft.com>
-rw-r--r--UefiCpuPkg/Test/UefiCpuPkgHostTest.dsc8
1 files changed, 5 insertions, 3 deletions
diff --git a/UefiCpuPkg/Test/UefiCpuPkgHostTest.dsc b/UefiCpuPkg/Test/UefiCpuPkgHostTest.dsc
index e72e4cd622..f51f040b60 100644
--- a/UefiCpuPkg/Test/UefiCpuPkgHostTest.dsc
+++ b/UefiCpuPkg/Test/UefiCpuPkgHostTest.dsc
@@ -12,7 +12,7 @@
PLATFORM_VERSION = 0.1
DSC_SPECIFICATION = 0x00010005
OUTPUT_DIRECTORY = Build/UefiCpuPkg/HostTest
- SUPPORTED_ARCHITECTURES = IA32|X64
+ SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64
BUILD_TARGETS = NOOPT
SKUID_IDENTIFIER = DEFAULT
@@ -23,17 +23,19 @@
CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/UnitTestHostBaseCryptLib.inf
- RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
+ TimerLib|UnitTestFrameworkPkg/Library/Posix/TimerLibPosix/TimerLibPosix.inf
+ RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
[PcdsPatchableInModule]
gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
-[Components]
+[Components.IA32, Components.X64]
#
# Build HOST_APPLICATION that tests the MtrrLib
#
UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTestHost.inf
+[Components]
#
# Build HOST_APPLICATION that tests the CpuPageTableLib
#