]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg: introduce -D SMM_REQUIRE and PcdSmmSmramRequire
[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
300 [LibraryClasses.common.SMM_CORE]
301 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
302 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
303
304 ################################################################################
305 #
306 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
307 #
308 ################################################################################
309 [PcdsFeatureFlag]
310 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
311 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
312 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
313 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
314 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
315 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
316 !if $(SECURE_BOOT_ENABLE) == TRUE
317 gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|TRUE
318 !endif
319 !if $(SMM_REQUIRE) == TRUE
320 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
321 !endif
322
323 [PcdsFixedAtBuild]
324 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
325 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
326 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
327 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|6
328 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32
329 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
330 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
331 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
332
333 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
334
335 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
336 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
337 !ifdef $(SOURCE_DEBUG_ENABLE)
338 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
339 !else
340 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
341 !endif
342
343 !ifdef $(SOURCE_DEBUG_ENABLE)
344 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
345 !endif
346
347 !ifndef $(USE_OLD_SHELL)
348 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
349 !endif
350
351 [PcdsFixedAtBuild.X64]
352 !if $(SECURE_BOOT_ENABLE) == TRUE
353 # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
354 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
355 gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
356 gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
357 !endif
358
359 # IRQs 5, 9, 10, 11 are level-triggered
360 gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
361
362 ################################################################################
363 #
364 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
365 #
366 ################################################################################
367
368 [PcdsDynamicDefault]
369 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
370 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
371 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
372 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
373 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
374 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
375 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
376 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
377
378 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
379
380 # Set video resolution for text setup.
381 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
382 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
383
384 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
385 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
386 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
387
388 # Noexec settings for DXE.
389 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
390 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
391
392 ################################################################################
393 #
394 # Components Section - list of all EDK II Modules needed by this Platform.
395 #
396 ################################################################################
397 [Components.IA32]
398 OvmfPkg/ResetVector/ResetVector.inf
399
400 #
401 # SEC Phase modules
402 #
403 OvmfPkg/Sec/SecMain.inf {
404 <LibraryClasses>
405 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
406 }
407
408 #
409 # PEI Phase modules
410 #
411 MdeModulePkg/Core/Pei/PeiMain.inf
412 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
413 <LibraryClasses>
414 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
415 }
416 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
417 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
418 <LibraryClasses>
419 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
420 }
421
422 OvmfPkg/PlatformPei/PlatformPei.inf {
423 <LibraryClasses>
424 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
425 }
426 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
427 <LibraryClasses>
428 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
429 }
430
431 [Components.X64]
432 #
433 # DXE Phase modules
434 #
435 MdeModulePkg/Core/Dxe/DxeMain.inf {
436 <LibraryClasses>
437 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
438 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
439 }
440
441 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
442 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
443 <LibraryClasses>
444 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
445 }
446
447 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
448
449 !if $(SECURE_BOOT_ENABLE) == TRUE
450 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
451 <LibraryClasses>
452 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
453 }
454 !else
455 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
456 !endif
457
458 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
459 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
460 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
461 UefiCpuPkg/CpuDxe/CpuDxe.inf
462 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
463 OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
464 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
465 <LibraryClasses>
466 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
467 }
468 PcAtChipsetPkg/KbcResetDxe/Reset.inf
469 MdeModulePkg/Universal/Metronome/Metronome.inf
470 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
471 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
472 <LibraryClasses>
473 !ifdef $(CSM_ENABLE)
474 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
475 !endif
476 }
477
478 OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
479 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
480 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
481 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
482 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
483 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
484 OvmfPkg/XenBusDxe/XenBusDxe.inf
485 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
486 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
487 <LibraryClasses>
488 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
489 }
490 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
491 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
492 <LibraryClasses>
493 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
494 }
495 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
496 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
497 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
498 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
499 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
500 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
501 <LibraryClasses>
502 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
503 }
504 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
505 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
506 <LibraryClasses>
507 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
508 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
509 }
510 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
511 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
512 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
513 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
514 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
515 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
516 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
517 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
518 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
519 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
520 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
521 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
522 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
523
524 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
525 <LibraryClasses>
526 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
527 }
528
529 #
530 # ISA Support
531 #
532 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
533 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
534 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
535 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
536 IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
537
538 #
539 # SMBIOS Support
540 #
541 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
542 <LibraryClasses>
543 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
544 }
545 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
546
547 #
548 # ACPI Support
549 #
550 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
551 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
552 OvmfPkg/AcpiTables/AcpiTables.inf
553 OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
554 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
555 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
556
557 #
558 # Network Support
559 #
560 MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
561 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
562 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
563 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
564 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
565 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
566 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
567 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
568 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
569 !if $(NETWORK_IP6_ENABLE) == TRUE
570 NetworkPkg/Ip6Dxe/Ip6Dxe.inf
571 NetworkPkg/TcpDxe/TcpDxe.inf
572 NetworkPkg/Udp6Dxe/Udp6Dxe.inf
573 NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
574 NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
575 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
576 !if $(SECURE_BOOT_ENABLE) == TRUE
577 NetworkPkg/IScsiDxe/IScsiDxe.inf
578 !else
579 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
580 !endif
581 !else
582 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
583 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
584 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
585 !endif
586 !if $(HTTP_BOOT_ENABLE) == TRUE
587 NetworkPkg/DnsDxe/DnsDxe.inf
588 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
589 NetworkPkg/HttpDxe/HttpDxe.inf
590 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
591 !endif
592 OvmfPkg/VirtioNetDxe/VirtioNet.inf
593
594 #
595 # Usb Support
596 #
597 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
598 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
599 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
600 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
601 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
602 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
603
604 !ifdef $(CSM_ENABLE)
605 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
606 <LibraryClasses>
607 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
608 }
609 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
610 OvmfPkg/Csm/Csm16/Csm16.inf
611 !endif
612
613 !ifndef $(USE_OLD_SHELL)
614 ShellPkg/Application/Shell/Shell.inf {
615 <LibraryClasses>
616 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
617 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
618 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
619 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
620 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
621 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
622 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
623 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
624 NULL|ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
625 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
626 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
627 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
628 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
629 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
630 # SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
631 # SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
632 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
633
634 <PcdsFixedAtBuild>
635 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
636 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
637 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
638 }
639 !endif
640
641 !if $(SECURE_BOOT_ENABLE) == TRUE
642 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
643 !endif
644
645 OvmfPkg/PlatformDxe/Platform.inf