OvmfPkgX64.dsc revision 53de44aadea62587682964e358ca0b2274e39079
1## @file
2#  EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3#
4#  Copyright (c) 2006 - 2012, 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
38[BuildOptions]
39  GCC:*_UNIXGCC_*_CC_FLAGS             = -DMDEPKG_NDEBUG
40  GCC:RELEASE_*_*_CC_FLAGS             = -DMDEPKG_NDEBUG
41  INTEL:RELEASE_*_*_CC_FLAGS           = /D MDEPKG_NDEBUG
42  MSFT:RELEASE_*_*_CC_FLAGS            = /D MDEPKG_NDEBUG
43  GCC:*_*_*_CC_FLAGS                   = -mno-mmx -mno-sse
44
45################################################################################
46#
47# SKU Identification section - list of all SKU IDs supported by this Platform.
48#
49################################################################################
50[SkuIds]
51  0|DEFAULT
52
53################################################################################
54#
55# Library Class section - list of all Library Classes needed by this Platform.
56#
57################################################################################
58[LibraryClasses]
59  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
60  TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
61  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
62  BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
63  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
64  SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
65  CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
66  PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
67  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
68  CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
69  UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
70  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
71  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
72  GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
73  CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
74  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
75  DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
76  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
77  PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
78  PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
79  IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
80  OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
81  SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
82  MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
83  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
84  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
85  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
86  UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
87  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
88  DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
89  NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
90  FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
91  UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
92  SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
93  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
94  IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
95  UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
96  DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
97  UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
98  SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
99  QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
100  LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
101
102!ifdef $(SOURCE_DEBUG_ENABLE)
103  PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
104  DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
105!else
106  PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
107  DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
108!endif
109
110  ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
111  LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
112  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
113  CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
114
115!if $(SECURE_BOOT_ENABLE) == TRUE
116  PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
117  IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
118  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
119!endif
120
121[LibraryClasses.common]
122!if $(SECURE_BOOT_ENABLE) == TRUE
123  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
124!endif
125
126[LibraryClasses.common.SEC]
127!ifdef $(DEBUG_ON_SERIAL_PORT)
128  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
129!else
130  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
131!endif
132  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
133  ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
134!ifdef $(SOURCE_DEBUG_ENABLE)
135  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
136!endif
137  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
138  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
139  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
140  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
141
142[LibraryClasses.common.PEI_CORE]
143  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
144  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
145  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
146  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
147  PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
148  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
149  OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
150  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
151!ifdef $(DEBUG_ON_SERIAL_PORT)
152  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
153!else
154  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
155!endif
156  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
157
158[LibraryClasses.common.PEIM]
159  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
160  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
161  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
162  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
163  PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
164  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
165  OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
166  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
167!ifdef $(DEBUG_ON_SERIAL_PORT)
168  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
169!else
170  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
171!endif
172  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
173  PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
174  ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
175!ifdef $(SOURCE_DEBUG_ENABLE)
176  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
177!endif
178
179[LibraryClasses.common.DXE_CORE]
180  HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
181  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
182  MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
183  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
184!ifdef $(DEBUG_ON_SERIAL_PORT)
185  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
186!else
187  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
188!endif
189  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
190  ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
191!ifdef $(SOURCE_DEBUG_ENABLE)
192  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
193!endif
194
195[LibraryClasses.common.DXE_RUNTIME_DRIVER]
196  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
197  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
198  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
199  ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
200!ifdef $(DEBUG_ON_SERIAL_PORT)
201  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
202!else
203  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
204!endif
205  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
206  UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
207!if $(SECURE_BOOT_ENABLE) == TRUE
208  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
209!endif
210
211[LibraryClasses.common.UEFI_DRIVER]
212  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
213  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
214  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
215  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
216!ifdef $(DEBUG_ON_SERIAL_PORT)
217  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
218!else
219  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
220!endif
221  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
222  UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
223
224[LibraryClasses.common.DXE_DRIVER]
225  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
226  PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
227  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
228  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
229  UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
230!ifdef $(DEBUG_ON_SERIAL_PORT)
231  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
232!else
233  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
234!endif
235  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
236  IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
237  UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
238  DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
239  PlatformBdsLib|OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
240
241[LibraryClasses.common.UEFI_APPLICATION]
242  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
243  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
244!ifdef $(DEBUG_ON_SERIAL_PORT)
245  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
246!else
247  DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
248!endif
249
250################################################################################
251#
252# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
253#
254################################################################################
255[PcdsFeatureFlag]
256  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
257  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
258  gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
259  gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
260  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
261  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
262!if $(SECURE_BOOT_ENABLE) == TRUE
263  gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|TRUE
264!endif
265
266[PcdsFixedAtBuild]
267  gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
268  gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
269  gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
270  gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|6
271  gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32
272!if $(SECURE_BOOT_ENABLE) == TRUE
273  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
274!else
275  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x400
276!endif
277  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
278  gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xc000
279  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0xc000
280  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x2000
281  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x10000
282
283  gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
284
285  gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
286  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
287!ifdef $(SOURCE_DEBUG_ENABLE)
288  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
289!else
290  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
291!endif
292
293!ifdef $(SOURCE_DEBUG_ENABLE)
294  gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
295!endif
296
297!if $(BUILD_NEW_SHELL)
298  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
299!else
300!if $(USE_NEW_SHELL)
301  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
302!endif
303!endif
304
305!if $(SECURE_BOOT_ENABLE) == TRUE
306  # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
307  gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x05
308  gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x05
309  gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x05
310!endif
311
312################################################################################
313#
314# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
315#
316################################################################################
317
318[PcdsDynamicDefault]
319  gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
320  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
321  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
322  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
323
324
325################################################################################
326#
327# Components Section - list of all EDK II Modules needed by this Platform.
328#
329################################################################################
330[Components]
331  #
332  # SEC Phase modules
333  #
334  OvmfPkg/Sec/SecMain.inf {
335    <LibraryClasses>
336      NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
337  }
338
339  #
340  # PEI Phase modules
341  #
342  MdeModulePkg/Core/Pei/PeiMain.inf
343  MdeModulePkg/Universal/PCD/Pei/Pcd.inf  {
344    <LibraryClasses>
345      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
346  }
347  IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
348  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
349
350  OvmfPkg/PlatformPei/PlatformPei.inf {
351    <LibraryClasses>
352      PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
353  }
354
355  #
356  # DXE Phase modules
357  #
358  MdeModulePkg/Core/Dxe/DxeMain.inf {
359    <LibraryClasses>
360      NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
361  }
362
363  IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
364  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf  {
365   <LibraryClasses>
366      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
367  }
368
369  MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
370
371!if $(SECURE_BOOT_ENABLE) == TRUE
372  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
373    <LibraryClasses>
374      NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
375	}
376!else
377  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
378!endif
379
380  MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
381  PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
382  UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
383  UefiCpuPkg/CpuDxe/CpuDxe.inf
384  PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
385  PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
386  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
387  PcAtChipsetPkg/KbcResetDxe/Reset.inf
388  MdeModulePkg/Universal/Metronome/Metronome.inf {
389    <LibraryClasses>
390      TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
391  }
392
393  PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {
394    <LibraryClasses>
395      TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
396  }
397
398  IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
399    <LibraryClasses>
400      TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
401!ifdef $(CSM_ENABLE)
402      NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
403!endif
404  }
405
406  OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
407  OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
408    <LibraryClasses>
409      PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
410  }
411  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
412  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
413  MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
414  MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
415  MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
416  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
417  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
418  MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
419  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
420  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
421  MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
422  MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
423  MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
424  MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
425  MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
426  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
427  IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
428  PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
429  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
430  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
431  MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
432
433  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
434    <LibraryClasses>
435      BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
436  }
437
438  #
439  # ISA Support
440  #
441  PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
442  IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
443  IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
444  IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
445  IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
446
447  #
448  # SMBIOS Support
449  #
450  MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
451  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
452
453  #
454  # ACPI Support
455  #
456  MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
457  OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
458  OvmfPkg/AcpiTables/AcpiTables.inf
459
460  #
461  # Network Support
462  #
463!if $(NETWORK_ENABLE)
464  MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
465  MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
466  MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
467  MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
468  MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
469  MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
470  MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
471  MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
472  MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
473  MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
474  MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
475  MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
476  MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
477!endif
478
479  #
480  # Usb Support
481  #
482  MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
483  MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
484  MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
485  MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
486  MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
487
488!ifdef $(CSM_ENABLE)
489  IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
490  IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
491  OvmfPkg/Csm/Csm16/Csm16.inf
492!endif
493
494!if $(BUILD_NEW_SHELL)
495  ShellPkg/Application/Shell/Shell.inf {
496    <LibraryClasses>
497      ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
498      NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
499      NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
500      NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
501      NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
502      NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
503      NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
504      NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
505      HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
506      FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
507      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
508      SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf
509      PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
510      PathLib|ShellPkg/Library/BasePathLib/BasePathLib.inf
511#      SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
512#      SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
513
514    <PcdsFixedAtBuild>
515      gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
516      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
517      gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
518  }
519!endif
520
521!if $(SECURE_BOOT_ENABLE) == TRUE
522  SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf {
523    <LibraryClasses>
524      BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
525      OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
526  }
527  SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
528!endif
529