]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/MdePkg.dsc
MdePkg/BaseCpuLibNull: Add Null version of CpuLib for host testing
[mirror_edk2.git] / MdePkg / MdePkg.dsc
index d43ffe4deb4917502ce4efca66e3f8805c10bd80..3abe65ec7f717cde7619cd9f97f14feb5fbe7a7f 100644 (file)
@@ -1,16 +1,11 @@
 ## @file\r
 # EFI/PI MdePkg Package\r
 #\r
-# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2020, Intel Corporation. All rights reserved.<BR>\r
 # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
 #\r
-#    This program and the accompanying materials\r
-#    are licensed and made available under the terms and conditions of the BSD License\r
-#    which accompanies this distribution. The full text of the license may be found at\r
-#    http://opensource.org/licenses/bsd-license.php\r
-#\r
-#    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#    SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
 \r
   PLATFORM_VERSION               = 1.08\r
   DSC_SPECIFICATION              = 0x00010005\r
   OUTPUT_DIRECTORY               = Build/Mde\r
-  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64\r
+  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64|RISCV64\r
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT\r
   SKUID_IDENTIFIER               = DEFAULT\r
 \r
+!include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc\r
+\r
 [PcdsFeatureFlag]\r
   gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE\r
 \r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000\r
   gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000\r
 \r
+[LibraryClasses]\r
+  SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
+\r
 [Components]\r
+  MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
   MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
   MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
+  MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf\r
   MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
   MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
   MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
   MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
   MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r
+  MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.inf\r
   MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf\r
   MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
+  MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf\r
 \r
   MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
   MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
   MdePkg/Library/SmmLibNull/SmmLibNull.inf\r
   MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf\r
 \r
+  MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf\r
+  MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf\r
+\r
+[Components.IA32, Components.X64, Components.ARM, Components.AARCH64]\r
+  #\r
+  # Add UEFI Target Based Unit Tests\r
+  #\r
+  MdePkg/Test/UnitTest/Library/BaseLib/BaseLibUnitTestsUefi.inf\r
+\r
+  #\r
+  # Build PEIM, DXE_DRIVER, SMM_DRIVER, UEFI Shell components that test SafeIntLib\r
+  #\r
+  MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibPei.inf\r
+  MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibDxe.inf\r
+  MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibSmm.inf\r
+  MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibUefiShell.inf\r
+\r
 [Components.IA32, Components.X64]\r
   MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
   MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf\r
   MdePkg/Library/BaseRngLib/BaseRngLib.inf\r
   MdePkg/Library/SmmPciExpressLib/SmmPciExpressLib.inf\r
   MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.inf\r
+  MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
 \r
 [Components.EBC]\r
   MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r