OvmfPkgX64.dsc revision c40e1a0cc65315d3bbf370caece7daf539009e58
1## @file
2#  EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3#
4#  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
5#
6#  This program and the accompanying materials
7#  are licensed and made available under the terms and conditions of the BSD License
8#  which accompanies this distribution. The full text of the license may be found at
9#  http://opensource.org/licenses/bsd-license.php
10#
11#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13#
14##
15
16################################################################################
17#
18# Defines Section - statements that will be processed to create a Makefile.
19#
20################################################################################
21[Defines]
22  PLATFORM_NAME                  = Ovmf
23  PLATFORM_GUID                  = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
24  PLATFORM_VERSION               = 0.1
25  DSC_SPECIFICATION              = 0x00010005
26  OUTPUT_DIRECTORY               = Build/OvmfX64
27  SUPPORTED_ARCHITECTURES        = X64
28  BUILD_TARGETS                  = DEBUG|RELEASE
29  SKUID_IDENTIFIER               = DEFAULT
30  FLASH_DEFINITION               = OvmfPkg/OvmfPkgX64.fdf
31
32  #
33  # Defines for default states.  These can be changed on the command line.
34  # -D FLAG=VALUE
35  #
36  DEFINE SECURE_BOOT_ENABLE      = FALSE
37  DEFINE NETWORK_IP6_ENABLE      = FALSE
38  DEFINE HTTP_BOOT_ENABLE        = FALSE
39  DEFINE SMM_REQUIRE             = FALSE
40
41[BuildOptions]
42  GCC:*_UNIXGCC_*_CC_FLAGS             = -DMDEPKG_NDEBUG
43  GCC:RELEASE_*_*_CC_FLAGS             = -DMDEPKG_NDEBUG
44  INTEL:RELEASE_*_*_CC_FLAGS           = /D MDEPKG_NDEBUG
45  MSFT:RELEASE_*_*_CC_FLAGS            = /D MDEPKG_NDEBUG
46  GCC:*_*_*_CC_FLAGS                   = -mno-mmx -mno-sse
47!ifdef $(SOURCE_DEBUG_ENABLE)
48  MSFT:*_*_X64_GENFW_FLAGS  = --keepexceptiontable
49  GCC:*_*_X64_GENFW_FLAGS   = --keepexceptiontable
50  INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
51!endif
52
53[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
54  GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
55
56################################################################################
57#
58# SKU Identification section - list of all SKU IDs supported by this Platform.
59#
60################################################################################
61[SkuIds]
62  0|DEFAULT
63
64################################################################################
65#
66# Library Class section - list of all Library Classes needed by this Platform.
67#
68################################################################################
69[LibraryClasses]
70  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
71  TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
72  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
73  BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
74  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
75  SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
76  CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
77  PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
78  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
79  CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
80  UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
81  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
82  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
83  GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
84  CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
85  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
86  DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
87  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
88  PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
89  PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
90  IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
91  OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
92  SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
93  MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
94  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
95  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
96  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
97  UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
98  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
99  DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
100  NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
101  FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
102  UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
103  SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
104  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
105  IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
106  UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
107  DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
108  UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
109  SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
110  QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
111  VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
112  LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
113  LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
114  CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
115
116!ifdef $(SOURCE_DEBUG_ENABLE)
117  PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
118  DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
119!else
120  PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
121  DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
122!endif
123
124  ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
125  LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
126  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
127
128!if $(SECURE_BOOT_ENABLE) == TRUE
129  PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
130  IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
131  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
132  TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
133  AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
134!if $(NETWORK_IP6_ENABLE) == TRUE
135  TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
136!endif
137!else
138  TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
139  AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
140!endif
141  VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
142
143!if $(HTTP_BOOT_ENABLE) == TRUE
144  HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
145!endif
146
147  S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
148  SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
149  OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
150  XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
151
152[LibraryClasses.common]
153!if $(SECURE_BOOT_ENABLE) == TRUE
154  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
155!endif
156
157[LibraryClasses.common.SEC]
158  TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
159  QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
160!ifdef $(DEBUG_ON_SERIAL_PORT)
161  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
162!else
163  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
164!endif
165  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
166  ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
167!ifdef $(SOURCE_DEBUG_ENABLE)
168  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
169!endif
170  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
171  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
172  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
173  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
174  CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
175
176[LibraryClasses.common.PEI_CORE]
177  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
178  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
179  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
180  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
181  PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
182  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
183  OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
184  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
185!ifdef $(DEBUG_ON_SERIAL_PORT)
186  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
187!else
188  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
189!endif
190  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
191
192[LibraryClasses.common.PEIM]
193  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
194  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
195  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
196  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
197  PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
198  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
199  OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
200  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
201!ifdef $(DEBUG_ON_SERIAL_PORT)
202  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
203!else
204  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
205!endif
206  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
207  PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
208  ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
209!ifdef $(SOURCE_DEBUG_ENABLE)
210  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
211!endif
212
213[LibraryClasses.common.DXE_CORE]
214  HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
215  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
216  MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
217  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
218!ifdef $(DEBUG_ON_SERIAL_PORT)
219  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
220!else
221  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
222!endif
223  ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
224!ifdef $(SOURCE_DEBUG_ENABLE)
225  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
226!endif
227  CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
228  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
229
230[LibraryClasses.common.DXE_RUNTIME_DRIVER]
231  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
232  TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
233  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
234  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
235  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
236  ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
237!ifdef $(DEBUG_ON_SERIAL_PORT)
238  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
239!else
240  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
241!endif
242  UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
243!if $(SECURE_BOOT_ENABLE) == TRUE
244  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
245!endif
246
247[LibraryClasses.common.UEFI_DRIVER]
248  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
249  TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
250  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
251  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
252  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
253  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
254!ifdef $(DEBUG_ON_SERIAL_PORT)
255  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
256!else
257  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
258!endif
259  UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
260
261[LibraryClasses.common.DXE_DRIVER]
262  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
263  TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
264  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
265  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
266  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
267  UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
268!ifdef $(DEBUG_ON_SERIAL_PORT)
269  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
270!else
271  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
272!endif
273  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
274  IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
275  UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
276  DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
277  PlatformBdsLib|OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
278  CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
279  LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
280!ifdef $(SOURCE_DEBUG_ENABLE)
281  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
282!endif
283  QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
284
285[LibraryClasses.common.UEFI_APPLICATION]
286  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
287  TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
288  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
289  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
290!ifdef $(DEBUG_ON_SERIAL_PORT)
291  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
292!else
293  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
294!endif
295
296[LibraryClasses.common.DXE_SMM_DRIVER]
297  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
298  TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
299
300[LibraryClasses.common.SMM_CORE]
301  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
302  TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
303
304################################################################################
305#
306# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
307#
308################################################################################
309[PcdsFeatureFlag]
310  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
311  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
312  gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
313  gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
314  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
315  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
316!if $(SECURE_BOOT_ENABLE) == TRUE
317  gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|TRUE
318!endif
319!if $(SMM_REQUIRE) == TRUE
320  gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
321!endif
322
323[PcdsFixedAtBuild]
324  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
325  gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
326  gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
327  gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|6
328  gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32
329  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
330  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
331  gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
332
333  gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
334
335  gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
336  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
337!ifdef $(SOURCE_DEBUG_ENABLE)
338  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
339!else
340  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
341!endif
342
343!ifdef $(SOURCE_DEBUG_ENABLE)
344  gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
345!endif
346
347!ifndef $(USE_OLD_SHELL)
348  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
349!endif
350
351!if $(SECURE_BOOT_ENABLE) == TRUE
352  # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
353  gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
354  gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
355  gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
356!endif
357
358  # IRQs 5, 9, 10, 11 are level-triggered
359  gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
360
361################################################################################
362#
363# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
364#
365################################################################################
366
367[PcdsDynamicDefault]
368  gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
369  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
370  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
371  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
372  gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
373  gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
374  gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
375  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
376
377  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
378
379  # Set video resolution for text setup.
380  gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
381  gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
382
383  gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
384  gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
385  gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
386
387  # Noexec settings for DXE.
388  gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
389  gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
390
391################################################################################
392#
393# Components Section - list of all EDK II Modules needed by this Platform.
394#
395################################################################################
396[Components]
397  OvmfPkg/ResetVector/ResetVector.inf
398
399  #
400  # SEC Phase modules
401  #
402  OvmfPkg/Sec/SecMain.inf {
403    <LibraryClasses>
404      NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
405  }
406
407  #
408  # PEI Phase modules
409  #
410  MdeModulePkg/Core/Pei/PeiMain.inf
411  MdeModulePkg/Universal/PCD/Pei/Pcd.inf  {
412    <LibraryClasses>
413      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
414  }
415  IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
416  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
417    <LibraryClasses>
418      PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
419  }
420
421  OvmfPkg/PlatformPei/PlatformPei.inf {
422    <LibraryClasses>
423      PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
424  }
425  UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
426    <LibraryClasses>
427      PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
428  }
429!if $(SMM_REQUIRE) == TRUE
430  OvmfPkg/SmmAccess/SmmAccessPei.inf {
431    <LibraryClasses>
432      PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
433  }
434!endif
435
436  #
437  # DXE Phase modules
438  #
439  MdeModulePkg/Core/Dxe/DxeMain.inf {
440    <LibraryClasses>
441      NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
442      DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
443  }
444
445  IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
446  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf  {
447   <LibraryClasses>
448      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
449  }
450
451  MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
452
453!if $(SECURE_BOOT_ENABLE) == TRUE
454  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
455    <LibraryClasses>
456      NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
457	}
458!else
459  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
460!endif
461
462  MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
463  PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
464  UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
465  UefiCpuPkg/CpuDxe/CpuDxe.inf
466  PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
467  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
468  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
469    <LibraryClasses>
470      PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
471  }
472  PcAtChipsetPkg/KbcResetDxe/Reset.inf
473  MdeModulePkg/Universal/Metronome/Metronome.inf
474  PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
475  IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
476    <LibraryClasses>
477!ifdef $(CSM_ENABLE)
478      NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
479!endif
480  }
481
482  OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
483  OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
484  OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
485  OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
486  OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
487  OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
488  OvmfPkg/XenBusDxe/XenBusDxe.inf
489  OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
490  OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
491    <LibraryClasses>
492      PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
493  }
494  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
495  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
496    <LibraryClasses>
497      NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
498  }
499  MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
500  MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
501  MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
502  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
503  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
504  MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
505    <LibraryClasses>
506      PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
507  }
508  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
509  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
510    <LibraryClasses>
511      DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
512      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
513  }
514  MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
515  MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
516  MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
517  MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
518  MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
519  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
520  OvmfPkg/SataControllerDxe/SataControllerDxe.inf
521  MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
522  MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
523  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
524  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
525  MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
526  MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
527
528  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
529    <LibraryClasses>
530      BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
531  }
532
533  #
534  # ISA Support
535  #
536  PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
537  IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
538  IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
539  IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
540  IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
541
542  #
543  # SMBIOS Support
544  #
545  MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
546    <LibraryClasses>
547      NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
548  }
549  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
550
551  #
552  # ACPI Support
553  #
554  MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
555  OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
556  OvmfPkg/AcpiTables/AcpiTables.inf
557  OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
558  MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
559  MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
560
561  #
562  # Network Support
563  #
564  MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
565  MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
566  MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
567  MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
568  MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
569  MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
570  MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
571  MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
572  MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
573!if $(NETWORK_IP6_ENABLE) == TRUE
574  NetworkPkg/Ip6Dxe/Ip6Dxe.inf
575  NetworkPkg/TcpDxe/TcpDxe.inf
576  NetworkPkg/Udp6Dxe/Udp6Dxe.inf
577  NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
578  NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
579  NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
580!if $(SECURE_BOOT_ENABLE) == TRUE
581  NetworkPkg/IScsiDxe/IScsiDxe.inf
582!else
583  MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
584!endif
585!else
586  MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
587  MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
588  MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
589!endif
590!if $(HTTP_BOOT_ENABLE) == TRUE
591  NetworkPkg/DnsDxe/DnsDxe.inf
592  NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
593  NetworkPkg/HttpDxe/HttpDxe.inf
594  NetworkPkg/HttpBootDxe/HttpBootDxe.inf
595!endif
596  OvmfPkg/VirtioNetDxe/VirtioNet.inf
597
598  #
599  # Usb Support
600  #
601  MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
602  MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
603  MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
604  MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
605  MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
606  MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
607
608!ifdef $(CSM_ENABLE)
609  IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
610    <LibraryClasses>
611      PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
612  }
613  IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
614  OvmfPkg/Csm/Csm16/Csm16.inf
615!endif
616
617!ifndef $(USE_OLD_SHELL)
618  ShellPkg/Application/Shell/Shell.inf {
619    <LibraryClasses>
620      ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
621      NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
622      NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
623      NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
624      NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
625      NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
626      NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
627      NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
628      NULL|ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
629      HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
630      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
631      FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
632      SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
633      PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
634#      SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
635#      SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
636      BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
637
638    <PcdsFixedAtBuild>
639      gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
640      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
641      gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
642  }
643!endif
644
645!if $(SECURE_BOOT_ENABLE) == TRUE
646  SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
647!endif
648
649  OvmfPkg/PlatformDxe/Platform.inf
650
651!if $(SMM_REQUIRE) == TRUE
652  OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
653  OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
654!endif
655