f7e00caf5a4d0019208e7fe808cafa38a4945d1b
[mirror_edk2.git] / OvmfPkg / OvmfPkgX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2016, 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 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
84 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
85 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
86 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
87 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
88 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
89 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
90 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
91 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
92 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
93 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
94 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
95 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
96 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
97 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
98 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
99 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
100 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
101 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
102 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
103 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
104 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
105 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
106 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
107 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
108 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
109 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
110 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
111 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
112 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
113 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
114 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
115 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
116 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
117 !if $(SMM_REQUIRE) == FALSE
118 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
119 !endif
120 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
121
122 !ifdef $(SOURCE_DEBUG_ENABLE)
123 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
124 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
125 !else
126 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
127 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
128 !endif
129
130 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
131 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
132 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
133
134 !if $(SECURE_BOOT_ENABLE) == TRUE
135 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
136 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
137 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
138 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
139 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
140 !if $(NETWORK_IP6_ENABLE) == TRUE
141 TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
142 !endif
143 !else
144 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
145 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
146 !endif
147 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
148
149 !if $(HTTP_BOOT_ENABLE) == TRUE
150 HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
151 !endif
152
153 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
154 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
155 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
156 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
157
158 [LibraryClasses.common]
159 !if $(SECURE_BOOT_ENABLE) == TRUE
160 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
161 !endif
162
163 [LibraryClasses.common.SEC]
164 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
165 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
166 !ifdef $(DEBUG_ON_SERIAL_PORT)
167 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
168 !else
169 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
170 !endif
171 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
172 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
173 !ifdef $(SOURCE_DEBUG_ENABLE)
174 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
175 !endif
176 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
177 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
178 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
179 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
180 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
181
182 [LibraryClasses.common.PEI_CORE]
183 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
184 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
185 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
186 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
187 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
188 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
189 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
190 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
191 !ifdef $(DEBUG_ON_SERIAL_PORT)
192 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
193 !else
194 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
195 !endif
196 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
197
198 [LibraryClasses.common.PEIM]
199 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
200 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
201 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
202 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
203 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
204 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
205 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
206 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
207 !ifdef $(DEBUG_ON_SERIAL_PORT)
208 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
209 !else
210 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
211 !endif
212 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
213 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
214 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
215 !ifdef $(SOURCE_DEBUG_ENABLE)
216 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
217 !endif
218
219 [LibraryClasses.common.DXE_CORE]
220 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
221 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
222 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
223 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
224 !ifdef $(DEBUG_ON_SERIAL_PORT)
225 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
226 !else
227 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
228 !endif
229 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
230 !ifdef $(SOURCE_DEBUG_ENABLE)
231 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
232 !endif
233 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
234 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
235
236 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
237 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
238 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
239 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
240 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
241 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
242 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
243 !ifdef $(DEBUG_ON_SERIAL_PORT)
244 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
245 !else
246 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
247 !endif
248 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
249 !if $(SECURE_BOOT_ENABLE) == TRUE
250 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
251 !endif
252 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
253
254 [LibraryClasses.common.UEFI_DRIVER]
255 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
256 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
257 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
258 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
259 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
260 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
261 !ifdef $(DEBUG_ON_SERIAL_PORT)
262 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
263 !else
264 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
265 !endif
266 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
267 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
268
269 [LibraryClasses.common.DXE_DRIVER]
270 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
271 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
272 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
273 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
274 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
275 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
276 !ifdef $(DEBUG_ON_SERIAL_PORT)
277 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
278 !else
279 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
280 !endif
281 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
282 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
283 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
284 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
285 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
286 QemuBootOrderLib|OvmfPkg/Library/QemuNewBootOrderLib/QemuBootOrderLib.inf
287 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
288 !if $(SMM_REQUIRE) == TRUE
289 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
290 !else
291 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
292 !endif
293 !ifdef $(SOURCE_DEBUG_ENABLE)
294 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
295 !endif
296 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
297
298 [LibraryClasses.common.UEFI_APPLICATION]
299 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
300 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
301 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
302 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
303 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
304 !ifdef $(DEBUG_ON_SERIAL_PORT)
305 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
306 !else
307 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
308 !endif
309 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
310
311 [LibraryClasses.common.DXE_SMM_DRIVER]
312 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
313 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
314 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
315 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
316 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
317 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
318 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
319 !ifdef $(DEBUG_ON_SERIAL_PORT)
320 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
321 !else
322 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
323 !endif
324 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
325 !ifdef $(SOURCE_DEBUG_ENABLE)
326 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
327 !endif
328 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
329 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
330
331 [LibraryClasses.common.SMM_CORE]
332 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
333 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
334 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
335 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
336 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
337 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
338 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
339 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
340 !ifdef $(DEBUG_ON_SERIAL_PORT)
341 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
342 !else
343 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
344 !endif
345 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
346
347 ################################################################################
348 #
349 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
350 #
351 ################################################################################
352 [PcdsFeatureFlag]
353 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
354 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
355 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
356 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
357 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
358 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
359 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
360 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
361 !if $(SECURE_BOOT_ENABLE) == TRUE
362 gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|TRUE
363 !endif
364 !if $(SMM_REQUIRE) == TRUE
365 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
366 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
367 !endif
368
369 [PcdsFixedAtBuild]
370 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
371 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
372 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
373 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|6
374 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32
375 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
376 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
377 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
378
379 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
380
381 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
382
383 # DEBUG_INIT 0x00000001 // Initialization
384 # DEBUG_WARN 0x00000002 // Warnings
385 # DEBUG_LOAD 0x00000004 // Load events
386 # DEBUG_FS 0x00000008 // EFI File system
387 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
388 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
389 # DEBUG_INFO 0x00000040 // Informational debug messages
390 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
391 # DEBUG_VARIABLE 0x00000100 // Variable
392 # DEBUG_BM 0x00000400 // Boot Manager
393 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
394 # DEBUG_NET 0x00004000 // SNP Driver
395 # DEBUG_UNDI 0x00010000 // UNDI Driver
396 # DEBUG_LOADFILE 0x00020000 // LoadFile
397 # DEBUG_EVENT 0x00080000 // Event messages
398 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
399 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
400 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
401 # // significantly impact boot performance
402 # DEBUG_ERROR 0x80000000 // Error
403 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
404
405 !ifdef $(SOURCE_DEBUG_ENABLE)
406 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
407 !else
408 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
409 !endif
410
411 # This PCD is used to set the base address of the PCI express hierarchy. It
412 # is only consulted when OVMF runs on Q35. In that case it is programmed into
413 # the PCIEXBAR register.
414 #
415 # On Q35 machine types that QEMU intends to support in the long term, QEMU
416 # never lets the RAM below 4 GB exceed 2 GB.
417 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x80000000
418
419 !ifdef $(SOURCE_DEBUG_ENABLE)
420 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
421 !endif
422
423 !ifndef $(USE_OLD_SHELL)
424 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
425 !endif
426
427 !if $(SMM_REQUIRE) == TRUE
428 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
429 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
430 !endif
431
432 !if $(SECURE_BOOT_ENABLE) == TRUE
433 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
434 !endif
435
436 # IRQs 5, 9, 10, 11 are level-triggered
437 gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
438
439 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
440 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
441
442 ################################################################################
443 #
444 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
445 #
446 ################################################################################
447
448 [PcdsDynamicDefault]
449 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
450 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
451 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
452 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
453 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
454 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
455 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
456 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
457 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
458 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
459 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
460 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
461 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
462 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
463 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
464
465 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
466
467 # Set video resolution for text setup.
468 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
469 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
470
471 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
472 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
473 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
474
475 # Noexec settings for DXE.
476 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
478
479 ################################################################################
480 #
481 # Components Section - list of all EDK II Modules needed by this Platform.
482 #
483 ################################################################################
484 [Components]
485 OvmfPkg/ResetVector/ResetVector.inf
486
487 #
488 # SEC Phase modules
489 #
490 OvmfPkg/Sec/SecMain.inf {
491 <LibraryClasses>
492 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
493 }
494
495 #
496 # PEI Phase modules
497 #
498 MdeModulePkg/Core/Pei/PeiMain.inf
499 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
500 <LibraryClasses>
501 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
502 }
503 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
504 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
505 <LibraryClasses>
506 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
507 }
508
509 OvmfPkg/PlatformPei/PlatformPei.inf {
510 <LibraryClasses>
511 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
512 }
513 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
514 <LibraryClasses>
515 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
516 !if $(SMM_REQUIRE) == TRUE
517 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
518 !endif
519 }
520 !if $(SMM_REQUIRE) == TRUE
521 OvmfPkg/SmmAccess/SmmAccessPei.inf {
522 <LibraryClasses>
523 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
524 }
525 !endif
526
527 #
528 # DXE Phase modules
529 #
530 MdeModulePkg/Core/Dxe/DxeMain.inf {
531 <LibraryClasses>
532 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
533 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
534 }
535
536 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
537 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
538 <LibraryClasses>
539 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
540 }
541
542 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
543
544 !if $(SECURE_BOOT_ENABLE) == TRUE
545 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
546 <LibraryClasses>
547 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
548 }
549 !else
550 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
551 !endif
552
553 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
554 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
555 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
556 UefiCpuPkg/CpuDxe/CpuDxe.inf
557 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
558 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
559 <LibraryClasses>
560 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
561 }
562 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
563 <LibraryClasses>
564 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
565 }
566 PcAtChipsetPkg/KbcResetDxe/Reset.inf
567 MdeModulePkg/Universal/Metronome/Metronome.inf
568 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
569 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
570 <LibraryClasses>
571 !ifdef $(CSM_ENABLE)
572 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
573 NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
574 !endif
575 }
576 MdeModulePkg/Application/UiApp/UiApp.inf {
577 <LibraryClasses>
578 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
579 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
580 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
581 !ifdef $(CSM_ENABLE)
582 NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
583 NULL|IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
584 !endif
585 }
586 OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
587 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
588 OvmfPkg/Virtio10Dxe/Virtio10.inf
589 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
590 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
591 OvmfPkg/VirtioRngDxe/VirtioRng.inf
592 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
593 OvmfPkg/XenBusDxe/XenBusDxe.inf
594 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
595 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
596 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
597 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
598 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
599 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
600 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
601 <LibraryClasses>
602 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
603 }
604 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
605 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
606 <LibraryClasses>
607 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
608 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
609 }
610 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
611 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
612 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
613 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
614 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
615 FatPkg/EnhancedFatDxe/Fat.inf
616 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
617 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
618 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
619 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
620 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
621 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
622 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
623 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
624 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
625 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
626
627 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
628 <LibraryClasses>
629 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
630 }
631
632 #
633 # ISA Support
634 #
635 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
636 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
637 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
638 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
639 IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
640
641 #
642 # SMBIOS Support
643 #
644 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
645 <LibraryClasses>
646 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
647 }
648 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
649
650 #
651 # ACPI Support
652 #
653 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
654 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
655 OvmfPkg/AcpiTables/AcpiTables.inf
656 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
657 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
658
659 #
660 # Network Support
661 #
662 MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
663 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
664 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
665 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
666 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
667 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
668 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
669 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
670 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
671 !if $(NETWORK_IP6_ENABLE) == TRUE
672 NetworkPkg/Ip6Dxe/Ip6Dxe.inf
673 NetworkPkg/TcpDxe/TcpDxe.inf
674 NetworkPkg/Udp6Dxe/Udp6Dxe.inf
675 NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
676 NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
677 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
678 !if $(SECURE_BOOT_ENABLE) == TRUE
679 NetworkPkg/IScsiDxe/IScsiDxe.inf
680 !else
681 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
682 !endif
683 !else
684 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
685 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
686 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
687 !endif
688 !if $(HTTP_BOOT_ENABLE) == TRUE
689 NetworkPkg/DnsDxe/DnsDxe.inf
690 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
691 NetworkPkg/HttpDxe/HttpDxe.inf
692 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
693 !endif
694 OvmfPkg/VirtioNetDxe/VirtioNet.inf
695
696 #
697 # Usb Support
698 #
699 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
700 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
701 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
702 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
703 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
704 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
705
706 !ifdef $(CSM_ENABLE)
707 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
708 <LibraryClasses>
709 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
710 }
711 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
712 OvmfPkg/Csm/Csm16/Csm16.inf
713 !endif
714
715 !ifndef $(USE_OLD_SHELL)
716 ShellPkg/Application/Shell/Shell.inf {
717 <LibraryClasses>
718 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
719 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
720 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
721 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
722 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
723 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
724 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
725 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
726 !if $(NETWORK_IP6_ENABLE) == TRUE
727 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
728 !endif
729 NULL|ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
730 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
731 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
732 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
733 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
734 # SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
735 # SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
736 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
737
738 <PcdsFixedAtBuild>
739 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
740 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
741 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
742 }
743 !endif
744
745 !if $(SECURE_BOOT_ENABLE) == TRUE
746 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
747 !endif
748
749 OvmfPkg/PlatformDxe/Platform.inf
750
751 !if $(SMM_REQUIRE) == TRUE
752 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
753 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
754 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
755
756 #
757 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
758 #
759 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
760
761 #
762 # SMM_CORE
763 #
764 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
765
766 #
767 # Privileged drivers (DXE_SMM_DRIVER modules)
768 #
769 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
770 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
771 <LibraryClasses>
772 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
773 }
774 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
775 <LibraryClasses>
776 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
777 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
778 }
779
780 #
781 # Variable driver stack (SMM)
782 #
783 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
784 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
785 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
786 <LibraryClasses>
787 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
788 }
789 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
790
791 !else
792
793 #
794 # Variable driver stack (non-SMM)
795 #
796 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
797 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
798 <LibraryClasses>
799 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
800 }
801 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
802 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
803 <LibraryClasses>
804 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
805 }
806 !endif