]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - UefiCpuPkg/UefiCpuPkg.dsc
UefiCpuPkg: CpuIo2Smm: Abstract SMM specific functions into separate file
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dsc
... / ...
CommitLineData
1## @file\r
2# UefiCpuPkg Package\r
3#\r
4# Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>\r
5#\r
6# SPDX-License-Identifier: BSD-2-Clause-Patent\r
7#\r
8##\r
9\r
10[Defines]\r
11 PLATFORM_NAME = UefiCpu\r
12 PLATFORM_GUID = a1b7be22-78b3-4260-9569-8649e8c17d49\r
13 PLATFORM_VERSION = 0.90\r
14 DSC_SPECIFICATION = 0x00010005\r
15 OUTPUT_DIRECTORY = Build/UefiCpu\r
16 SUPPORTED_ARCHITECTURES = IA32|X64\r
17 BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r
18 SKUID_IDENTIFIER = DEFAULT\r
19\r
20#\r
21# External libraries to build package\r
22#\r
23\r
24[LibraryClasses]\r
25 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
26 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
27 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
28 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
29 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf\r
30 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
31 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
32 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
33 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
34 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
35 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
36 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
37 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
38 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
40 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
41 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
42 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
43 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
44 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
45 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
46 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
47 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
48 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
49 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
50 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
51 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
52 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
53 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf\r
54 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf\r
55 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
56 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
57 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
58 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
59 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
60\r
61[LibraryClasses.common.SEC]\r
62 PlatformSecLib|UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf\r
63!if $(TOOL_CHAIN_TAG) == "XCODE5"\r
64 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
65!else\r
66 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
67!endif\r
68 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
69 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
70 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
71\r
72[LibraryClasses.common.PEIM]\r
73 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
74 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
75 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
76 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
77 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf\r
78 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf\r
79\r
80[LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]\r
81 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
82 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
83\r
84[LibraryClasses.common.DXE_DRIVER]\r
85 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
86 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
87 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
88 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
89 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf\r
90 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf\r
91\r
92[LibraryClasses.common.DXE_SMM_DRIVER]\r
93 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
94 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
95 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
96 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
97 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
98\r
99[LibraryClasses.common.UEFI_APPLICATION]\r
100 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
101 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
102\r
103#\r
104# Drivers/Libraries within this package\r
105#\r
106\r
107[Components]\r
108 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
109 UefiCpuPkg/CpuIoPei/CpuIoPei.inf\r
110 UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf\r
111 UefiCpuPkg/Application/Cpuid/Cpuid.inf\r
112 UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf\r
113 UefiCpuPkg/Library/CpuTimerLib/DxeCpuTimerLib.inf\r
114 UefiCpuPkg/Library/CpuTimerLib/PeiCpuTimerLib.inf\r
115 UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf\r
116 UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf\r
117\r
118[Components.IA32, Components.X64]\r
119 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
120 UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {\r
121 <LibraryClasses>\r
122 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf\r
123 }\r
124 UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {\r
125 <LibraryClasses>\r
126 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf\r
127 }\r
128 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
129 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
130 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r
131 UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
132 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf\r
133 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
134 UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf\r
135 UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
136!if $(TOOL_CHAIN_TAG) != "XCODE5"\r
137 UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
138!endif\r
139 UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
140 UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
141 UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
142 UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
143 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
144 UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf\r
145 UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
146 UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf\r
147 UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf\r
148 UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf\r
149 UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf\r
150 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
151 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf\r
152 UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
153 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.inf\r
154 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf\r
155 UefiCpuPkg/SecCore/SecCore.inf\r
156 UefiCpuPkg/SecMigrationPei/SecMigrationPei.inf\r
157 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf\r
158 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {\r
159 <Defines>\r
160 FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94\r
161 <LibraryClasses>\r
162 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf\r
163 }\r
164 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf\r
165 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf\r
166\r
167[BuildOptions]\r
168 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r