]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg: Simplify DSC by using UnitTestFrameworkPkgTarget.dsc.inc
authorMichael D Kinney <michael.d.kinney@intel.com>
Tue, 2 Feb 2021 23:20:16 +0000 (15:20 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 3 Apr 2021 01:54:22 +0000 (01:54 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3288

Simplify the DSC file by using the library mappings from
UnitTestFrameworkPkgTarget.dsc.inc to build the CryptoPkg
target based unit tests that run from the UEFI Shell.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
CryptoPkg/CryptoPkg.dsc

index f6498c18dc8e0c39f95f3b0d2eac32bb1b4352a5..0aa72ed878463286015b48bd934e4d7bd60f7253 100644 (file)
@@ -45,6 +45,8 @@
   !error CRYPTO_SERVICES must be set to one of PACKAGE ALL NONE MIN_PEI MIN_DXE_MIN_SMM.\r
 !endif\r
 \r
+!include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc\r
+\r
 ################################################################################\r
 #\r
 # Library Class section - list of all Library Classes needed by this Platform.\r
 ###################################################################################################\r
 [Components]\r
   CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
-  CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf {\r
-    <LibraryClasses>\r
-      PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
-      UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
-      UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
-\r
-      BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
-      BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
-      DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-      MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
-      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
-      PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
-      PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
-      PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
-      UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
-\r
-      UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf\r
-      UnitTestPersistenceLib|UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf\r
-      UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.inf\r
-  }\r
+  CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf\r
 \r
 !if $(CRYPTO_SERVICES) == PACKAGE\r
 [Components]\r