]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg: LockBoxLib: -D SMM_REQUIRE excludes our fake lockbox
[mirror_edk2.git] / OvmfPkg / OvmfPkgX64.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/OvmfX64
27 SUPPORTED_ARCHITECTURES = X64
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = OvmfPkg/OvmfPkgX64.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|FALSE
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 !if $(SECURE_BOOT_ENABLE) == TRUE
369 # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
370 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
371 gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
372 gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
373 !endif
374
375 # IRQs 5, 9, 10, 11 are level-triggered
376 gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
377
378 ################################################################################
379 #
380 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
381 #
382 ################################################################################
383
384 [PcdsDynamicDefault]
385 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
386 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
387 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
388 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
389 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
390 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
391 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
392 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
393
394 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
395
396 # Set video resolution for text setup.
397 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
398 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
399
400 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
401 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
402 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
403
404 # Noexec settings for DXE.
405 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
406 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
407
408 ################################################################################
409 #
410 # Components Section - list of all EDK II Modules needed by this Platform.
411 #
412 ################################################################################
413 [Components]
414 OvmfPkg/ResetVector/ResetVector.inf
415
416 #
417 # SEC Phase modules
418 #
419 OvmfPkg/Sec/SecMain.inf {
420 <LibraryClasses>
421 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
422 }
423
424 #
425 # PEI Phase modules
426 #
427 MdeModulePkg/Core/Pei/PeiMain.inf
428 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
429 <LibraryClasses>
430 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
431 }
432 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
433 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
434 <LibraryClasses>
435 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
436 }
437
438 OvmfPkg/PlatformPei/PlatformPei.inf {
439 <LibraryClasses>
440 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
441 }
442 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
443 <LibraryClasses>
444 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
445 }
446 !if $(SMM_REQUIRE) == TRUE
447 OvmfPkg/SmmAccess/SmmAccessPei.inf {
448 <LibraryClasses>
449 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
450 }
451 !endif
452
453 #
454 # DXE Phase modules
455 #
456 MdeModulePkg/Core/Dxe/DxeMain.inf {
457 <LibraryClasses>
458 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
459 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
460 }
461
462 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
463 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
464 <LibraryClasses>
465 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
466 }
467
468 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
469
470 !if $(SECURE_BOOT_ENABLE) == TRUE
471 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
472 <LibraryClasses>
473 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
474 }
475 !else
476 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
477 !endif
478
479 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
480 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
481 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
482 UefiCpuPkg/CpuDxe/CpuDxe.inf
483 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
484 OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
485 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
486 <LibraryClasses>
487 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
488 }
489 PcAtChipsetPkg/KbcResetDxe/Reset.inf
490 MdeModulePkg/Universal/Metronome/Metronome.inf
491 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
492 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
493 <LibraryClasses>
494 !ifdef $(CSM_ENABLE)
495 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
496 !endif
497 }
498
499 OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
500 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
501 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
502 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
503 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
504 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
505 OvmfPkg/XenBusDxe/XenBusDxe.inf
506 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
507 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
508 <LibraryClasses>
509 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
510 }
511 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
512 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
513 <LibraryClasses>
514 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
515 }
516 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
517 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
518 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
519 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
520 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
521 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
522 <LibraryClasses>
523 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
524 }
525 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
526 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
527 <LibraryClasses>
528 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
529 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
530 }
531 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
532 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
533 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
534 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
535 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
536 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
537 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
538 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
539 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
540 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
541 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
542 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
543 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
544
545 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
546 <LibraryClasses>
547 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
548 }
549
550 #
551 # ISA Support
552 #
553 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
554 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
555 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
556 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
557 IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
558
559 #
560 # SMBIOS Support
561 #
562 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
563 <LibraryClasses>
564 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
565 }
566 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
567
568 #
569 # ACPI Support
570 #
571 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
572 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
573 OvmfPkg/AcpiTables/AcpiTables.inf
574 OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
575 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
576 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
577
578 #
579 # Network Support
580 #
581 MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
582 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
583 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
584 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
585 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
586 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
587 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
588 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
589 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
590 !if $(NETWORK_IP6_ENABLE) == TRUE
591 NetworkPkg/Ip6Dxe/Ip6Dxe.inf
592 NetworkPkg/TcpDxe/TcpDxe.inf
593 NetworkPkg/Udp6Dxe/Udp6Dxe.inf
594 NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
595 NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
596 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
597 !if $(SECURE_BOOT_ENABLE) == TRUE
598 NetworkPkg/IScsiDxe/IScsiDxe.inf
599 !else
600 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
601 !endif
602 !else
603 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
604 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
605 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
606 !endif
607 !if $(HTTP_BOOT_ENABLE) == TRUE
608 NetworkPkg/DnsDxe/DnsDxe.inf
609 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
610 NetworkPkg/HttpDxe/HttpDxe.inf
611 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
612 !endif
613 OvmfPkg/VirtioNetDxe/VirtioNet.inf
614
615 #
616 # Usb Support
617 #
618 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
619 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
620 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
621 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
622 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
623 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
624
625 !ifdef $(CSM_ENABLE)
626 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
627 <LibraryClasses>
628 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
629 }
630 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
631 OvmfPkg/Csm/Csm16/Csm16.inf
632 !endif
633
634 !ifndef $(USE_OLD_SHELL)
635 ShellPkg/Application/Shell/Shell.inf {
636 <LibraryClasses>
637 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
638 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
639 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
640 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
641 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
642 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
643 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
644 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
645 NULL|ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
646 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
647 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
648 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
649 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
650 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
651 # SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
652 # SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
653 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
654
655 <PcdsFixedAtBuild>
656 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
657 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
658 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
659 }
660 !endif
661
662 !if $(SECURE_BOOT_ENABLE) == TRUE
663 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
664 !endif
665
666 OvmfPkg/PlatformDxe/Platform.inf
667
668 !if $(SMM_REQUIRE) == TRUE
669 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
670 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
671
672 #
673 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
674 #
675 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
676
677 #
678 # SMM_CORE
679 #
680 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
681
682 #
683 # Privileged drivers (DXE_SMM_DRIVER modules)
684 #
685 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
686 !endif