OvmfPkgIa32.dsc 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945
  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. # This program and the accompanying materials
  8. # are licensed and made available under the terms and conditions of the BSD License
  9. # which accompanies this distribution. The full text of the license may be found at
  10. # http://opensource.org/licenses/bsd-license.php
  11. #
  12. # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  14. #
  15. ##
  16. ################################################################################
  17. #
  18. # Defines Section - statements that will be processed to create a Makefile.
  19. #
  20. ################################################################################
  21. [Defines]
  22. PLATFORM_NAME = Ovmf
  23. PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
  24. PLATFORM_VERSION = 0.1
  25. DSC_SPECIFICATION = 0x00010005
  26. OUTPUT_DIRECTORY = Build/OvmfIa32
  27. SUPPORTED_ARCHITECTURES = IA32
  28. BUILD_TARGETS = NOOPT|DEBUG|RELEASE
  29. SKUID_IDENTIFIER = DEFAULT
  30. FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32.fdf
  31. #
  32. # Defines for default states. These can be changed on the command line.
  33. # -D FLAG=VALUE
  34. #
  35. DEFINE SECURE_BOOT_ENABLE = FALSE
  36. DEFINE NETWORK_IP6_ENABLE = FALSE
  37. DEFINE HTTP_BOOT_ENABLE = FALSE
  38. DEFINE SMM_REQUIRE = FALSE
  39. DEFINE TLS_ENABLE = FALSE
  40. DEFINE TPM2_ENABLE = FALSE
  41. DEFINE TPM2_CONFIG_ENABLE = FALSE
  42. DEFINE USE_LEGACY_ISA_STACK = FALSE
  43. #
  44. # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
  45. # one of the supported values, in place of any of the convenience macros, is
  46. # permitted.
  47. #
  48. !ifdef $(FD_SIZE_1MB)
  49. DEFINE FD_SIZE_IN_KB = 1024
  50. !else
  51. !ifdef $(FD_SIZE_2MB)
  52. DEFINE FD_SIZE_IN_KB = 2048
  53. !else
  54. !ifdef $(FD_SIZE_4MB)
  55. DEFINE FD_SIZE_IN_KB = 4096
  56. !else
  57. DEFINE FD_SIZE_IN_KB = 4096
  58. !endif
  59. !endif
  60. !endif
  61. [BuildOptions]
  62. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  63. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  64. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  65. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  66. GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
  67. !endif
  68. #
  69. # Disable deprecated APIs.
  70. #
  71. MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  72. INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  73. GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  74. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  75. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  76. XCODE:*_*_*_DLINK_FLAGS =
  77. # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
  78. # protection of DXE_SMM_DRIVER/SMM_CORE modules
  79. [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
  80. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  81. XCODE:*_*_*_DLINK_FLAGS =
  82. ################################################################################
  83. #
  84. # SKU Identification section - list of all SKU IDs supported by this Platform.
  85. #
  86. ################################################################################
  87. [SkuIds]
  88. 0|DEFAULT
  89. ################################################################################
  90. #
  91. # Library Class section - list of all Library Classes needed by this Platform.
  92. #
  93. ################################################################################
  94. [LibraryClasses]
  95. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  96. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
  97. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  98. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  99. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  100. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  101. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  102. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  103. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  104. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  105. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  106. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  107. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  108. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  109. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  110. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  111. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  112. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  113. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  114. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  115. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  116. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  117. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  118. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  119. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  120. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  121. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  122. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  123. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  124. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  125. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  126. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  127. SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
  128. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  129. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  130. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  131. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  132. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  133. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  134. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  135. NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
  136. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  137. UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
  138. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  139. NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
  140. IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
  141. UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
  142. DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
  143. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  144. SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
  145. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
  146. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  147. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  148. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
  149. !if $(SMM_REQUIRE) == FALSE
  150. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
  151. !endif
  152. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  153. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  154. !ifdef $(SOURCE_DEBUG_ENABLE)
  155. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  156. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  157. !else
  158. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  159. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  160. !endif
  161. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
  162. LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
  163. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  164. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  165. !if $(TLS_ENABLE) == TRUE
  166. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  167. !else
  168. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  169. !endif
  170. !if $(SECURE_BOOT_ENABLE) == TRUE
  171. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  172. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  173. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  174. !else
  175. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  176. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  177. !endif
  178. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  179. TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
  180. !if $(HTTP_BOOT_ENABLE) == TRUE
  181. HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
  182. !endif
  183. !if $(TLS_ENABLE) == TRUE
  184. TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
  185. !endif
  186. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.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. gPcAtChipsetPkgTokenSpaceGuid.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. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  502. # Set video resolution for text setup.
  503. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  504. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  505. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  506. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  507. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  508. # Noexec settings for DXE.
  509. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  510. gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
  511. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  512. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  513. gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000
  514. # Set memory encryption mask
  515. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  516. !if $(SMM_REQUIRE) == TRUE
  517. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
  518. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  519. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  520. !endif
  521. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  522. !if $(TPM2_ENABLE) == TRUE
  523. gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
  524. !endif
  525. ################################################################################
  526. #
  527. # Components Section - list of all EDK II Modules needed by this Platform.
  528. #
  529. ################################################################################
  530. [Components]
  531. OvmfPkg/ResetVector/ResetVector.inf
  532. #
  533. # SEC Phase modules
  534. #
  535. OvmfPkg/Sec/SecMain.inf {
  536. <LibraryClasses>
  537. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  538. }
  539. #
  540. # PEI Phase modules
  541. #
  542. MdeModulePkg/Core/Pei/PeiMain.inf
  543. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  544. <LibraryClasses>
  545. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  546. }
  547. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  548. <LibraryClasses>
  549. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  550. }
  551. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  552. <LibraryClasses>
  553. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  554. }
  555. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  556. OvmfPkg/PlatformPei/PlatformPei.inf
  557. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  558. <LibraryClasses>
  559. !if $(SMM_REQUIRE) == TRUE
  560. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  561. !endif
  562. }
  563. !if $(SMM_REQUIRE) == TRUE
  564. OvmfPkg/SmmAccess/SmmAccessPei.inf
  565. !endif
  566. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  567. !if $(TPM2_ENABLE) == TRUE
  568. OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
  569. SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
  570. <LibraryClasses>
  571. HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
  572. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  573. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  574. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  575. NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
  576. }
  577. !if $(TPM2_CONFIG_ENABLE) == TRUE
  578. SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
  579. !endif
  580. !endif
  581. #
  582. # DXE Phase modules
  583. #
  584. MdeModulePkg/Core/Dxe/DxeMain.inf {
  585. <LibraryClasses>
  586. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  587. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  588. }
  589. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  590. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  591. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  592. <LibraryClasses>
  593. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  594. }
  595. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  596. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  597. <LibraryClasses>
  598. !if $(SECURE_BOOT_ENABLE) == TRUE
  599. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  600. !endif
  601. !if $(TPM2_ENABLE) == TRUE
  602. NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
  603. !endif
  604. }
  605. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  606. PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
  607. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  608. UefiCpuPkg/CpuDxe/CpuDxe.inf
  609. PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
  610. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  611. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  612. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  613. <LibraryClasses>
  614. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  615. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  616. }
  617. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  618. <LibraryClasses>
  619. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  620. }
  621. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  622. MdeModulePkg/Universal/Metronome/Metronome.inf
  623. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  624. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  625. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  626. <LibraryClasses>
  627. !ifdef $(CSM_ENABLE)
  628. NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
  629. NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
  630. !endif
  631. }
  632. MdeModulePkg/Logo/LogoDxe.inf
  633. MdeModulePkg/Application/UiApp/UiApp.inf {
  634. <LibraryClasses>
  635. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  636. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  637. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  638. !ifdef $(CSM_ENABLE)
  639. NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
  640. NULL|IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
  641. !endif
  642. }
  643. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  644. OvmfPkg/Virtio10Dxe/Virtio10.inf
  645. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  646. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  647. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  648. OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
  649. OvmfPkg/XenBusDxe/XenBusDxe.inf
  650. OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
  651. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  652. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  653. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  654. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  655. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  656. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  657. <LibraryClasses>
  658. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  659. }
  660. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  661. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  662. <LibraryClasses>
  663. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  664. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  665. }
  666. MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
  667. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  668. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  669. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  670. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  671. FatPkg/EnhancedFatDxe/Fat.inf
  672. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  673. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  674. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  675. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  676. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  677. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  678. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  679. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  680. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  681. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  682. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  683. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  684. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  685. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  686. #
  687. # ISA Support
  688. #
  689. !if $(USE_LEGACY_ISA_STACK) == FALSE
  690. OvmfPkg/SioBusDxe/SioBusDxe.inf
  691. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  692. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  693. !else
  694. PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
  695. IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
  696. IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
  697. IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
  698. !endif
  699. #
  700. # SMBIOS Support
  701. #
  702. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  703. <LibraryClasses>
  704. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  705. }
  706. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  707. #
  708. # ACPI Support
  709. #
  710. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  711. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  712. OvmfPkg/AcpiTables/AcpiTables.inf
  713. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  714. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  715. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  716. #
  717. # Network Support
  718. #
  719. MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
  720. MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
  721. MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
  722. MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
  723. MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
  724. MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
  725. MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
  726. MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
  727. MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
  728. NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
  729. NetworkPkg/TcpDxe/TcpDxe.inf
  730. NetworkPkg/IScsiDxe/IScsiDxe.inf
  731. !if $(NETWORK_IP6_ENABLE) == TRUE
  732. NetworkPkg/Ip6Dxe/Ip6Dxe.inf
  733. NetworkPkg/Udp6Dxe/Udp6Dxe.inf
  734. NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
  735. NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
  736. !endif
  737. !if $(HTTP_BOOT_ENABLE) == TRUE
  738. NetworkPkg/DnsDxe/DnsDxe.inf
  739. NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
  740. NetworkPkg/HttpDxe/HttpDxe.inf
  741. NetworkPkg/HttpBootDxe/HttpBootDxe.inf
  742. !endif
  743. !if $(TLS_ENABLE) == TRUE
  744. NetworkPkg/TlsDxe/TlsDxe.inf
  745. NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
  746. <LibraryClasses>
  747. NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
  748. }
  749. !endif
  750. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  751. #
  752. # Usb Support
  753. #
  754. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  755. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  756. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  757. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  758. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  759. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  760. !ifdef $(CSM_ENABLE)
  761. IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
  762. <LibraryClasses>
  763. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  764. }
  765. IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
  766. OvmfPkg/Csm/Csm16/Csm16.inf
  767. !endif
  768. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  769. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  770. <PcdsFixedAtBuild>
  771. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  772. }
  773. !endif
  774. ShellPkg/Application/Shell/Shell.inf {
  775. <LibraryClasses>
  776. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  777. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  778. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  779. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  780. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  781. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  782. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  783. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  784. !if $(NETWORK_IP6_ENABLE) == TRUE
  785. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  786. !endif
  787. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  788. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  789. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  790. <PcdsFixedAtBuild>
  791. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  792. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  793. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  794. }
  795. !if $(SECURE_BOOT_ENABLE) == TRUE
  796. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  797. !endif
  798. OvmfPkg/PlatformDxe/Platform.inf
  799. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  800. !if $(SMM_REQUIRE) == TRUE
  801. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  802. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  803. UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  804. #
  805. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  806. #
  807. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  808. #
  809. # SMM_CORE
  810. #
  811. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  812. #
  813. # Privileged drivers (DXE_SMM_DRIVER modules)
  814. #
  815. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  816. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  817. <LibraryClasses>
  818. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  819. }
  820. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  821. <LibraryClasses>
  822. SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
  823. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  824. }
  825. #
  826. # Variable driver stack (SMM)
  827. #
  828. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
  829. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  830. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  831. <LibraryClasses>
  832. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  833. }
  834. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  835. !else
  836. #
  837. # Variable driver stack (non-SMM)
  838. #
  839. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  840. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  841. <LibraryClasses>
  842. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  843. }
  844. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  845. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  846. <LibraryClasses>
  847. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  848. }
  849. !endif
  850. !if $(TPM2_ENABLE) == TRUE
  851. SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
  852. <LibraryClasses>
  853. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
  854. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  855. HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
  856. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  857. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  858. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  859. NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
  860. }
  861. !endif