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