ArmVirtCloudHv.dsc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. #
  2. # Copyright (c) 2021, ARM Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-2-Clause-Patent
  5. #
  6. #
  7. ################################################################################
  8. #
  9. # Defines Section - statements that will be processed to create a Makefile.
  10. #
  11. ################################################################################
  12. [Defines]
  13. PLATFORM_NAME = ArmVirtCloudHv
  14. PLATFORM_GUID = DFFED32B-DFFE-D32B-DFFE-D32BDFFED32B
  15. PLATFORM_VERSION = 0.1
  16. DSC_SPECIFICATION = 0x00010005
  17. OUTPUT_DIRECTORY = Build/ArmVirtCloudHv-$(ARCH)
  18. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  19. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  20. SKUID_IDENTIFIER = DEFAULT
  21. FLASH_DEFINITION = ArmVirtPkg/ArmVirtCloudHv.fdf
  22. #
  23. # Defines for default states. These can be changed on the command line.
  24. # -D FLAG=VALUE
  25. #
  26. DEFINE TTY_TERMINAL = FALSE
  27. DEFINE SECURE_BOOT_ENABLE = FALSE
  28. !include ArmVirtPkg/ArmVirt.dsc.inc
  29. [LibraryClasses.common]
  30. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  31. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  32. # Virtio Support
  33. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  34. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  35. ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
  36. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  37. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  38. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  39. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  40. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  41. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  42. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  43. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  44. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  45. PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  46. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  47. PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
  48. PciHostBridgeUtilityLib|ArmVirtPkg/Library/ArmVirtPciHostBridgeUtilityLib/ArmVirtPciHostBridgeUtilityLib.inf
  49. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  50. TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
  51. !include MdePkg/MdeLibs.dsc.inc
  52. [LibraryClasses.common.PEIM]
  53. ArmVirtMemInfoLib|ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoPeiLib.inf
  54. [LibraryClasses.common.DXE_DRIVER]
  55. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  56. [LibraryClasses.common.UEFI_DRIVER]
  57. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  58. [BuildOptions]
  59. !include NetworkPkg/NetworkBuildOptions.dsc.inc
  60. ################################################################################
  61. #
  62. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  63. #
  64. ################################################################################
  65. [PcdsFeatureFlag.common]
  66. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  67. # It could be set FALSE to save size.
  68. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  69. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  70. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  71. [PcdsFixedAtBuild.common]
  72. !if $(ARCH) == AARCH64
  73. gArmTokenSpaceGuid.PcdVFPEnabled|1
  74. !endif
  75. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
  76. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  77. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  78. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  79. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  80. # Rsdp base address in Cloud Hypervisor
  81. gArmVirtTokenSpaceGuid.PcdCloudHvAcpiRsdpBaseAddress|0x40200000
  82. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x4000000
  83. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
  84. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
  85. !if $(NETWORK_TLS_ENABLE) == TRUE
  86. #
  87. # The cumulative and individual VOLATILE variable size limits should be set
  88. # high enough for accommodating several and/or large CA certificates.
  89. #
  90. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  91. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  92. !endif
  93. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  94. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  95. #
  96. # ARM PrimeCell
  97. #
  98. ## PL011 - Serial Terminal
  99. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
  100. ## Default Terminal Type
  101. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  102. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  103. # System Memory Base -- fixed at 0x4000_0000
  104. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
  105. # initial location of the device tree blob passed by Cloud Hypervisor -- base of DRAM
  106. gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
  107. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  108. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  109. #
  110. # The maximum physical I/O addressability of the processor, set with
  111. # BuildCpuHob().
  112. #
  113. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  114. #
  115. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  116. #
  117. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  118. !if $(SECURE_BOOT_ENABLE) == TRUE
  119. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  120. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  121. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  122. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  123. !endif
  124. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3
  125. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  126. [PcdsFixedAtBuild.AARCH64]
  127. # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
  128. # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
  129. # presence of the 32-bit entry point anyway (because many AARCH64 systems
  130. # don't have 32-bit addressable physical RAM), and the additional allocations
  131. # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
  132. # point only, for entry point versions >= 3.0.
  133. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  134. [PcdsDynamicDefault.common]
  135. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  136. ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
  137. # enumeration to complete before installing ACPI tables.
  138. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  139. # System Memory Size -- 1 MB initially, actual size will be fetched from DT
  140. gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
  141. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  142. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
  143. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
  144. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
  145. #
  146. # ARM General Interrupt Controller
  147. #
  148. gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
  149. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
  150. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
  151. ## PL031 RealTimeClock
  152. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
  153. # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
  154. # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
  155. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
  156. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0
  157. gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
  158. [PcdsDynamicHii]
  159. gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGuid|0x0|FALSE|NV,BS
  160. ################################################################################
  161. #
  162. # Components Section - list of all EDK II Modules needed by this Platform
  163. #
  164. ################################################################################
  165. [Components.common]
  166. #
  167. # PEI Phase modules
  168. #
  169. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  170. MdeModulePkg/Core/Pei/PeiMain.inf
  171. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  172. <LibraryClasses>
  173. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  174. }
  175. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  176. ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  177. ArmPkg/Drivers/CpuPei/CpuPei.inf
  178. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  179. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  180. <LibraryClasses>
  181. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  182. }
  183. #
  184. # DXE
  185. #
  186. MdeModulePkg/Core/Dxe/DxeMain.inf {
  187. <LibraryClasses>
  188. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  189. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  190. }
  191. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  192. <LibraryClasses>
  193. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  194. }
  195. #
  196. # Architectural Protocols
  197. #
  198. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  199. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  200. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  201. <LibraryClasses>
  202. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  203. # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
  204. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  205. }
  206. !if $(SECURE_BOOT_ENABLE) == TRUE
  207. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  208. <LibraryClasses>
  209. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  210. }
  211. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  212. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  213. !else
  214. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  215. !endif
  216. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  217. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  218. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  219. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  220. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
  221. <LibraryClasses>
  222. NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
  223. }
  224. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  225. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  226. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  227. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  228. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  229. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  230. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  231. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  232. ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
  233. <LibraryClasses>
  234. NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
  235. }
  236. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  237. #
  238. # Status Code Routing
  239. #
  240. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  241. #
  242. # Platform Driver
  243. #
  244. OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
  245. EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
  246. OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
  247. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  248. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  249. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  250. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  251. #
  252. # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
  253. #
  254. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  255. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  256. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  257. FatPkg/EnhancedFatDxe/Fat.inf
  258. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  259. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  260. #
  261. # Bds
  262. #
  263. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  264. <LibraryClasses>
  265. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  266. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  267. }
  268. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  269. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  270. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  271. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  272. MdeModulePkg/Logo/LogoDxe.inf
  273. MdeModulePkg/Application/UiApp/UiApp.inf {
  274. <LibraryClasses>
  275. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  276. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  277. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  278. }
  279. #
  280. # SCSI Bus and Disk Driver
  281. #
  282. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  283. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  284. #
  285. # PCI support
  286. #
  287. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
  288. <LibraryClasses>
  289. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  290. }
  291. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  292. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  293. <LibraryClasses>
  294. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  295. }
  296. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  297. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  298. OvmfPkg/Virtio10Dxe/Virtio10.inf
  299. #
  300. # ACPI Support
  301. #
  302. ArmVirtPkg/CloudHvPlatformHasAcpiDtDxe/CloudHvHasAcpiDtDxe.inf
  303. [Components.AARCH64]
  304. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  305. ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpiPlatformDxe.inf {
  306. <LibraryClasses>
  307. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  308. }