MdePkg.dsc 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. ## @file
  2. # EFI/PI MdePkg Package
  3. #
  4. # Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.<BR>
  5. # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
  6. # (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
  7. # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
  8. #
  9. # SPDX-License-Identifier: BSD-2-Clause-Patent
  10. #
  11. ##
  12. [Defines]
  13. PLATFORM_NAME = Mde
  14. PLATFORM_GUID = 082F8BFC-0455-4859-AE3C-ECD64FB81642
  15. PLATFORM_VERSION = 1.08
  16. DSC_SPECIFICATION = 0x00010005
  17. OUTPUT_DIRECTORY = Build/Mde
  18. SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
  19. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  20. SKUID_IDENTIFIER = DEFAULT
  21. !include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc
  22. !include MdePkg/MdeLibs.dsc.inc
  23. [PcdsFeatureFlag]
  24. gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE
  25. [PcdsFixedAtBuild]
  26. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
  27. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
  28. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
  29. [LibraryClasses]
  30. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  31. [Components]
  32. MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  33. MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  34. MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.inf
  35. MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  36. MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf
  37. MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  38. MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  39. MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  40. MdePkg/Library/BaseLib/BaseLib.inf
  41. MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  42. MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  43. MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  44. MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  45. MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  46. MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  47. MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  48. MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  49. MdePkg/Library/BasePciSegmentInfoLibNull/BasePciSegmentInfoLibNull.inf
  50. MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
  51. MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLibSegmentInfo.inf
  52. MdePkg/Library/BaseS3PciSegmentLib/BaseS3PciSegmentLib.inf
  53. MdePkg/Library/BaseArmTrngLibNull/BaseArmTrngLibNull.inf
  54. MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  55. MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  56. MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  57. MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  58. MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.inf
  59. MdePkg/Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf
  60. MdePkg/Library/BasePrintLib/BasePrintLib.inf
  61. MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  62. MdePkg/Library/DxeRngLib/DxeRngLib.inf
  63. MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
  64. MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  65. MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  66. MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  67. MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
  68. MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  69. MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.inf
  70. MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  71. MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  72. MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  73. MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  74. MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  75. MdePkg/Library/DxeHobLib/DxeHobLib.inf
  76. MdePkg/Library/DxePcdLib/DxePcdLib.inf
  77. MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  78. MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  79. MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
  80. MdePkg/Library/DxeIoLibCpuIo2/DxeIoLibCpuIo2.inf
  81. MdePkg/Library/DxeHstiLib/DxeHstiLib.inf
  82. MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf
  83. MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  84. MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  85. MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf
  86. MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  87. MdePkg/Library/PeiHobLib/PeiHobLib.inf
  88. MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf
  89. MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  90. MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf
  91. MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  92. MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  93. MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  94. MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  95. MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  96. MdePkg/Library/PeiSmbusLibSmbus2Ppi/PeiSmbusLibSmbus2Ppi.inf
  97. MdePkg/Library/PeiPciLibPciCfg2/PeiPciLibPciCfg2.inf
  98. MdePkg/Library/PeiPciSegmentLibPciCfg2/PeiPciSegmentLibPciCfg2.inf
  99. MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  100. MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  101. MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
  102. MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf
  103. MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
  104. MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  105. MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf
  106. MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf
  107. MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
  108. MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  109. MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  110. MdePkg/Library/UefiLib/UefiLib.inf
  111. MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  112. MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf
  113. MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  114. MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  115. MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  116. MdePkg/Library/UefiPciLibPciRootBridgeIo/UefiPciLibPciRootBridgeIo.inf
  117. MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/UefiPciSegmentLibPciRootBridgeIo.inf
  118. MdePkg/Library/SmmLibNull/SmmLibNull.inf
  119. MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  120. MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
  121. MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
  122. MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
  123. MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
  124. MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.inf
  125. [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
  126. #
  127. # Add UEFI Target Based Unit Tests
  128. #
  129. MdePkg/Test/UnitTest/Library/BaseLib/BaseLibUnitTestsUefi.inf
  130. #
  131. # Build PEIM, DXE_DRIVER, SMM_DRIVER, UEFI Shell components that test SafeIntLib
  132. #
  133. MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibPei.inf
  134. MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibDxe.inf
  135. MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibSmm.inf
  136. MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibUefiShell.inf
  137. [Components.IA32, Components.X64, Components.AARCH64]
  138. MdePkg/Library/BaseRngLib/BaseRngLib.inf
  139. [Components.IA32, Components.X64]
  140. MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  141. MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  142. MdePkg/Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf
  143. MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  144. MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf
  145. MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  146. MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf
  147. MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  148. MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
  149. MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  150. MdePkg/Library/SmmIoLibSmmCpuIo2/SmmIoLibSmmCpuIo2.inf
  151. MdePkg/Library/SmmPciLibPciRootBridgeIo/SmmPciLibPciRootBridgeIo.inf
  152. MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  153. MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  154. MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.inf
  155. MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
  156. MdePkg/Library/BaseS3IoLib/BaseS3IoLib.inf
  157. MdePkg/Library/BaseS3PciLib/BaseS3PciLib.inf
  158. MdePkg/Library/BaseS3SmbusLib/BaseS3SmbusLib.inf
  159. MdePkg/Library/BaseS3StallLib/BaseS3StallLib.inf
  160. MdePkg/Library/SmmMemLib/SmmMemLib.inf
  161. MdePkg/Library/SmmIoLib/SmmIoLib.inf
  162. MdePkg/Library/SmmPciExpressLib/SmmPciExpressLib.inf
  163. MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.inf
  164. MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  165. MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
  166. MdePkg/Library/TdxLib/TdxLib.inf
  167. [Components.EBC]
  168. MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  169. MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  170. [Components.ARM, Components.AARCH64]
  171. MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
  172. MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  173. [Components.RISCV64]
  174. MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf
  175. [BuildOptions]