]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/UefiCpuPkg.dsc
BaseTools: Fix IA32 UINT64 alignment for CLANG toolchains
[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 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
98 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
99 RegisterCpuFeaturesLib|UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
100 CpuCacheInfoLib|UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
101
102 [LibraryClasses.common.DXE_SMM_DRIVER]
103 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
104 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
105 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
106 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
107 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
108
109 [LibraryClasses.common.MM_STANDALONE]
110 MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
111
112 [LibraryClasses.common.UEFI_APPLICATION]
113 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
114 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
115
116 #
117 # Drivers/Libraries within this package
118 #
119
120 [Components]
121 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
122 UefiCpuPkg/CpuIoPei/CpuIoPei.inf
123 UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/SecPeiDxeTimerLibUefiCpu.inf
124 UefiCpuPkg/Application/Cpuid/Cpuid.inf
125 UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
126 UefiCpuPkg/Library/CpuCacheInfoLib/PeiCpuCacheInfoLib.inf
127 UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.inf
128 UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
129
130 [Components.IA32, Components.X64]
131 UefiCpuPkg/CpuDxe/CpuDxe.inf
132 UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf {
133 <LibraryClasses>
134 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
135 }
136 UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf {
137 <LibraryClasses>
138 NULL|UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
139 }
140 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
141 UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.inf
142 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
143 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
144 UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
145 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
146 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
147 UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf
148 UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
149 !if $(TOOL_CHAIN_TAG) != "XCODE5"
150 UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
151 !endif
152 UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
153 UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
154 UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
155 UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
156 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
157 UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
158 UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
159 UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
160 UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.inf
161 UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.inf
162 UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.inf
163 UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
164 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
165 UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
166 UefiCpuPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.inf
167 UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
168 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationPei.inf
169 UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf
170 UefiCpuPkg/SecCore/SecCore.inf
171 UefiCpuPkg/SecCore/SecCoreNative.inf
172 UefiCpuPkg/SecMigrationPei/SecMigrationPei.inf
173 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
174 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
175 <Defines>
176 FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94
177 <LibraryClasses>
178 SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibStm.inf
179 }
180 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
181 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
182 UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
183 UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
184 UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerLibUnitTest.inf
185 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiPeiUnitTest.inf
186 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDxeUnitTest.inf
187 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDynamicCmdUnitTest.inf {
188 <LibraryClasses>
189 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf
190 }
191 UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolShellUnitTest.inf {
192 <LibraryClasses>
193 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf
194 }
195
196 [Components.X64]
197 UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf
198
199 [BuildOptions]
200 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES