OvmfPkgX64.dsc 42 KB

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