]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Bhyve/BhyveX64.dsc
OvmfPkg/Bhyve: Fix various style issues
[mirror_edk2.git] / OvmfPkg / Bhyve / BhyveX64.dsc
1 #
2 # Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>
3 # Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
4 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
5 # Copyright (c) 2014, Pluribus Networks, Inc.
6 #
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 #
9 ##
10
11 ################################################################################
12 #
13 # Defines Section - statements that will be processed to create a Makefile.
14 #
15 ################################################################################
16 [Defines]
17 PLATFORM_NAME = Bhyve
18 PLATFORM_GUID = 562b76ee-ceb2-4f4f-adfe-a4c8dc46e4ff
19 PLATFORM_VERSION = 0.1
20 DSC_SPECIFICATION = 1.30
21 OUTPUT_DIRECTORY = Build/BhyveX64
22 SUPPORTED_ARCHITECTURES = X64
23 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
24 SKUID_IDENTIFIER = DEFAULT
25 FLASH_DEFINITION = OvmfPkg/Bhyve/BhyveX64.fdf
26
27 #
28 # Defines for default states. These can be changed on the command line.
29 # -D FLAG=VALUE
30 #
31 DEFINE SECURE_BOOT_ENABLE = FALSE
32 DEFINE SMM_REQUIRE = FALSE
33 DEFINE SOURCE_DEBUG_ENABLE = FALSE
34 DEFINE TPM_ENABLE = FALSE
35 DEFINE TPM_CONFIG_ENABLE = FALSE
36
37 #
38 # Network definition
39 #
40 DEFINE NETWORK_TLS_ENABLE = FALSE
41 DEFINE NETWORK_IP6_ENABLE = FALSE
42 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
43 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
44 DEFINE NETWORK_ISCSI_ENABLE = TRUE
45
46 !include NetworkPkg/NetworkDefines.dsc.inc
47
48 #
49 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
50 # one of the supported values, in place of any of the convenience macros, is
51 # permitted.
52 #
53 !ifdef $(FD_SIZE_1MB)
54 DEFINE FD_SIZE_IN_KB = 1024
55 !else
56 !ifdef $(FD_SIZE_2MB)
57 DEFINE FD_SIZE_IN_KB = 2048
58 !else
59 !ifdef $(FD_SIZE_4MB)
60 DEFINE FD_SIZE_IN_KB = 4096
61 !else
62 DEFINE FD_SIZE_IN_KB = 4096
63 !endif
64 !endif
65 !endif
66
67 [BuildOptions]
68 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
69 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
70 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
71 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
72 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
73 !endif
74 !if $(SOURCE_DEBUG_ENABLE) == TRUE
75 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
76 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
77 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
78 !endif
79
80 #
81 # Disable deprecated APIs.
82 #
83 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
84 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
85 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
86
87 !include NetworkPkg/NetworkBuildOptions.dsc.inc
88
89 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
90 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
91 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
92 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
93 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
94
95 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
96 # protection of DXE_SMM_DRIVER/SMM_CORE modules
97 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
98 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
99 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
100 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
101 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
102
103 ################################################################################
104 #
105 # SKU Identification section - list of all SKU IDs supported by this Platform.
106 #
107 ################################################################################
108 [SkuIds]
109 0|DEFAULT
110
111 ################################################################################
112 #
113 # Library Class section - list of all Library Classes needed by this Platform.
114 #
115 ################################################################################
116 [LibraryClasses]
117 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
118 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLibBhyve.inf
119 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
120 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
121 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
122 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
123 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
124 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
125 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
126 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
127 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
128 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
129 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
130 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
131 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
132 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
133 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
134 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
135 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
136 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
137 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
138 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
139 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
140 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
141 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
142 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
143 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
144 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
145 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
146 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
147 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
148 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
149 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
150 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
151 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
152 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
153 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
154 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
155 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
156 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
157 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
158 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
159 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
160 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
161 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
162 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibNull.inf
163 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf
164 BhyveFwCtlLib|OvmfPkg/Library/BhyveFwCtlLib/BhyveFwCtlLib.inf
165 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
166 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
167 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
168
169 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
170 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
171
172 !if $(SOURCE_DEBUG_ENABLE) == TRUE
173 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
174 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
175 !else
176 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
177 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
178 !endif
179
180 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf
181 LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
182 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
183 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
184
185 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
186 !if $(NETWORK_TLS_ENABLE) == TRUE
187 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
188 !else
189 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
190 !endif
191 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
192
193 !if $(SECURE_BOOT_ENABLE) == TRUE
194 PlatformSecureLib|OvmfPkg/Bhyve/Library/PlatformSecureLib/PlatformSecureLib.inf
195 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
196 !else
197 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
198 !endif
199 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
200 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
201 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
202
203 #
204 # Network libraries
205 #
206 !include NetworkPkg/NetworkLibs.dsc.inc
207
208 !if $(NETWORK_TLS_ENABLE) == TRUE
209 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
210 !endif
211
212 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
213 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
214 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
215 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
216 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
217 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
218
219
220 !if $(TPM_ENABLE) == TRUE
221 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
222 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
223 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
224 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
225 !else
226 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
227 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
228 !endif
229
230 [LibraryClasses.common]
231 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
232 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
233
234 [LibraryClasses.common.SEC]
235 !ifdef $(DEBUG_ON_SERIAL_PORT)
236 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
237 !else
238 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
239 !endif
240 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
241 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
242 !if $(SOURCE_DEBUG_ENABLE) == TRUE
243 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
244 !endif
245 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
246 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
247 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
248 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
249 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
250
251 [LibraryClasses.common.PEI_CORE]
252 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
253 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
254 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
255 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
256 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
257 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
258 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
259 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
260 !ifdef $(DEBUG_ON_SERIAL_PORT)
261 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
262 !else
263 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
264 !endif
265 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
266
267 [LibraryClasses.common.PEIM]
268 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
269 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
270 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
271 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
272 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
273 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
274 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
275 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
276 !ifdef $(DEBUG_ON_SERIAL_PORT)
277 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
278 !else
279 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
280 !endif
281 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
282 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
283 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
284 !if $(SOURCE_DEBUG_ENABLE) == TRUE
285 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
286 !endif
287 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
288 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
289
290 !if $(TPM_ENABLE) == TRUE
291 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
292 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
293 !endif
294
295 [LibraryClasses.common.DXE_CORE]
296 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
297 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
298 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
299 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
300 !ifdef $(DEBUG_ON_SERIAL_PORT)
301 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
302 !else
303 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
304 !endif
305 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
306 !if $(SOURCE_DEBUG_ENABLE) == TRUE
307 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
308 !endif
309 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
310 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
311
312 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
313 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
314 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
315 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
316 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
317 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
318 !ifdef $(DEBUG_ON_SERIAL_PORT)
319 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
320 !else
321 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
322 !endif
323 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
324 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
325 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
326 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
327
328 [LibraryClasses.common.UEFI_DRIVER]
329 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
330 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
331 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
332 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
333 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
334 !ifdef $(DEBUG_ON_SERIAL_PORT)
335 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
336 !else
337 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
338 !endif
339 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
340 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
341
342 [LibraryClasses.common.DXE_DRIVER]
343 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
344 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
345 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
346 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
347 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
348 !ifdef $(DEBUG_ON_SERIAL_PORT)
349 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
350 !else
351 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
352 !endif
353 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibBhyve/PlatformBootManagerLibBhyve.inf
354 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
355 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
356 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
357 !if $(SOURCE_DEBUG_ENABLE) == TRUE
358 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
359 !endif
360 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
361 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
362 !if $(TPM_ENABLE) == TRUE
363 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
364 !endif
365
366 [LibraryClasses.common.UEFI_APPLICATION]
367 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
368 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
369 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
370 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
371 !ifdef $(DEBUG_ON_SERIAL_PORT)
372 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
373 !else
374 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
375 !endif
376 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
377
378 [LibraryClasses.common.DXE_SMM_DRIVER]
379 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
380 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
381 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
382 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
383 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
384 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
385 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
386 !ifdef $(DEBUG_ON_SERIAL_PORT)
387 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
388 !else
389 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
390 !endif
391 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
392 !if $(SOURCE_DEBUG_ENABLE) == TRUE
393 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
394 !endif
395 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
396 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
397
398 [LibraryClasses.common.SMM_CORE]
399 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
400 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
401 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
402 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
403 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
404 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
405 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
406 !ifdef $(DEBUG_ON_SERIAL_PORT)
407 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
408 !else
409 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
410 !endif
411 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
412
413 ################################################################################
414 #
415 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
416 #
417 ################################################################################
418 [PcdsFeatureFlag]
419 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
420 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
421 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
422 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
423 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
424 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
425
426 [PcdsFixedAtBuild]
427 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
428 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
429 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
430 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
431 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
432 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
433 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
434 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
435 !if $(NETWORK_TLS_ENABLE) == FALSE
436 # match PcdFlashNvStorageVariableSize purely for convenience
437 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
438 !endif
439 !endif
440 !if $(FD_SIZE_IN_KB) == 4096
441 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
442 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
443 !if $(NETWORK_TLS_ENABLE) == FALSE
444 # match PcdFlashNvStorageVariableSize purely for convenience
445 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
446 !endif
447 !endif
448 !if $(NETWORK_TLS_ENABLE) == TRUE
449 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
450 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
451 !endif
452
453 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
454
455 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
456
457 # DEBUG_INIT 0x00000001 // Initialization
458 # DEBUG_WARN 0x00000002 // Warnings
459 # DEBUG_LOAD 0x00000004 // Load events
460 # DEBUG_FS 0x00000008 // EFI File system
461 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
462 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
463 # DEBUG_INFO 0x00000040 // Informational debug messages
464 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
465 # DEBUG_VARIABLE 0x00000100 // Variable
466 # DEBUG_BM 0x00000400 // Boot Manager
467 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
468 # DEBUG_NET 0x00004000 // SNP Driver
469 # DEBUG_UNDI 0x00010000 // UNDI Driver
470 # DEBUG_LOADFILE 0x00020000 // LoadFile
471 # DEBUG_EVENT 0x00080000 // Event messages
472 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
473 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
474 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
475 # // significantly impact boot performance
476 # DEBUG_ERROR 0x80000000 // Error
477 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
478
479 !if $(SOURCE_DEBUG_ENABLE) == TRUE
480 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
481 !else
482 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
483 !endif
484
485 # This PCD is used to set the base address of the PCI express hierarchy. It
486 # is only consulted when OVMF runs on Q35. In that case it is programmed into
487 # the PCIEXBAR register.
488 #
489 # On Q35 machine types that QEMU intends to support in the long term, QEMU
490 # never lets the RAM below 4 GB exceed 2816 MB.
491 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
492
493 !if $(SOURCE_DEBUG_ENABLE) == TRUE
494 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
495 !endif
496
497 #
498 # Network Pcds
499 #
500 !include NetworkPkg/NetworkPcds.dsc.inc
501
502 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
503 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
504
505 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|FALSE
506
507 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"BHYVE"
508 gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort|0x2F8
509
510 ################################################################################
511 #
512 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
513 #
514 ################################################################################
515
516 [PcdsDynamicDefault]
517 # only set when
518 # ($(SMM_REQUIRE) == FALSE)
519 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
520
521 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
522 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
523 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
524 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
525 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
526 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
527 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
528 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
529 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
530 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
531 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
532 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
533 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
534 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
535
536 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
537
538 # Set video resolution for text setup.
539 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
540 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
541
542 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
543 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
544 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
545
546 # Noexec settings for DXE.
547 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
548
549 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
550 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
551 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000
552
553 # Set memory encryption mask
554 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
555
556 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
557
558 !if $(TPM_ENABLE) == TRUE
559 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
560 !endif
561
562 # MdeModulePkg resolution sets up the system display resolution
563 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
564 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
565 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
566 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
567
568 [PcdsDynamicHii]
569 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
570 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
571 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
572 !endif
573
574 ################################################################################
575 #
576 # Components Section - list of all EDK II Modules needed by this Platform.
577 #
578 ################################################################################
579 [Components]
580 OvmfPkg/Bhyve/ResetVector/ResetVector.inf
581
582 #
583 # SEC Phase modules
584 #
585 OvmfPkg/Sec/SecMain.inf {
586 <LibraryClasses>
587 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
588 }
589
590 #
591 # PEI Phase modules
592 #
593 MdeModulePkg/Core/Pei/PeiMain.inf
594 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
595 <LibraryClasses>
596 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
597 }
598 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
599 <LibraryClasses>
600 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
601 }
602 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
603 <LibraryClasses>
604 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
605 }
606 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
607
608 OvmfPkg/Bhyve/PlatformPei/PlatformPei.inf
609 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
610 <LibraryClasses>
611 }
612
613 !if $(TPM_ENABLE) == TRUE
614 OvmfPkg/Bhyve/Tcg/Tcg2Config/Tcg2ConfigPei.inf
615 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
616 <LibraryClasses>
617 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
618 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
619 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
620 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
621 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
622 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
623 }
624 !endif
625
626 #
627 # DXE Phase modules
628 #
629 MdeModulePkg/Core/Dxe/DxeMain.inf {
630 <LibraryClasses>
631 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
632 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
633 }
634
635 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
636 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
637 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
638 <LibraryClasses>
639 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
640 }
641
642 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
643
644 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
645 <LibraryClasses>
646 !if $(SECURE_BOOT_ENABLE) == TRUE
647 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
648 !endif
649 !if $(TPM_ENABLE) == TRUE
650 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
651 !endif
652 }
653
654 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
655 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
656 UefiCpuPkg/CpuDxe/CpuDxe.inf
657 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
658 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
659 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
660 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
661 <LibraryClasses>
662 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
663 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
664 }
665 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
666 <LibraryClasses>
667 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
668 }
669 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
670 MdeModulePkg/Universal/Metronome/Metronome.inf
671 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
672 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
673 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
674 <LibraryClasses>
675 !ifdef $(CSM_ENABLE)
676 NULL|OvmfPkg/Bhyve/Csm/CsmSupportLib/CsmSupportLib.inf
677 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
678 !endif
679 }
680 MdeModulePkg/Logo/LogoDxe.inf
681 MdeModulePkg/Application/UiApp/UiApp.inf {
682 <LibraryClasses>
683 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
684 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
685 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
686 !ifdef $(CSM_ENABLE)
687 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
688 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
689 !endif
690 }
691 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
692 OvmfPkg/Virtio10Dxe/Virtio10.inf
693 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
694 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
695 OvmfPkg/VirtioRngDxe/VirtioRng.inf
696 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
697 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
698 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
699 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
700 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
701 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
702 <LibraryClasses>
703 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
704 }
705 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
706 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
707 <LibraryClasses>
708 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
709 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
710 }
711 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
712 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
713 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
714 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
715 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
716 FatPkg/EnhancedFatDxe/Fat.inf
717 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
718 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
719 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
720 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
721 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
722 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
723 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
724 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
725 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
726 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
727 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
728
729 OvmfPkg/Bhyve/BhyveRfbDxe/BhyveRfbDxe.inf {
730 <LibraryClasses>
731 BltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
732 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
733 }
734
735 #
736 # ISA Support
737 #
738 OvmfPkg/SioBusDxe/SioBusDxe.inf
739 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
740 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
741 MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
742
743 #
744 # SMBIOS Support
745 #
746 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
747 OvmfPkg/Bhyve/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
748
749 #
750 # ACPI Support
751 #
752 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
753 OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf
754 OvmfPkg/Bhyve/AcpiTables/AcpiTables.inf
755 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
756 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
757 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
758
759 #
760 # Network Support
761 #
762 !include NetworkPkg/NetworkComponents.dsc.inc
763
764 !if $(NETWORK_TLS_ENABLE) == TRUE
765 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
766 <LibraryClasses>
767 NULL|OvmfPkg/Bhyve/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
768 }
769 !endif
770 OvmfPkg/VirtioNetDxe/VirtioNet.inf
771
772 !ifdef $(CSM_ENABLE)
773 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
774 <LibraryClasses>
775 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
776 }
777 !endif
778 # OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
779 !ifdef $(CSM_ENABLE)
780 OvmfPkg/Bhyve/Csm/BhyveCsm16/BhyveCsm16.inf
781 !endif
782
783 !if $(TOOL_CHAIN_TAG) != "XCODE5"
784 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
785 <PcdsFixedAtBuild>
786 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
787 }
788 !endif
789 ShellPkg/Application/Shell/Shell.inf {
790 <LibraryClasses>
791 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
792 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
793 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
794 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
795 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
796 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
797 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
798 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
799 !if $(NETWORK_IP6_ENABLE) == TRUE
800 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
801 !endif
802 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
803 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
804 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
805
806 <PcdsFixedAtBuild>
807 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
808 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
809 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
810 }
811
812 !if $(SECURE_BOOT_ENABLE) == TRUE
813 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
814 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
815 !endif
816
817 OvmfPkg/PlatformDxe/Platform.inf
818 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
819 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
820
821
822 #
823 # Variable driver stack (non-SMM)
824 #
825 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
826 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
827 <LibraryClasses>
828 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
829 }
830 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
831 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
832 <LibraryClasses>
833 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
834 }
835
836
837 #
838 # TPM support
839 #
840 !if $(TPM_ENABLE) == TRUE
841 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
842 <LibraryClasses>
843 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
844 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
845 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
846 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
847 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
848 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
849 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
850 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
851 }
852 !if $(TPM_CONFIG_ENABLE) == TRUE
853 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
854 !endif
855 !endif