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