]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/UefiCpuPkg.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dsc
CommitLineData
7b202cb0 1## @file\r
9e7864e2 2# UefiCpuPkg Package\r
3#\r
75e3c243 4# Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.<BR>\r
9e7864e2 5#\r
0acd8697 6# SPDX-License-Identifier: BSD-2-Clause-Patent\r
9e7864e2 7#\r
7b202cb0 8##\r
9e7864e2 9\r
10[Defines]\r
11 PLATFORM_NAME = UefiCpu\r
12 PLATFORM_GUID = a1b7be22-78b3-4260-9569-8649e8c17d49\r
30142a32 13 PLATFORM_VERSION = 0.90\r
9e7864e2 14 DSC_SPECIFICATION = 0x00010005\r
15 OUTPUT_DIRECTORY = Build/UefiCpu\r
f6b0258d 16 SUPPORTED_ARCHITECTURES = IA32|X64\r
a7bd6695 17 BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r
9e7864e2 18 SKUID_IDENTIFIER = DEFAULT\r
19\r
20#\r
21# External libraries to build package\r
22#\r
23\r
3c3a0dd9
DB
24!include MdePkg/MdeLibs.dsc.inc\r
25\r
7b202cb0 26[LibraryClasses]\r
9e7864e2 27 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
28 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
29 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
30 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
b7953e26 31 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf\r
5e9ae436 32 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
9e7864e2 33 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
661cab5d 34 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
e518b40c 35 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
36 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
9e7864e2 37 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
38 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
e518b40c 39 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
40 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
164d5964
LG
41 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
42 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
c2432b31 43 StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf\r
164d5964 44 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
173eeac9 45 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
173eeac9 46 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
1f569620 47 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
48 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
49 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
50 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
e41aad15 51 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
03673ae1 52 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
b3dc26ed 53 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
b7953e26 54 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
b7953e26
MK
55 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
56 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf\r
406c7200
MK
57 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf\r
58 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
d947a4cc
MK
59 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
60 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
09119a00 61 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
a89f558d 62 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf\r
1a957f17 63 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf\r
4a68176c 64 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf\r
75e3c243 65 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf\r
012e4246
TD
66 UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf\r
67 UnitTestPersistenceLib|UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf\r
68 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.inf\r
b3dc26ed 69\r
d947a4cc
MK
70[LibraryClasses.common.SEC]\r
71 PlatformSecLib|UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf\r
ec94e97a
TL
72!if $(TOOL_CHAIN_TAG) == "XCODE5"\r
73 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
74!else\r
406c7200 75 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
ec94e97a 76!endif\r
863c738c
JF
77 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
78 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
79 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
b7953e26 80\r
164d5964
LG
81[LibraryClasses.common.PEIM]\r
82 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
1f569620 83 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
84 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
a1a4c7a4 85 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
eff78ac3 86 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf\r
83facfd1 87 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf\r
3ea1d3e6 88\r
164d5964 89[LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]\r
3ea1d3e6 90 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
a81abf16 91 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
3ea1d3e6 92\r
9e7864e2 93[LibraryClasses.common.DXE_DRIVER]\r
9e7864e2 94 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
db61e163 95 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
406c7200 96 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
7fadaacd 97 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
eff78ac3 98 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf\r
83facfd1 99 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf\r
9e7864e2 100\r
173eeac9 101[LibraryClasses.common.DXE_SMM_DRIVER]\r
173eeac9 102 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
e414a3e9 103 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
8d96b976 104 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
b3dc26ed 105 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
406c7200 106 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
db61e163 107\r
c2432b31
KQ
108[LibraryClasses.common.MM_STANDALONE]\r
109 MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf\r
110\r
25705752
MK
111[LibraryClasses.common.UEFI_APPLICATION]\r
112 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
113 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
114\r
9e7864e2 115#\r
116# Drivers/Libraries within this package\r
117#\r
118\r
7b202cb0 119[Components]\r
3ca55ed4 120 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
e643315b 121 UefiCpuPkg/CpuIoPei/CpuIoPei.inf\r
2057d8c8 122 UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf\r
25705752 123 UefiCpuPkg/Application/Cpuid/Cpuid.inf\r
30781feb 124 UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf\r
83facfd1
LY
125 UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf\r
126 UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf\r
6612ff85 127 UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf\r
173eeac9 128\r
129[Components.IA32, Components.X64]\r
e518b40c 130 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
82e75ac6
JF
131 UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {\r
132 <LibraryClasses>\r
133 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf\r
134 }\r
135 UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {\r
136 <LibraryClasses>\r
137 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf\r
138 }\r
173eeac9 139 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
c2432b31 140 UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.inf\r
b7953e26 141 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
bfec5efa 142 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r
989322c3 143 UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
bf73cc4b 144 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf\r
b7953e26 145 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
20c082e8 146 UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf\r
e41aad15 147 UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
ec94e97a 148!if $(TOOL_CHAIN_TAG) != "XCODE5"\r
b7953e26 149 UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
ec94e97a 150!endif\r
db61e163 151 UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
a81abf16 152 UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
ec94e97a 153 UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
3e8ad6bd
JF
154 UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
155 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
6dd88437 156 UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf\r
1a957f17 157 UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf\r
b7953e26 158 UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
d947a4cc 159 UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf\r
eff78ac3
JF
160 UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf\r
161 UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf\r
406c7200
MK
162 UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf\r
163 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
09119a00 164 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf\r
edd46cd4 165 UefiCpuPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.inf\r
a89f558d 166 UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf\r
b3dc26ed
MK
167 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.inf\r
168 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf\r
d947a4cc 169 UefiCpuPkg/SecCore/SecCore.inf\r
e3e47d79 170 UefiCpuPkg/SecCore/SecCoreNative.inf\r
479613bd 171 UefiCpuPkg/SecMigrationPei/SecMigrationPei.inf\r
b7953e26 172 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf\r
09119a00
MK
173 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {\r
174 <Defines>\r
175 FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94\r
176 <LibraryClasses>\r
177 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf\r
178 }\r
1f569620 179 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf\r
20c082e8 180 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf\r
4a68176c 181 UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf\r
75e3c243 182 UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf\r
012e4246 183 UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerLibUnitTest.inf\r
9d6915ca
JL
184 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiPeiUnitTest.inf\r
185 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDxeUnitTest.inf\r
2280af5f
JL
186 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDynamicCmdUnitTest.inf {\r
187 <LibraryClasses>\r
188 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf\r
189 }\r
190 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolShellUnitTest.inf {\r
191 <LibraryClasses>\r
192 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf\r
193 }\r
012e4246
TD
194\r
195[Components.X64]\r
196 UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf\r
72a8abde 197\r
cbac2c74
S
198[Components.RISCV64]\r
199 UefiCpuPkg/Library/BaseRiscV64CpuExceptionHandlerLib/BaseRiscV64CpuExceptionHandlerLib.inf\r
705c3469 200 UefiCpuPkg/Library/BaseRiscV64CpuTimerLib/BaseRiscV64CpuTimerLib.inf\r
98fa877e 201 UefiCpuPkg/CpuTimerDxeRiscV64/CpuTimerDxeRiscV64.inf\r
c27cdc94 202 UefiCpuPkg/CpuDxeRiscV64/CpuDxeRiscV64.inf\r
cbac2c74 203\r
72a8abde
HW
204[BuildOptions]\r
205 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r