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