]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/UefiCpuPkg.dsc
UefiCpuPkg: Implement library support for VMGEXIT
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dsc
1 ## @file
2 # UefiCpuPkg Package
3 #
4 # Copyright (c) 2007 - 2019, 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 [LibraryClasses]
25 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
26 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
27 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
28 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
29 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
30 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
31 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
32 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
33 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
34 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
35 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
36 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
37 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
38 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
40 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
41 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
42 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
43 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
44 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
45 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
46 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
47 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
48 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
49 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
50 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
51 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
52 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
53 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
54 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
55 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
56 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
57 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
58 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
59 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
60
61 [LibraryClasses.common.SEC]
62 PlatformSecLib|UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
63 !if $(TOOL_CHAIN_TAG) == "XCODE5"
64 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
65 !else
66 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
67 !endif
68 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
69 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
70 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
71
72 [LibraryClasses.common.PEIM]
73 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
74 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
75 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
76 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
77 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
78
79 [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
80 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
81 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
82
83 [LibraryClasses.common.DXE_DRIVER]
84 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
85 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
86 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
87 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
88 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
89
90 [LibraryClasses.common.DXE_SMM_DRIVER]
91 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
92 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
93 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
94 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
95
96 [LibraryClasses.common.UEFI_APPLICATION]
97 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
98 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
99
100 #
101 # Drivers/Libraries within this package
102 #
103
104 [Components]
105 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
106 UefiCpuPkg/CpuIoPei/CpuIoPei.inf
107 UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
108 UefiCpuPkg/Application/Cpuid/Cpuid.inf
109 UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
110 UefiCpuPkg/Library/CpuTimerLib/DxeCpuTimerLib.inf
111 UefiCpuPkg/Library/CpuTimerLib/PeiCpuTimerLib.inf
112
113 [Components.IA32, Components.X64]
114 UefiCpuPkg/CpuDxe/CpuDxe.inf
115 UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {
116 <LibraryClasses>
117 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
118 }
119 UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {
120 <LibraryClasses>
121 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
122 }
123 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
124 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
125 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
126 UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
127 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
128 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
129 UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
130 UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
131 !if $(TOOL_CHAIN_TAG) != "XCODE5"
132 UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
133 !endif
134 UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
135 UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
136 UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
137 UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
138 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
139 UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
140 UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
141 UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
142 UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
143 UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
144 UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
145 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
146 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
147 UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
148 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.inf
149 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf
150 UefiCpuPkg/SecCore/SecCore.inf
151 UefiCpuPkg/SecMigrationPei/SecMigrationPei.inf
152 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
153 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
154 <Defines>
155 FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94
156 <LibraryClasses>
157 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
158 }
159 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
160 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
161
162 [BuildOptions]
163 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES