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