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