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