1 | ## @file
|
---|
2 | # UefiCpuPkg Package
|
---|
3 | #
|
---|
4 | # Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.<BR>
|
---|
5 | # Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights reserved.<BR>
|
---|
6 | #
|
---|
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | #
|
---|
9 | ##
|
---|
10 |
|
---|
11 | [Defines]
|
---|
12 | PLATFORM_NAME = UefiCpu
|
---|
13 | PLATFORM_GUID = a1b7be22-78b3-4260-9569-8649e8c17d49
|
---|
14 | PLATFORM_VERSION = 0.90
|
---|
15 | DSC_SPECIFICATION = 0x00010005
|
---|
16 | OUTPUT_DIRECTORY = Build/UefiCpu
|
---|
17 | SUPPORTED_ARCHITECTURES = IA32|X64
|
---|
18 | BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
---|
19 | SKUID_IDENTIFIER = DEFAULT
|
---|
20 |
|
---|
21 | #
|
---|
22 | # External libraries to build package
|
---|
23 | #
|
---|
24 |
|
---|
25 | !include MdePkg/MdeLibs.dsc.inc
|
---|
26 |
|
---|
27 | [LibraryClasses]
|
---|
28 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
---|
29 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
---|
30 | CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
|
---|
31 | DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
---|
32 | SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
|
---|
33 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
---|
34 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
---|
35 | IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
---|
36 | MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
|
---|
37 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
---|
38 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
---|
39 | UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
---|
40 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
---|
41 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
---|
42 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
---|
43 | StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
|
---|
44 | DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
|
---|
45 | PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
---|
46 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
---|
47 | PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
---|
48 | TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
---|
49 | DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
---|
50 | LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
|
---|
51 | ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
---|
52 | SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
---|
53 | SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
---|
54 | CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
|
---|
55 | PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
|
---|
56 | PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
|
---|
57 | SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
|
---|
58 | SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
|
---|
59 | SmmCpuSyncLib|UefiCpuPkg/Library/SmmCpuSyncLib/SmmCpuSyncLib.inf
|
---|
60 | PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
---|
61 | PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
|
---|
62 | TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
---|
63 | CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
|
---|
64 | AmdSvsmLib|UefiCpuPkg/Library/AmdSvsmLibNull/AmdSvsmLibNull.inf
|
---|
65 | MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
|
---|
66 | SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
|
---|
67 | CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
|
---|
68 | UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf
|
---|
69 | UnitTestPersistenceLib|UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf
|
---|
70 | UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.inf
|
---|
71 |
|
---|
72 | [LibraryClasses.common.SEC]
|
---|
73 | PlatformSecLib|UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
|
---|
74 | CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
|
---|
75 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
---|
76 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
---|
77 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
---|
78 |
|
---|
79 | [LibraryClasses.common.PEIM]
|
---|
80 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
---|
81 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
---|
82 | LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
---|
83 | MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
|
---|
84 | RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
|
---|
85 | CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
|
---|
86 |
|
---|
87 | [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
|
---|
88 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
---|
89 | CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
|
---|
90 |
|
---|
91 | [LibraryClasses.common.DXE_DRIVER]
|
---|
92 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
---|
93 | HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
---|
94 | CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
|
---|
95 | MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
---|
96 | RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
|
---|
97 | CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
|
---|
98 |
|
---|
99 | [LibraryClasses.common.DXE_SMM_DRIVER]
|
---|
100 | SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
---|
101 | MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
|
---|
102 | MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
---|
103 | HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
---|
104 | CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
|
---|
105 | MmSaveStateLib|UefiCpuPkg/Library/MmSaveStateLib/IntelMmSaveStateLib.inf
|
---|
106 |
|
---|
107 | [LibraryClasses.common.MM_STANDALONE]
|
---|
108 | MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
|
---|
109 |
|
---|
110 | [LibraryClasses.common.UEFI_APPLICATION]
|
---|
111 | UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
|
---|
112 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
---|
113 |
|
---|
114 | [LibraryClasses.LoongArch64]
|
---|
115 | SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
---|
116 |
|
---|
117 | #
|
---|
118 | # Drivers/Libraries within this package
|
---|
119 | #
|
---|
120 |
|
---|
121 | [Components]
|
---|
122 | UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
---|
123 | UefiCpuPkg/CpuIoPei/CpuIoPei.inf
|
---|
124 | UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
|
---|
125 | UefiCpuPkg/Application/Cpuid/Cpuid.inf
|
---|
126 | UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
|
---|
127 | UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
|
---|
128 | UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
|
---|
129 | UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
|
---|
130 |
|
---|
131 | [Components.IA32, Components.X64]
|
---|
132 | UefiCpuPkg/CpuDxe/CpuDxe.inf
|
---|
133 | UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {
|
---|
134 | <LibraryClasses>
|
---|
135 | NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
|
---|
136 | }
|
---|
137 | UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {
|
---|
138 | <LibraryClasses>
|
---|
139 | NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
|
---|
140 | }
|
---|
141 | UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
---|
142 | UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.inf
|
---|
143 | UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
---|
144 | UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
|
---|
145 | UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
|
---|
146 | UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
|
---|
147 | UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
|
---|
148 | UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
|
---|
149 | UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
|
---|
150 | UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
|
---|
151 | UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
|
---|
152 | UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
|
---|
153 | UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
---|
154 | UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
|
---|
155 | UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
|
---|
156 | UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
|
---|
157 | UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
|
---|
158 | UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
|
---|
159 | UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
|
---|
160 | UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
|
---|
161 | UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
|
---|
162 | UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
|
---|
163 | UefiCpuPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.inf
|
---|
164 | UefiCpuPkg/Library/SmmCpuSyncLib/SmmCpuSyncLib.inf
|
---|
165 | UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
|
---|
166 | UefiCpuPkg/Library/AmdSvsmLibNull/AmdSvsmLibNull.inf
|
---|
167 | UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.inf
|
---|
168 | UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf
|
---|
169 | UefiCpuPkg/SecCore/SecCore.inf
|
---|
170 | UefiCpuPkg/SecCore/SecCoreNative.inf
|
---|
171 | UefiCpuPkg/SecMigrationPei/SecMigrationPei.inf
|
---|
172 | UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
---|
173 | UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
|
---|
174 | <Defines>
|
---|
175 | FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94
|
---|
176 | <LibraryClasses>
|
---|
177 | SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
|
---|
178 | }
|
---|
179 | UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
|
---|
180 | <Defines>
|
---|
181 | FILE_GUID = B7242C74-BD21-49EE-84B4-07162E8C080D
|
---|
182 | <LibraryClasses>
|
---|
183 | SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/AmdSmmCpuFeaturesLib.inf
|
---|
184 | MmSaveStateLib|UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveStateLib.inf
|
---|
185 | }
|
---|
186 | UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
|
---|
187 | UefiCpuPkg/ResetVector/Vtf0/Vtf0.inf
|
---|
188 | UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
|
---|
189 | UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
|
---|
190 | UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerLibUnitTest.inf
|
---|
191 | UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiPeiUnitTest.inf
|
---|
192 | UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDxeUnitTest.inf
|
---|
193 | UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDynamicCmdUnitTest.inf {
|
---|
194 | <LibraryClasses>
|
---|
195 | UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf
|
---|
196 | }
|
---|
197 | UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolShellUnitTest.inf {
|
---|
198 | <LibraryClasses>
|
---|
199 | UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf
|
---|
200 | }
|
---|
201 | UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveStateLib.inf
|
---|
202 | UefiCpuPkg/Library/MmSaveStateLib/IntelMmSaveStateLib.inf
|
---|
203 | UefiCpuPkg/Library/SmmCpuFeaturesLib/AmdSmmCpuFeaturesLib.inf
|
---|
204 | UefiCpuPkg/Library/SmmRelocationLib/SmmRelocationLib.inf
|
---|
205 | UefiCpuPkg/Library/SmmRelocationLib/AmdSmmRelocationLib.inf
|
---|
206 |
|
---|
207 | [Components.X64]
|
---|
208 | UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf
|
---|
209 |
|
---|
210 | [Components.RISCV64]
|
---|
211 | UefiCpuPkg/Library/BaseRiscV64CpuExceptionHandlerLib/BaseRiscV64CpuExceptionHandlerLib.inf
|
---|
212 | UefiCpuPkg/Library/BaseRiscV64CpuTimerLib/BaseRiscV64CpuTimerLib.inf
|
---|
213 | UefiCpuPkg/Library/BaseRiscVMmuLib/BaseRiscVMmuLib.inf
|
---|
214 | UefiCpuPkg/CpuTimerDxeRiscV64/CpuTimerDxeRiscV64.inf
|
---|
215 | UefiCpuPkg/CpuDxeRiscV64/CpuDxeRiscV64.inf
|
---|
216 | UefiCpuPkg/CpuMmio2Dxe/CpuMmio2Dxe.inf
|
---|
217 |
|
---|
218 | [Components.LOONGARCH64]
|
---|
219 | UefiCpuPkg/Library/CpuMmuLib/CpuMmuLib.inf
|
---|
220 | UefiCpuPkg/CpuMmio2Dxe/CpuMmio2Dxe.inf
|
---|
221 |
|
---|
222 | [BuildOptions]
|
---|
223 | *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
---|