]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg: LockBoxLib: -D SMM_REQUIRE excludes our fake lockbox
[mirror_edk2.git] / OvmfPkg / OvmfPkgIa32X64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
5 #
6 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 ##
15
16 ################################################################################
17 #
18 # Defines Section - statements that will be processed to create a Makefile.
19 #
20 ################################################################################
21 [Defines]
22 PLATFORM_NAME = Ovmf
23 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/Ovmf3264
27 SUPPORTED_ARCHITECTURES = IA32|X64
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32X64.fdf
31
32 #
33 # Defines for default states. These can be changed on the command line.
34 # -D FLAG=VALUE
35 #
36 DEFINE SECURE_BOOT_ENABLE = FALSE
37 DEFINE NETWORK_IP6_ENABLE = FALSE
38 DEFINE HTTP_BOOT_ENABLE = FALSE
39 DEFINE SMM_REQUIRE = FALSE
40
41 [BuildOptions]
42 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
43 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
44 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
45 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
46 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
47 !ifdef $(SOURCE_DEBUG_ENABLE)
48 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
49 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
50 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
51 !endif
52
53 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
54 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
55
56 ################################################################################
57 #
58 # SKU Identification section - list of all SKU IDs supported by this Platform.
59 #
60 ################################################################################
61 [SkuIds]
62 0|DEFAULT
63
64 ################################################################################
65 #
66 # Library Class section - list of all Library Classes needed by this Platform.
67 #
68 ################################################################################
69 [LibraryClasses]
70 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
71 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
72 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
73 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
74 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
75 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
76 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
77 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
78 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
79 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
80 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
81 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
82 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
83 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
84 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
85 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
86 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
87 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
88 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
89 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
90 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
91 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
92 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
93 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
94 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
95 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
96 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
97 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
98 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
99 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
100 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
101 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
102 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
103 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
104 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
105 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
106 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
107 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
108 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
109 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
110 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
111 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
112 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
113 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
114 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
115
116 !ifdef $(SOURCE_DEBUG_ENABLE)
117 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
118 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
119 !else
120 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
121 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
122 !endif
123
124 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
125 LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
126 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
127
128 !if $(SECURE_BOOT_ENABLE) == TRUE
129 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
130 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
131 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
132 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
133 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
134 !if $(NETWORK_IP6_ENABLE) == TRUE
135 TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
136 !endif
137 !else
138 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
139 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
140 !endif
141 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
142
143 !if $(HTTP_BOOT_ENABLE) == TRUE
144 HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
145 !endif
146
147 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
148 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
149 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
150 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
151
152 [LibraryClasses.common]
153 !if $(SECURE_BOOT_ENABLE) == TRUE
154 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
155 !endif
156
157 [LibraryClasses.common.SEC]
158 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
159 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
160 !ifdef $(DEBUG_ON_SERIAL_PORT)
161 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
162 !else
163 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
164 !endif
165 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
166 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
167 !ifdef $(SOURCE_DEBUG_ENABLE)
168 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
169 !endif
170 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
171 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
172 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
173 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
174 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
175
176 [LibraryClasses.common.PEI_CORE]
177 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
178 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
179 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
180 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
181 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
182 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
183 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
184 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
185 !ifdef $(DEBUG_ON_SERIAL_PORT)
186 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
187 !else
188 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
189 !endif
190 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
191
192 [LibraryClasses.common.PEIM]
193 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
194 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
195 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
196 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
197 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
198 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
199 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
200 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
201 !ifdef $(DEBUG_ON_SERIAL_PORT)
202 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
203 !else
204 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
205 !endif
206 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
207 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
208 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
209 !ifdef $(SOURCE_DEBUG_ENABLE)
210 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
211 !endif
212
213 [LibraryClasses.common.DXE_CORE]
214 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
215 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
216 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
217 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
218 !ifdef $(DEBUG_ON_SERIAL_PORT)
219 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
220 !else
221 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
222 !endif
223 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
224 !ifdef $(SOURCE_DEBUG_ENABLE)
225 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
226 !endif
227 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
228 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
229
230 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
231 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
232 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
233 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
234 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
235 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
236 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
237 !ifdef $(DEBUG_ON_SERIAL_PORT)
238 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
239 !else
240 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
241 !endif
242 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
243 !if $(SECURE_BOOT_ENABLE) == TRUE
244 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
245 !endif
246
247 [LibraryClasses.common.UEFI_DRIVER]
248 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
249 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
250 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
251 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
252 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
253 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
254 !ifdef $(DEBUG_ON_SERIAL_PORT)
255 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
256 !else
257 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
258 !endif
259 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
260
261 [LibraryClasses.common.DXE_DRIVER]
262 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
263 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
264 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
265 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
266 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
267 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
268 !ifdef $(DEBUG_ON_SERIAL_PORT)
269 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
270 !else
271 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
272 !endif
273 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
274 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
275 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
276 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
277 PlatformBdsLib|OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
278 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
279 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
280 !ifdef $(SOURCE_DEBUG_ENABLE)
281 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
282 !endif
283 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
284
285 [LibraryClasses.common.UEFI_APPLICATION]
286 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
287 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
288 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
289 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
290 !ifdef $(DEBUG_ON_SERIAL_PORT)
291 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
292 !else
293 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
294 !endif
295
296 [LibraryClasses.common.DXE_SMM_DRIVER]
297 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
298 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
299 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
300 !ifdef $(DEBUG_ON_SERIAL_PORT)
301 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
302 !else
303 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
304 !endif
305
306 [LibraryClasses.common.SMM_CORE]
307 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
308 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
309 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
310 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
311 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
312 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
313 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
314 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
315 !ifdef $(DEBUG_ON_SERIAL_PORT)
316 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
317 !else
318 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
319 !endif
320
321 ################################################################################
322 #
323 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
324 #
325 ################################################################################
326 [PcdsFeatureFlag]
327 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
328 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
329 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
330 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
331 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
332 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
333 !if $(SECURE_BOOT_ENABLE) == TRUE
334 gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|TRUE
335 !endif
336 !if $(SMM_REQUIRE) == TRUE
337 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
338 !endif
339
340 [PcdsFixedAtBuild]
341 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
342 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
343 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
344 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|6
345 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32
346 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
347 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
348 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
349
350 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
351
352 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
353 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
354 !ifdef $(SOURCE_DEBUG_ENABLE)
355 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
356 !else
357 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
358 !endif
359
360 !ifdef $(SOURCE_DEBUG_ENABLE)
361 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
362 !endif
363
364 !ifndef $(USE_OLD_SHELL)
365 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
366 !endif
367
368 [PcdsFixedAtBuild.X64]
369 !if $(SECURE_BOOT_ENABLE) == TRUE
370 # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
371 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
372 gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
373 gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
374 !endif
375
376 # IRQs 5, 9, 10, 11 are level-triggered
377 gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
378
379 ################################################################################
380 #
381 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
382 #
383 ################################################################################
384
385 [PcdsDynamicDefault]
386 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
387 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
388 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
389 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
390 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
391 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
392 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
393 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
394
395 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
396
397 # Set video resolution for text setup.
398 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
399 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
400
401 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
402 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
403 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
404
405 # Noexec settings for DXE.
406 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
407 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
408
409 ################################################################################
410 #
411 # Components Section - list of all EDK II Modules needed by this Platform.
412 #
413 ################################################################################
414 [Components.IA32]
415 OvmfPkg/ResetVector/ResetVector.inf
416
417 #
418 # SEC Phase modules
419 #
420 OvmfPkg/Sec/SecMain.inf {
421 <LibraryClasses>
422 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
423 }
424
425 #
426 # PEI Phase modules
427 #
428 MdeModulePkg/Core/Pei/PeiMain.inf
429 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
430 <LibraryClasses>
431 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
432 }
433 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
434 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
435 <LibraryClasses>
436 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
437 }
438
439 OvmfPkg/PlatformPei/PlatformPei.inf {
440 <LibraryClasses>
441 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
442 }
443 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
444 <LibraryClasses>
445 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
446 }
447 !if $(SMM_REQUIRE) == TRUE
448 OvmfPkg/SmmAccess/SmmAccessPei.inf {
449 <LibraryClasses>
450 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
451 }
452 !endif
453
454 [Components.X64]
455 #
456 # DXE Phase modules
457 #
458 MdeModulePkg/Core/Dxe/DxeMain.inf {
459 <LibraryClasses>
460 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
461 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
462 }
463
464 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
465 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
466 <LibraryClasses>
467 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
468 }
469
470 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
471
472 !if $(SECURE_BOOT_ENABLE) == TRUE
473 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
474 <LibraryClasses>
475 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
476 }
477 !else
478 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
479 !endif
480
481 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
482 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
483 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
484 UefiCpuPkg/CpuDxe/CpuDxe.inf
485 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
486 OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
487 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
488 <LibraryClasses>
489 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
490 }
491 PcAtChipsetPkg/KbcResetDxe/Reset.inf
492 MdeModulePkg/Universal/Metronome/Metronome.inf
493 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
494 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
495 <LibraryClasses>
496 !ifdef $(CSM_ENABLE)
497 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
498 !endif
499 }
500
501 OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
502 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
503 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
504 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
505 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
506 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
507 OvmfPkg/XenBusDxe/XenBusDxe.inf
508 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
509 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
510 <LibraryClasses>
511 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
512 }
513 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
514 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
515 <LibraryClasses>
516 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
517 }
518 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
519 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
520 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
521 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
522 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
523 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
524 <LibraryClasses>
525 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
526 }
527 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
528 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
529 <LibraryClasses>
530 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
531 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
532 }
533 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
534 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
535 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
536 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
537 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
538 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
539 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
540 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
541 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
542 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
543 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
544 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
545 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
546
547 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
548 <LibraryClasses>
549 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
550 }
551
552 #
553 # ISA Support
554 #
555 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
556 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
557 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
558 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
559 IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
560
561 #
562 # SMBIOS Support
563 #
564 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
565 <LibraryClasses>
566 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
567 }
568 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
569
570 #
571 # ACPI Support
572 #
573 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
574 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
575 OvmfPkg/AcpiTables/AcpiTables.inf
576 OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
577 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
578 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
579
580 #
581 # Network Support
582 #
583 MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
584 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
585 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
586 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
587 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
588 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
589 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
590 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
591 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
592 !if $(NETWORK_IP6_ENABLE) == TRUE
593 NetworkPkg/Ip6Dxe/Ip6Dxe.inf
594 NetworkPkg/TcpDxe/TcpDxe.inf
595 NetworkPkg/Udp6Dxe/Udp6Dxe.inf
596 NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
597 NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
598 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
599 !if $(SECURE_BOOT_ENABLE) == TRUE
600 NetworkPkg/IScsiDxe/IScsiDxe.inf
601 !else
602 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
603 !endif
604 !else
605 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
606 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
607 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
608 !endif
609 !if $(HTTP_BOOT_ENABLE) == TRUE
610 NetworkPkg/DnsDxe/DnsDxe.inf
611 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
612 NetworkPkg/HttpDxe/HttpDxe.inf
613 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
614 !endif
615 OvmfPkg/VirtioNetDxe/VirtioNet.inf
616
617 #
618 # Usb Support
619 #
620 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
621 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
622 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
623 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
624 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
625 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
626
627 !ifdef $(CSM_ENABLE)
628 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
629 <LibraryClasses>
630 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
631 }
632 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
633 OvmfPkg/Csm/Csm16/Csm16.inf
634 !endif
635
636 !ifndef $(USE_OLD_SHELL)
637 ShellPkg/Application/Shell/Shell.inf {
638 <LibraryClasses>
639 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
640 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
641 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
642 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
643 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
644 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
645 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
646 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
647 NULL|ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
648 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
649 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
650 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
651 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
652 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
653 # SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
654 # SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
655 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
656
657 <PcdsFixedAtBuild>
658 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
659 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
660 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
661 }
662 !endif
663
664 !if $(SECURE_BOOT_ENABLE) == TRUE
665 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
666 !endif
667
668 OvmfPkg/PlatformDxe/Platform.inf
669
670 !if $(SMM_REQUIRE) == TRUE
671 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
672 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
673
674 #
675 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
676 #
677 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
678
679 #
680 # SMM_CORE
681 #
682 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
683
684 #
685 # Privileged drivers (DXE_SMM_DRIVER modules)
686 #
687 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
688 !endif