ArmPkg: only attempt buildin MmCommunicationDxe for AArch64
[mirror_edk2.git] / MdePkg / MdePkg.dsc
1 ## @file
2 # EFI/PI MdePkg Package
3 #
4 # Copyright (c) 2007 - 2018, 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 #
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
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
19 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
20 SKUID_IDENTIFIER = DEFAULT
21
22 !include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc
23
24 [PcdsFeatureFlag]
25 gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE
26
27 [PcdsFixedAtBuild]
28 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
29 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
30 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
31
32 [LibraryClasses]
33 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
34
35 [Components]
36 MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
37 MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
38 MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
39 MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
40 MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
41 MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
42 MdePkg/Library/BaseLib/BaseLib.inf
43 MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
44 MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
45 MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
46 MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
47 MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
48 MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
49 MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
50 MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
51 MdePkg/Library/BasePciSegmentInfoLibNull/BasePciSegmentInfoLibNull.inf
52 MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
53 MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLibSegmentInfo.inf
54 MdePkg/Library/BaseS3PciSegmentLib/BaseS3PciSegmentLib.inf
55 MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
56 MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
57 MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
58 MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
59 MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.inf
60 MdePkg/Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf
61 MdePkg/Library/BasePrintLib/BasePrintLib.inf
62 MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
63 MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
64 MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
65 MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
66 MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
67 MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.inf
68 MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
69 MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
70 MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
71
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
85 MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
86 MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf
87 MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
88 MdePkg/Library/PeiHobLib/PeiHobLib.inf
89 MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf
90 MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
91 MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf
92 MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
93 MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
94 MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
95 MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
96 MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
97 MdePkg/Library/PeiSmbusLibSmbus2Ppi/PeiSmbusLibSmbus2Ppi.inf
98 MdePkg/Library/PeiPciLibPciCfg2/PeiPciLibPciCfg2.inf
99 MdePkg/Library/PeiPciSegmentLibPciCfg2/PeiPciSegmentLibPciCfg2.inf
100
101 MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
102 MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
103 MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
104 MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf
105 MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
106 MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.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
121 MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
122 MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
123
124 [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
125 #
126 # Add UEFI Target Based Unit Tests
127 #
128 MdePkg/Test/UnitTest/Library/BaseLib/BaseLibUnitTestsUefi.inf
129
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
138 [Components.IA32, Components.X64]
139 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
140 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
141 MdePkg/Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf
142 MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
143 MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf
144 MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
145 MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf
146 MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
147 MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
148 MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
149 MdePkg/Library/SmmIoLibSmmCpuIo2/SmmIoLibSmmCpuIo2.inf
150 MdePkg/Library/SmmPciLibPciRootBridgeIo/SmmPciLibPciRootBridgeIo.inf
151 MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
152 MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
153 MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.inf
154 MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
155 MdePkg/Library/BaseS3IoLib/BaseS3IoLib.inf
156 MdePkg/Library/BaseS3PciLib/BaseS3PciLib.inf
157 MdePkg/Library/BaseS3SmbusLib/BaseS3SmbusLib.inf
158 MdePkg/Library/BaseS3StallLib/BaseS3StallLib.inf
159 MdePkg/Library/SmmMemLib/SmmMemLib.inf
160 MdePkg/Library/SmmIoLib/SmmIoLib.inf
161 MdePkg/Library/BaseRngLib/BaseRngLib.inf
162 MdePkg/Library/SmmPciExpressLib/SmmPciExpressLib.inf
163 MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.inf
164 MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
165
166 [Components.EBC]
167 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
168 MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
169
170 [Components.ARM, Components.AARCH64]
171 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
172 MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
173
174 [BuildOptions]
175 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES