]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/UefiCpuPkg.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dsc
1 ## @file
2 # UefiCpuPkg Package
3 #
4 # Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8 ##
9
10 [Defines]
11 PLATFORM_NAME = UefiCpu
12 PLATFORM_GUID = a1b7be22-78b3-4260-9569-8649e8c17d49
13 PLATFORM_VERSION = 0.90
14 DSC_SPECIFICATION = 0x00010005
15 OUTPUT_DIRECTORY = Build/UefiCpu
16 SUPPORTED_ARCHITECTURES = IA32|X64
17 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
18 SKUID_IDENTIFIER = DEFAULT
19
20 #
21 # External libraries to build package
22 #
23
24 !include MdePkg/MdeLibs.dsc.inc
25
26 [LibraryClasses]
27 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
28 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
29 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
30 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
31 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
32 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
33 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
34 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.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 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
60 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
61 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
62 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
63 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
64 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
65 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
66 UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf
67 UnitTestPersistenceLib|UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf
68 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.inf
69
70 [LibraryClasses.common.SEC]
71 PlatformSecLib|UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
72 !if $(TOOL_CHAIN_TAG) == "XCODE5"
73 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
74 !else
75 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
76 !endif
77 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
78 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
79 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
80
81 [LibraryClasses.common.PEIM]
82 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
83 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
84 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
85 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
86 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
87 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
88
89 [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
90 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
91 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
92
93 [LibraryClasses.common.DXE_DRIVER]
94 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
95 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
96 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
97 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
98 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
99 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
100
101 [LibraryClasses.common.DXE_SMM_DRIVER]
102 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
103 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
104 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
105 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
106 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
107
108 [LibraryClasses.common.MM_STANDALONE]
109 MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
110
111 [LibraryClasses.common.UEFI_APPLICATION]
112 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
113 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
114
115 #
116 # Drivers/Libraries within this package
117 #
118
119 [Components]
120 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
121 UefiCpuPkg/CpuIoPei/CpuIoPei.inf
122 UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
123 UefiCpuPkg/Application/Cpuid/Cpuid.inf
124 UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
125 UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
126 UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
127 UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
128
129 [Components.IA32, Components.X64]
130 UefiCpuPkg/CpuDxe/CpuDxe.inf
131 UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {
132 <LibraryClasses>
133 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
134 }
135 UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {
136 <LibraryClasses>
137 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
138 }
139 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
140 UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.inf
141 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
142 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
143 UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
144 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
145 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
146 UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
147 UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
148 !if $(TOOL_CHAIN_TAG) != "XCODE5"
149 UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
150 !endif
151 UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
152 UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
153 UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
154 UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
155 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
156 UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
157 UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
158 UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
159 UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
160 UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
161 UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
162 UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
163 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
164 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
165 UefiCpuPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.inf
166 UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.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/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
180 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
181 UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
182 UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
183 UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerLibUnitTest.inf
184 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiPeiUnitTest.inf
185 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDxeUnitTest.inf
186 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDynamicCmdUnitTest.inf {
187 <LibraryClasses>
188 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf
189 }
190 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolShellUnitTest.inf {
191 <LibraryClasses>
192 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf
193 }
194
195 [Components.X64]
196 UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf
197
198 [Components.RISCV64]
199 UefiCpuPkg/Library/BaseRiscV64CpuExceptionHandlerLib/BaseRiscV64CpuExceptionHandlerLib.inf
200 UefiCpuPkg/Library/BaseRiscV64CpuTimerLib/BaseRiscV64CpuTimerLib.inf
201 UefiCpuPkg/CpuTimerDxeRiscV64/CpuTimerDxeRiscV64.inf
202 UefiCpuPkg/CpuDxeRiscV64/CpuDxeRiscV64.inf
203
204 [BuildOptions]
205 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES