ArmVirtQemu.dsc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. #
  2. # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
  3. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  4. # Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. #
  9. ################################################################################
  10. #
  11. # Defines Section - statements that will be processed to create a Makefile.
  12. #
  13. ################################################################################
  14. [Defines]
  15. PLATFORM_NAME = ArmVirtQemu
  16. PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x00010005
  19. OUTPUT_DIRECTORY = Build/ArmVirtQemu-$(ARCH)
  20. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  21. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  22. SKUID_IDENTIFIER = DEFAULT
  23. FLASH_DEFINITION = ArmVirtPkg/ArmVirtQemu.fdf
  24. #
  25. # Defines for default states. These can be changed on the command line.
  26. # -D FLAG=VALUE
  27. #
  28. DEFINE TTY_TERMINAL = FALSE
  29. DEFINE SECURE_BOOT_ENABLE = FALSE
  30. DEFINE TPM2_ENABLE = FALSE
  31. DEFINE TPM2_CONFIG_ENABLE = FALSE
  32. #
  33. # Network definition
  34. #
  35. DEFINE NETWORK_IP6_ENABLE = FALSE
  36. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  37. DEFINE NETWORK_SNP_ENABLE = FALSE
  38. DEFINE NETWORK_TLS_ENABLE = FALSE
  39. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  40. DEFINE NETWORK_ISCSI_ENABLE = FALSE
  41. !if $(NETWORK_SNP_ENABLE) == TRUE
  42. !error "NETWORK_SNP_ENABLE is IA32/X64/EBC only"
  43. !endif
  44. !include NetworkPkg/NetworkDefines.dsc.inc
  45. !include ArmVirtPkg/ArmVirt.dsc.inc
  46. !include MdePkg/MdeLibs.dsc.inc
  47. [LibraryClasses.common]
  48. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  49. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  50. # Virtio Support
  51. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  52. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  53. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmio.inf
  54. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf
  55. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  56. QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
  57. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  58. VirtNorFlashPlatformLib|ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
  59. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  60. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  61. PlatformBootManagerLib|ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  62. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  63. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  64. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  65. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  66. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  67. PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  68. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  69. PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
  70. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  71. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  72. !if $(TPM2_ENABLE) == TRUE
  73. Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
  74. Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
  75. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  76. TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
  77. !else
  78. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  79. TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
  80. !endif
  81. [LibraryClasses.AARCH64]
  82. ArmPlatformLib|ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.inf
  83. [LibraryClasses.ARM]
  84. ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
  85. [LibraryClasses.common.PEIM]
  86. ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf
  87. !if $(TPM2_ENABLE) == TRUE
  88. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
  89. ResetSystemLib|MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.inf
  90. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
  91. !endif
  92. [LibraryClasses.common.DXE_DRIVER]
  93. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  94. !if $(TPM2_ENABLE) == TRUE
  95. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
  96. !endif
  97. [LibraryClasses.common.UEFI_DRIVER]
  98. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  99. [BuildOptions]
  100. GCC:*_*_AARCH64_CC_XIPFLAGS ==
  101. !include NetworkPkg/NetworkBuildOptions.dsc.inc
  102. ################################################################################
  103. #
  104. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  105. #
  106. ################################################################################
  107. [PcdsFeatureFlag.common]
  108. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
  109. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
  110. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  111. # It could be set FALSE to save size.
  112. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  114. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  115. gArmVirtTokenSpaceGuid.PcdTpm2SupportEnabled|$(TPM2_ENABLE)
  116. [PcdsFixedAtBuild.common]
  117. !if $(ARCH) == AARCH64
  118. gArmTokenSpaceGuid.PcdVFPEnabled|1
  119. !endif
  120. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
  121. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  122. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  123. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  124. !if $(NETWORK_TLS_ENABLE) == TRUE
  125. #
  126. # The cumulative and individual VOLATILE variable size limits should be set
  127. # high enough for accommodating several and/or large CA certificates.
  128. #
  129. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  130. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  131. !endif
  132. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  133. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  134. #
  135. # ARM PrimeCell
  136. #
  137. ## PL011 - Serial Terminal
  138. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
  139. ## Default Terminal Type
  140. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  141. !if $(TTY_TERMINAL) == TRUE
  142. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  143. # Set terminal type to TtyTerm, the value encoded is EFI_TTY_TERM_GUID
  144. gArmVirtTokenSpaceGuid.PcdTerminalTypeGuidBuffer|{0x80, 0x6d, 0x91, 0x7d, 0xb1, 0x5b, 0x8c, 0x45, 0xa4, 0x8f, 0xe2, 0x5f, 0xdd, 0x51, 0xef, 0x94}
  145. !else
  146. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
  147. !endif
  148. #
  149. # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
  150. #
  151. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  152. #
  153. # Network Pcds
  154. #
  155. !include NetworkPkg/NetworkPcds.dsc.inc
  156. # System Memory Base -- fixed at 0x4000_0000
  157. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
  158. # initial location of the device tree blob passed by QEMU -- base of DRAM
  159. gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
  160. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  161. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  162. #
  163. # The maximum physical I/O addressability of the processor, set with
  164. # BuildCpuHob().
  165. #
  166. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  167. #
  168. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  169. #
  170. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  171. !if $(SECURE_BOOT_ENABLE) == TRUE
  172. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  173. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  174. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  175. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  176. !endif
  177. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3
  178. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  179. # Shadowing PEI modules is absolutely pointless when the NOR flash is emulated
  180. gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|FALSE
  181. # System Memory Size -- 128 MB initially, actual size will be fetched from DT
  182. gArmTokenSpaceGuid.PcdSystemMemorySize|0x8000000
  183. [PcdsFixedAtBuild.AARCH64]
  184. # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
  185. # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
  186. # presence of the 32-bit entry point anyway (because many AARCH64 systems
  187. # don't have 32-bit addressable physical RAM), and the additional allocations
  188. # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
  189. # point only, for entry point versions >= 3.0.
  190. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  191. [PcdsDynamicDefault.common]
  192. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  193. ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
  194. # enumeration to complete before installing ACPI tables.
  195. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  196. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  197. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
  198. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
  199. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
  200. #
  201. # ARM General Interrupt Controller
  202. #
  203. gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
  204. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
  205. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
  206. ## PL031 RealTimeClock
  207. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
  208. # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
  209. # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
  210. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
  211. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
  212. #
  213. # Set video resolution for boot options and for text setup.
  214. # PlatformDxe can set the former at runtime.
  215. #
  216. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  217. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  218. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  219. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  220. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  221. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  222. #
  223. # SMBIOS entry point version
  224. #
  225. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
  226. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  227. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  228. #
  229. # IPv4 and IPv6 PXE Boot support.
  230. #
  231. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  232. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  233. #
  234. # TPM2 support
  235. #
  236. !if $(TPM2_ENABLE) == TRUE
  237. gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
  238. gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
  239. gEfiSecurityPkgTokenSpaceGuid.PcdTpm2HashMask|0
  240. !else
  241. [PcdsPatchableInModule]
  242. # make this PCD patchable instead of dynamic when TPM support is not enabled
  243. # this permits setting the PCD in unreachable code without pulling in dynamic PCD support
  244. gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
  245. !endif
  246. [PcdsDynamicHii]
  247. gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGuid|0x0|FALSE|NV,BS
  248. !if $(TPM2_CONFIG_ENABLE) == TRUE
  249. gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
  250. gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
  251. !endif
  252. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  253. [LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
  254. !if $(TPM2_ENABLE) == TRUE
  255. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  256. !else
  257. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  258. !endif
  259. ################################################################################
  260. #
  261. # Components Section - list of all EDK II Modules needed by this Platform
  262. #
  263. ################################################################################
  264. [Components.common]
  265. #
  266. # PEI Phase modules
  267. #
  268. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  269. MdeModulePkg/Core/Pei/PeiMain.inf
  270. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  271. ArmVirtPkg/MemoryInitPei/MemoryInitPeim.inf {
  272. <LibraryClasses>
  273. !if $(ARCH) == AARCH64
  274. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
  275. !endif
  276. }
  277. ArmPkg/Drivers/CpuPei/CpuPei.inf
  278. !if $(TPM2_ENABLE) == TRUE
  279. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  280. <LibraryClasses>
  281. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  282. }
  283. MdeModulePkg/Universal/ResetSystemPei/ResetSystemPei.inf {
  284. <LibraryClasses>
  285. ResetSystemLib|ArmVirtPkg/Library/ArmVirtPsciResetSystemPeiLib/ArmVirtPsciResetSystemPeiLib.inf
  286. }
  287. OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
  288. SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
  289. <LibraryClasses>
  290. HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
  291. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  292. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  293. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  294. NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
  295. NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
  296. }
  297. !endif
  298. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  299. <LibraryClasses>
  300. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  301. }
  302. #
  303. # DXE
  304. #
  305. MdeModulePkg/Core/Dxe/DxeMain.inf {
  306. <LibraryClasses>
  307. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  308. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  309. }
  310. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  311. <LibraryClasses>
  312. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  313. }
  314. #
  315. # Architectural Protocols
  316. #
  317. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  318. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  319. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  320. <LibraryClasses>
  321. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  322. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  323. # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
  324. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  325. }
  326. !if $(SECURE_BOOT_ENABLE) == TRUE
  327. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  328. <LibraryClasses>
  329. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  330. !if $(TPM2_ENABLE) == TRUE
  331. NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
  332. !endif
  333. }
  334. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  335. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  336. !else
  337. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  338. !endif
  339. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  340. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  341. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  342. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  343. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
  344. <LibraryClasses>
  345. NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
  346. }
  347. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  348. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  349. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  350. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  351. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  352. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  353. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  354. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  355. ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
  356. <LibraryClasses>
  357. NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
  358. }
  359. OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf
  360. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  361. #
  362. # Status Code Routing
  363. #
  364. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  365. #
  366. # Platform Driver
  367. #
  368. OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
  369. EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
  370. OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
  371. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  372. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  373. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  374. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  375. #
  376. # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
  377. #
  378. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  379. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  380. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  381. FatPkg/EnhancedFatDxe/Fat.inf
  382. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  383. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  384. #
  385. # Bds
  386. #
  387. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  388. <LibraryClasses>
  389. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  390. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  391. }
  392. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  393. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  394. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  395. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  396. MdeModulePkg/Logo/LogoDxe.inf
  397. MdeModulePkg/Application/UiApp/UiApp.inf {
  398. <LibraryClasses>
  399. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  400. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  401. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  402. }
  403. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  404. <LibraryClasses>
  405. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  406. }
  407. #
  408. # Networking stack
  409. #
  410. !include NetworkPkg/NetworkComponents.dsc.inc
  411. NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
  412. <LibraryClasses>
  413. NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
  414. }
  415. !if $(NETWORK_TLS_ENABLE) == TRUE
  416. NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
  417. <LibraryClasses>
  418. NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
  419. }
  420. !endif
  421. #
  422. # SCSI Bus and Disk Driver
  423. #
  424. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  425. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  426. #
  427. # NVME Driver
  428. #
  429. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  430. #
  431. # SMBIOS Support
  432. #
  433. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  434. <LibraryClasses>
  435. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  436. }
  437. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  438. #
  439. # PCI support
  440. #
  441. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
  442. <LibraryClasses>
  443. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  444. }
  445. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  446. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  447. <LibraryClasses>
  448. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  449. }
  450. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  451. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  452. OvmfPkg/Virtio10Dxe/Virtio10.inf
  453. #
  454. # Video support
  455. #
  456. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  457. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  458. OvmfPkg/PlatformDxe/Platform.inf
  459. #
  460. # USB Support
  461. #
  462. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  463. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  464. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  465. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  466. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  467. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  468. #
  469. # TPM2 support
  470. #
  471. !if $(TPM2_ENABLE) == TRUE
  472. SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
  473. <LibraryClasses>
  474. HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
  475. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
  476. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  477. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  478. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  479. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  480. NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
  481. NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
  482. }
  483. !if $(TPM2_CONFIG_ENABLE) == TRUE
  484. SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
  485. !endif
  486. !endif
  487. #
  488. # ACPI Support
  489. #
  490. ArmVirtPkg/PlatformHasAcpiDtDxe/PlatformHasAcpiDtDxe.inf
  491. [Components.AARCH64]
  492. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  493. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf {
  494. <LibraryClasses>
  495. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  496. }