]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/UefiCpuPkg.dsc
UefiCpuPkg: Extend measurement of microcode patches to TPM
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dsc
1 ## @file
2 # UefiCpuPkg Package
3 #
4 # Copyright (c) 2007 - 2021, 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 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
63 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
64
65 [LibraryClasses.common.SEC]
66 PlatformSecLib|UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
67 !if $(TOOL_CHAIN_TAG) == "XCODE5"
68 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
69 !else
70 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
71 !endif
72 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
73 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
74 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
75
76 [LibraryClasses.common.PEIM]
77 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
78 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
79 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
80 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
81 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
82 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
83
84 [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
85 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
86 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
87
88 [LibraryClasses.common.DXE_DRIVER]
89 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
90 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
91 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
92 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
93 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
94 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
95
96 [LibraryClasses.common.DXE_SMM_DRIVER]
97 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
98 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
99 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
100 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
101 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
102
103 [LibraryClasses.common.MM_STANDALONE]
104 MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
105
106 [LibraryClasses.common.UEFI_APPLICATION]
107 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
108 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
109
110 #
111 # Drivers/Libraries within this package
112 #
113
114 [Components]
115 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
116 UefiCpuPkg/CpuIoPei/CpuIoPei.inf
117 UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
118 UefiCpuPkg/Application/Cpuid/Cpuid.inf
119 UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
120 UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
121 UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
122 UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
123
124 [Components.IA32, Components.X64]
125 UefiCpuPkg/CpuDxe/CpuDxe.inf
126 UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {
127 <LibraryClasses>
128 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
129 }
130 UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {
131 <LibraryClasses>
132 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
133 }
134 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
135 UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.inf
136 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
137 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
138 UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
139 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
140 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
141 UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
142 UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
143 !if $(TOOL_CHAIN_TAG) != "XCODE5"
144 UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
145 !endif
146 UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
147 UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
148 UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
149 UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
150 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
151 UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
152 UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
153 UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
154 UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
155 UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
156 UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
157 UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
158 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
159 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
160 UefiCpuPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.inf
161 UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
162 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.inf
163 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf
164 UefiCpuPkg/SecCore/SecCore.inf
165 UefiCpuPkg/SecCore/SecCoreNative.inf
166 UefiCpuPkg/SecMigrationPei/SecMigrationPei.inf
167 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
168 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
169 <Defines>
170 FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94
171 <LibraryClasses>
172 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
173 }
174 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
175 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
176
177 [BuildOptions]
178 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES