OvmfPkgX64.dsc 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
  3. #
  4. # Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
  5. # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
  6. # Copyright (c) Microsoft Corporation.
  7. #
  8. # SPDX-License-Identifier: BSD-2-Clause-Patent
  9. #
  10. ##
  11. ################################################################################
  12. #
  13. # Defines Section - statements that will be processed to create a Makefile.
  14. #
  15. ################################################################################
  16. [Defines]
  17. PLATFORM_NAME = Ovmf
  18. PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
  19. PLATFORM_VERSION = 0.1
  20. DSC_SPECIFICATION = 0x00010005
  21. OUTPUT_DIRECTORY = Build/OvmfX64
  22. SUPPORTED_ARCHITECTURES = X64
  23. BUILD_TARGETS = NOOPT|DEBUG|RELEASE
  24. SKUID_IDENTIFIER = DEFAULT
  25. FLASH_DEFINITION = OvmfPkg/OvmfPkgX64.fdf
  26. #
  27. # Defines for default states. These can be changed on the command line.
  28. # -D FLAG=VALUE
  29. #
  30. DEFINE SECURE_BOOT_ENABLE = FALSE
  31. DEFINE SMM_REQUIRE = FALSE
  32. DEFINE SOURCE_DEBUG_ENABLE = FALSE
  33. !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
  34. #
  35. # Shell can be useful for debugging but should not be enabled for production
  36. #
  37. DEFINE BUILD_SHELL = TRUE
  38. #
  39. # Network definition
  40. #
  41. DEFINE NETWORK_TLS_ENABLE = FALSE
  42. DEFINE NETWORK_IP6_ENABLE = FALSE
  43. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  44. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  45. DEFINE NETWORK_ISCSI_ENABLE = TRUE
  46. !include NetworkPkg/NetworkDefines.dsc.inc
  47. #
  48. # Device drivers
  49. #
  50. DEFINE PVSCSI_ENABLE = FALSE
  51. DEFINE MPT_SCSI_ENABLE = FALSE
  52. DEFINE LSI_SCSI_ENABLE = FALSE
  53. #
  54. # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
  55. # one of the supported values, in place of any of the convenience macros, is
  56. # permitted.
  57. #
  58. !ifdef $(FD_SIZE_1MB)
  59. DEFINE FD_SIZE_IN_KB = 1024
  60. !else
  61. !ifdef $(FD_SIZE_2MB)
  62. DEFINE FD_SIZE_IN_KB = 2048
  63. !else
  64. !ifdef $(FD_SIZE_4MB)
  65. DEFINE FD_SIZE_IN_KB = 4096
  66. !else
  67. DEFINE FD_SIZE_IN_KB = 4096
  68. !endif
  69. !endif
  70. !endif
  71. #
  72. # Define the FILE_GUID of CpuMpPei/CpuDxe for unique-processor version.
  73. #
  74. DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
  75. DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
  76. [BuildOptions]
  77. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  78. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  79. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  80. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
  81. GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
  82. !endif
  83. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  84. MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  85. GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  86. INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  87. !endif
  88. RELEASE_*_*_GENFW_FLAGS = --zero
  89. #
  90. # Disable deprecated APIs.
  91. #
  92. MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  93. INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  94. GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  95. #
  96. # Add TDX_GUEST_SUPPORTED
  97. #
  98. MSFT:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
  99. INTEL:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
  100. GCC:*_*_*_CC_FLAGS = -D TDX_GUEST_SUPPORTED
  101. #
  102. # SECURE_BOOT_FEATURE_ENABLED
  103. #
  104. !if $(SECURE_BOOT_ENABLE) == TRUE
  105. MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  106. INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  107. GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
  108. !endif
  109. !include NetworkPkg/NetworkBuildOptions.dsc.inc
  110. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  111. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  112. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  113. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  114. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  115. # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
  116. # protection of DXE_SMM_DRIVER/SMM_CORE modules
  117. [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
  118. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  119. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  120. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  121. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  122. ################################################################################
  123. #
  124. # SKU Identification section - list of all SKU IDs supported by this Platform.
  125. #
  126. ################################################################################
  127. [SkuIds]
  128. 0|DEFAULT
  129. ################################################################################
  130. #
  131. # Library Class section - list of all Library Classes needed by this Platform.
  132. #
  133. ################################################################################
  134. !include MdePkg/MdeLibs.dsc.inc
  135. [LibraryClasses]
  136. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  137. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
  138. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
  139. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  140. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  141. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  142. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  143. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  144. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  145. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  146. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  147. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  148. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  149. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  150. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  151. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  152. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  153. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  154. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  155. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  156. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  157. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  158. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  159. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  160. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  161. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  162. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  163. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  164. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  165. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  166. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  167. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  168. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  169. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  170. SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
  171. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  172. MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
  173. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  174. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  175. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  176. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  177. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  178. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  179. NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
  180. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  181. UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
  182. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  183. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  184. SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
  185. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
  186. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  187. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  188. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  189. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
  190. MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
  191. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  192. DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
  193. !if $(SMM_REQUIRE) == FALSE
  194. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
  195. CcProbeLib|OvmfPkg/Library/CcProbeLib/DxeCcProbeLib.inf
  196. !else
  197. CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
  198. !endif
  199. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  200. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  201. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  202. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  203. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  204. !else
  205. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  206. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  207. !endif
  208. LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
  209. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  210. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  211. !if $(NETWORK_TLS_ENABLE) == TRUE
  212. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  213. !else
  214. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  215. !endif
  216. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  217. !if $(SECURE_BOOT_ENABLE) == TRUE
  218. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  219. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  220. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  221. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  222. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  223. !else
  224. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  225. !endif
  226. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  227. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  228. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  229. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  230. #
  231. # Network libraries
  232. #
  233. !include NetworkPkg/NetworkLibs.dsc.inc
  234. !if $(NETWORK_TLS_ENABLE) == TRUE
  235. TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
  236. !endif
  237. !if $(BUILD_SHELL) == TRUE
  238. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  239. !endif
  240. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  241. S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  242. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  243. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  244. !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
  245. [LibraryClasses.common]
  246. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  247. CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
  248. TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
  249. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
  250. [LibraryClasses.common.SEC]
  251. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  252. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  253. !ifdef $(DEBUG_ON_SERIAL_PORT)
  254. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  255. !else
  256. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  257. !endif
  258. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  259. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  260. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  261. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  262. !endif
  263. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  264. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  265. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  266. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  267. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  268. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  269. !else
  270. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  271. !endif
  272. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
  273. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  274. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  275. [LibraryClasses.common.PEI_CORE]
  276. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  277. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  278. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  279. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  280. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  281. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  282. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  283. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  284. !ifdef $(DEBUG_ON_SERIAL_PORT)
  285. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  286. !else
  287. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  288. !endif
  289. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  290. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  291. [LibraryClasses.common.PEIM]
  292. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  293. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  294. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  295. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  296. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  297. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  298. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  299. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  300. !ifdef $(DEBUG_ON_SERIAL_PORT)
  301. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  302. !else
  303. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  304. !endif
  305. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  306. ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  307. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  308. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  309. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  310. !endif
  311. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
  312. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  313. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
  314. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  315. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
  316. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  317. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
  318. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  319. [LibraryClasses.common.DXE_CORE]
  320. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  321. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  322. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  323. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  324. !ifdef $(DEBUG_ON_SERIAL_PORT)
  325. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  326. !else
  327. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  328. !endif
  329. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  330. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  331. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  332. !endif
  333. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  334. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  335. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  336. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  337. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  338. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  339. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  340. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  341. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  342. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  343. !ifdef $(DEBUG_ON_SERIAL_PORT)
  344. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  345. !else
  346. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  347. !endif
  348. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  349. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  350. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  351. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  352. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  353. !if $(SMM_REQUIRE) == TRUE
  354. MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
  355. !endif
  356. [LibraryClasses.common.UEFI_DRIVER]
  357. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  358. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  359. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  360. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  361. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  362. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  363. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  364. !ifdef $(DEBUG_ON_SERIAL_PORT)
  365. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  366. !else
  367. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  368. !endif
  369. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  370. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  371. [LibraryClasses.common.DXE_DRIVER]
  372. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  373. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  374. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  375. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  376. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  377. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  378. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  379. !ifdef $(DEBUG_ON_SERIAL_PORT)
  380. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  381. !else
  382. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  383. !endif
  384. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  385. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  386. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  387. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  388. !if $(SMM_REQUIRE) == TRUE
  389. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
  390. !else
  391. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  392. !endif
  393. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  394. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  395. !endif
  396. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  397. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  398. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  399. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  400. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  401. [LibraryClasses.common.UEFI_APPLICATION]
  402. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  403. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  404. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  405. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  406. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  407. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  408. !ifdef $(DEBUG_ON_SERIAL_PORT)
  409. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  410. !else
  411. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  412. !endif
  413. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  414. [LibraryClasses.common.DXE_SMM_DRIVER]
  415. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  416. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  417. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  418. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  419. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  420. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  421. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  422. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  423. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  424. !ifdef $(DEBUG_ON_SERIAL_PORT)
  425. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  426. !else
  427. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  428. !endif
  429. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  430. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  431. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
  432. !endif
  433. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  434. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  435. SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
  436. [LibraryClasses.common.SMM_CORE]
  437. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  438. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  439. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  440. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  441. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  442. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  443. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  444. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  445. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  446. !ifdef $(DEBUG_ON_SERIAL_PORT)
  447. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  448. !else
  449. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  450. !endif
  451. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  452. ################################################################################
  453. #
  454. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  455. #
  456. ################################################################################
  457. [PcdsFeatureFlag]
  458. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  459. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  460. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  461. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  462. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  463. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  464. !ifdef $(CSM_ENABLE)
  465. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
  466. !endif
  467. !if $(SMM_REQUIRE) == TRUE
  468. gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
  469. gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
  470. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  471. !endif
  472. [PcdsFixedAtBuild]
  473. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  474. !if $(SMM_REQUIRE) == FALSE
  475. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  476. !endif
  477. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  478. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  479. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  480. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  481. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  482. !if $(NETWORK_TLS_ENABLE) == FALSE
  483. # match PcdFlashNvStorageVariableSize purely for convenience
  484. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  485. !endif
  486. !endif
  487. !if $(FD_SIZE_IN_KB) == 4096
  488. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  489. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  490. !if $(NETWORK_TLS_ENABLE) == FALSE
  491. # match PcdFlashNvStorageVariableSize purely for convenience
  492. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  493. !endif
  494. !endif
  495. !if $(NETWORK_TLS_ENABLE) == TRUE
  496. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  497. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  498. !endif
  499. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  500. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  501. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  502. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  503. # DEBUG_INIT 0x00000001 // Initialization
  504. # DEBUG_WARN 0x00000002 // Warnings
  505. # DEBUG_LOAD 0x00000004 // Load events
  506. # DEBUG_FS 0x00000008 // EFI File system
  507. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  508. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  509. # DEBUG_INFO 0x00000040 // Informational debug messages
  510. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  511. # DEBUG_VARIABLE 0x00000100 // Variable
  512. # DEBUG_BM 0x00000400 // Boot Manager
  513. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  514. # DEBUG_NET 0x00004000 // SNP Driver
  515. # DEBUG_UNDI 0x00010000 // UNDI Driver
  516. # DEBUG_LOADFILE 0x00020000 // LoadFile
  517. # DEBUG_EVENT 0x00080000 // Event messages
  518. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  519. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  520. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  521. # // significantly impact boot performance
  522. # DEBUG_ERROR 0x80000000 // Error
  523. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  524. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  525. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  526. !else
  527. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  528. !endif
  529. # This PCD is used to set the base address of the PCI express hierarchy. It
  530. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  531. # the PCIEXBAR register.
  532. #
  533. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  534. # never lets the RAM below 4 GB exceed 2816 MB.
  535. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  536. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  537. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  538. !endif
  539. #
  540. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  541. # best (please refer to git-blame for past updates). The values capture a set
  542. # of BIN hints that made sense at a particular time, for some (now likely
  543. # unknown) workloads / boot paths.
  544. #
  545. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  546. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
  547. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  548. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  549. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  550. #
  551. # TDX need 1G PageTable support
  552. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  553. #
  554. # Network Pcds
  555. #
  556. !include NetworkPkg/NetworkPcds.dsc.inc
  557. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  558. !if $(SMM_REQUIRE) == TRUE
  559. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
  560. !endif
  561. # IRQs 5, 9, 10, 11 are level-triggered
  562. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  563. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  564. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  565. ################################################################################
  566. #
  567. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  568. #
  569. ################################################################################
  570. [PcdsDynamicDefault]
  571. # only set when
  572. # ($(SMM_REQUIRE) == FALSE)
  573. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  574. !if $(SMM_REQUIRE) == FALSE
  575. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  576. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  577. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  578. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  579. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  580. !endif
  581. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  582. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  583. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  584. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  585. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  586. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  587. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  588. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  589. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  590. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  591. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  592. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  593. !ifdef $(CSM_ENABLE)
  594. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
  595. !else
  596. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  597. !endif
  598. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  599. # Set video resolution for text setup.
  600. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  601. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  602. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  603. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  604. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  605. # Noexec settings for DXE.
  606. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  607. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  608. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  609. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  610. # Set memory encryption mask
  611. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  612. # Set Tdx shared bit mask
  613. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  614. # Set SEV-ES defaults
  615. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  616. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  617. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  618. !if $(SMM_REQUIRE) == TRUE
  619. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
  620. gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
  621. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  622. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  623. !endif
  624. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  625. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  626. # IPv4 and IPv6 PXE Boot support.
  627. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  628. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  629. # Set ConfidentialComputing defaults
  630. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  631. !if $(CSM_ENABLE) == FALSE
  632. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  633. !endif
  634. [PcdsDynamicHii]
  635. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  636. ################################################################################
  637. #
  638. # Components Section - list of all EDK II Modules needed by this Platform.
  639. #
  640. ################################################################################
  641. [Components]
  642. OvmfPkg/ResetVector/ResetVector.inf
  643. #
  644. # SEC Phase modules
  645. #
  646. OvmfPkg/Sec/SecMain.inf {
  647. <LibraryClasses>
  648. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  649. NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  650. }
  651. #
  652. # PEI Phase modules
  653. #
  654. MdeModulePkg/Core/Pei/PeiMain.inf
  655. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  656. <LibraryClasses>
  657. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  658. }
  659. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  660. <LibraryClasses>
  661. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  662. }
  663. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  664. <LibraryClasses>
  665. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  666. }
  667. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  668. OvmfPkg/PlatformPei/PlatformPei.inf
  669. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  670. <LibraryClasses>
  671. !if $(SMM_REQUIRE) == TRUE
  672. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  673. !endif
  674. }
  675. !if $(SMM_REQUIRE) == TRUE
  676. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  677. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  678. OvmfPkg/SmmAccess/SmmAccessPei.inf
  679. !endif
  680. UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
  681. <LibraryClasses>
  682. #
  683. # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
  684. # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
  685. #
  686. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  687. NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
  688. }
  689. UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
  690. <Defines>
  691. FILE_GUID = $(UP_CPU_PEI_GUID)
  692. <LibraryClasses>
  693. #
  694. # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
  695. # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
  696. #
  697. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  698. NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
  699. }
  700. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  701. #
  702. # DXE Phase modules
  703. #
  704. MdeModulePkg/Core/Dxe/DxeMain.inf {
  705. <LibraryClasses>
  706. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  707. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  708. }
  709. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  710. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  711. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  712. <LibraryClasses>
  713. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  714. }
  715. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  716. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  717. <LibraryClasses>
  718. !if $(SECURE_BOOT_ENABLE) == TRUE
  719. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  720. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  721. !endif
  722. }
  723. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  724. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  725. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  726. <LibraryClasses>
  727. #
  728. # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
  729. # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
  730. #
  731. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  732. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
  733. }
  734. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  735. <Defines>
  736. FILE_GUID = $(UP_CPU_DXE_GUID)
  737. <LibraryClasses>
  738. #
  739. # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
  740. # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
  741. #
  742. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  743. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
  744. }
  745. !ifdef $(CSM_ENABLE)
  746. OvmfPkg/8259InterruptControllerDxe/8259.inf
  747. OvmfPkg/8254TimerDxe/8254Timer.inf
  748. !else
  749. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  750. !endif
  751. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  752. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  753. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  754. <LibraryClasses>
  755. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  756. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  757. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  758. }
  759. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  760. <LibraryClasses>
  761. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  762. }
  763. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  764. MdeModulePkg/Universal/Metronome/Metronome.inf
  765. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  766. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  767. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  768. <LibraryClasses>
  769. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  770. !ifdef $(CSM_ENABLE)
  771. NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
  772. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  773. !endif
  774. }
  775. MdeModulePkg/Logo/LogoDxe.inf
  776. MdeModulePkg/Application/UiApp/UiApp.inf {
  777. <LibraryClasses>
  778. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  779. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  780. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  781. !ifdef $(CSM_ENABLE)
  782. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  783. NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
  784. !endif
  785. }
  786. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  787. <LibraryClasses>
  788. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  789. }
  790. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  791. OvmfPkg/Virtio10Dxe/Virtio10.inf
  792. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  793. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  794. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  795. !if $(PVSCSI_ENABLE) == TRUE
  796. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  797. !endif
  798. !if $(MPT_SCSI_ENABLE) == TRUE
  799. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  800. !endif
  801. !if $(LSI_SCSI_ENABLE) == TRUE
  802. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  803. !endif
  804. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  805. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  806. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  807. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  808. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  809. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  810. <LibraryClasses>
  811. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  812. }
  813. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  814. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  815. <LibraryClasses>
  816. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  817. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  818. }
  819. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  820. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  821. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  822. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  823. FatPkg/EnhancedFatDxe/Fat.inf
  824. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  825. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  826. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  827. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  828. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  829. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  830. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  831. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  832. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  833. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  834. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  835. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  836. !ifndef $(CSM_ENABLE)
  837. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  838. !endif
  839. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  840. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  841. #
  842. # ISA Support
  843. #
  844. OvmfPkg/SioBusDxe/SioBusDxe.inf
  845. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  846. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  847. #
  848. # SMBIOS Support
  849. #
  850. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  851. <LibraryClasses>
  852. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  853. }
  854. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  855. #
  856. # ACPI Support
  857. #
  858. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  859. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  860. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  861. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  862. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  863. #
  864. # Network Support
  865. #
  866. !include NetworkPkg/NetworkComponents.dsc.inc
  867. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  868. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  869. #
  870. # Usb Support
  871. #
  872. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  873. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  874. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  875. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  876. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  877. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  878. !ifdef $(CSM_ENABLE)
  879. OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
  880. <LibraryClasses>
  881. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  882. }
  883. OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
  884. OvmfPkg/Csm/Csm16/Csm16.inf
  885. !endif
  886. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  887. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  888. <PcdsFixedAtBuild>
  889. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  890. }
  891. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  892. <PcdsFixedAtBuild>
  893. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  894. }
  895. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  896. <PcdsFixedAtBuild>
  897. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  898. }
  899. !endif
  900. !if $(BUILD_SHELL) == TRUE
  901. ShellPkg/Application/Shell/Shell.inf {
  902. <LibraryClasses>
  903. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  904. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  905. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  906. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  907. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  908. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  909. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  910. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  911. !if $(NETWORK_IP6_ENABLE) == TRUE
  912. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  913. !endif
  914. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  915. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  916. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  917. <PcdsFixedAtBuild>
  918. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  919. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  920. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  921. }
  922. !endif
  923. !if $(SECURE_BOOT_ENABLE) == TRUE
  924. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  925. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  926. !endif
  927. OvmfPkg/PlatformDxe/Platform.inf
  928. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  929. <LibraryClasses>
  930. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  931. }
  932. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  933. OvmfPkg/TdxDxe/TdxDxe.inf
  934. !if $(SMM_REQUIRE) == TRUE
  935. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  936. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  937. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  938. #
  939. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  940. #
  941. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  942. #
  943. # SMM_CORE
  944. #
  945. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  946. #
  947. # Privileged drivers (DXE_SMM_DRIVER modules)
  948. #
  949. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  950. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  951. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  952. <LibraryClasses>
  953. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  954. }
  955. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  956. <LibraryClasses>
  957. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  958. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  959. }
  960. #
  961. # Variable driver stack (SMM)
  962. #
  963. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  964. <LibraryClasses>
  965. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  966. }
  967. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  968. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  969. <LibraryClasses>
  970. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  971. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  972. }
  973. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  974. !else
  975. #
  976. # Variable driver stack (non-SMM)
  977. #
  978. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  979. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  980. <LibraryClasses>
  981. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  982. }
  983. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  984. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  985. <LibraryClasses>
  986. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  987. }
  988. !endif
  989. #
  990. # TPM support
  991. #
  992. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc