ArmVirtKvmTool.dsc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. # @file
  2. # Workspace file for KVMTool virtual platform.
  3. #
  4. # Copyright (c) 2018 - 2022, ARM Limited. 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 = ArmVirtKvmTool
  16. PLATFORM_GUID = 4CB2C61E-FA32-4130-8E37-54ABC71A1A43
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x0001001B
  19. !ifdef $(EDK2_OUT_DIR)
  20. OUTPUT_DIRECTORY = $(EDK2_OUT_DIR)
  21. !else
  22. OUTPUT_DIRECTORY = Build/ArmVirtKvmTool-$(ARCH)
  23. !endif
  24. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  25. BUILD_TARGETS = DEBUG|RELEASE
  26. SKUID_IDENTIFIER = DEFAULT
  27. FLASH_DEFINITION = ArmVirtPkg/ArmVirtKvmTool.fdf
  28. [Defines.AARCH64]
  29. DEFINE ACPIVIEW_ENABLE = TRUE
  30. !include ArmVirtPkg/ArmVirt.dsc.inc
  31. !if $(ARCH) == AARCH64
  32. !include DynamicTablesPkg/DynamicTables.dsc.inc
  33. !endif
  34. !include MdePkg/MdeLibs.dsc.inc
  35. [LibraryClasses.common]
  36. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  37. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  38. # Virtio Support
  39. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  40. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  41. ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
  42. ArmVirtMemInfoLib|ArmVirtPkg/Library/KvmtoolVirtMemInfoLib/KvmtoolVirtMemInfoLib.inf
  43. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  44. NorFlashPlatformLib|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
  45. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  46. # BDS Libraries
  47. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  48. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  49. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  50. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  51. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  52. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  53. PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  54. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  55. PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
  56. PciHostBridgeUtilityLib|ArmVirtPkg/Library/ArmVirtPciHostBridgeUtilityLib/ArmVirtPciHostBridgeUtilityLib.inf
  57. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  58. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  59. PlatformPeiLib|ArmVirtPkg/Library/KvmtoolPlatformPeiLib/KvmtoolPlatformPeiLib.inf
  60. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  61. PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/Fdt16550SerialPortHookLib.inf
  62. SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
  63. HwInfoParserLib|DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf
  64. DynamicPlatRepoLib|DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoLib.inf
  65. [LibraryClasses.common.SEC, LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
  66. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  67. PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
  68. SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
  69. [LibraryClasses.common.UEFI_DRIVER]
  70. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  71. [BuildOptions]
  72. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  73. #
  74. # We need to avoid jump tables in SEC and BASE modules, so that the PE/COFF
  75. # self-relocation code itself is guaranteed to be position independent.
  76. #
  77. GCC:*_*_*_CC_XIPFLAGS = -fno-jump-tables
  78. ################################################################################
  79. #
  80. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  81. #
  82. ################################################################################
  83. [PcdsFeatureFlag.common]
  84. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  85. # It could be set FALSE to save size.
  86. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  87. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  88. # Use MMIO for accessing RTC controller registers.
  89. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcUseMmio|TRUE
  90. [PcdsFixedAtBuild.common]
  91. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
  92. gArmPlatformTokenSpaceGuid.PcdCoreCount|1
  93. !if $(ARCH) == AARCH64
  94. gArmTokenSpaceGuid.PcdVFPEnabled|1
  95. !endif
  96. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  97. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  98. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  99. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  100. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  101. #
  102. # TTY Terminal Type
  103. # 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  104. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  105. #
  106. # ARM Virtual Architectural Timer -- fetch frequency from KVM
  107. #
  108. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  109. # Use MMIO for accessing Serial port registers.
  110. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
  111. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
  112. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  114. #
  115. # The maximum physical I/O addressability of the processor, set with
  116. # BuildCpuHob().
  117. #
  118. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  119. [PcdsPatchableInModule.common]
  120. #
  121. # This will be overridden in the code
  122. #
  123. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
  124. gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
  125. #
  126. # The device tree base address is handed off by kvmtool.
  127. # We are booting from RAM using the Linux kernel boot protocol,
  128. # x0 will point to the DTB image in memory.
  129. #
  130. gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
  131. gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
  132. gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
  133. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
  134. [PcdsDynamicHii]
  135. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  136. [PcdsDynamicDefault.common]
  137. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  138. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
  139. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
  140. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
  141. #
  142. # ARM General Interrupt Controller
  143. #
  144. gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
  145. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
  146. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
  147. #
  148. # PCI settings
  149. #
  150. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  151. # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
  152. # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
  153. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
  154. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
  155. #
  156. # Set video resolution for boot options and for text setup.
  157. # PlatformDxe can set the former at runtime.
  158. #
  159. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  160. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  161. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  162. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  163. # Setup Flash storage variables
  164. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0
  165. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
  166. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  167. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x40000
  168. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  169. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x40000
  170. ## RTC Register address in MMIO space.
  171. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister64|0x0
  172. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64|0x0
  173. ################################################################################
  174. #
  175. # Components Section - list of all EDK II Modules needed by this Platform
  176. #
  177. ################################################################################
  178. [Components.common]
  179. #
  180. # PEI Phase modules
  181. #
  182. ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
  183. <LibraryClasses>
  184. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  185. LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  186. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  187. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  188. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  189. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  190. }
  191. #
  192. # DXE
  193. #
  194. MdeModulePkg/Core/Dxe/DxeMain.inf {
  195. <LibraryClasses>
  196. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  197. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  198. }
  199. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  200. <LibraryClasses>
  201. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  202. }
  203. #
  204. # Architectural Protocols
  205. #
  206. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  207. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  208. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  209. <LibraryClasses>
  210. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  211. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  212. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  213. }
  214. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  215. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  216. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf {
  217. <LibraryClasses>
  218. NULL|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
  219. }
  220. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  221. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  222. MdeModulePkg/Universal/Metronome/Metronome.inf
  223. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {
  224. <LibraryClasses>
  225. NULL|ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
  226. }
  227. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  228. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  229. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  230. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  231. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  232. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  233. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  234. ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
  235. <LibraryClasses>
  236. NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
  237. }
  238. ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
  239. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  240. #
  241. # Platform Driver
  242. #
  243. ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.inf
  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
  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. #
  260. # Bds
  261. #
  262. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  263. <LibraryClasses>
  264. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  265. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  266. }
  267. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  268. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  269. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  270. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  271. MdeModulePkg/Logo/LogoDxe.inf
  272. MdeModulePkg/Application/UiApp/UiApp.inf {
  273. <LibraryClasses>
  274. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  275. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  276. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  277. }
  278. #
  279. # SCSI Bus and Disk Driver
  280. #
  281. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  282. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  283. #
  284. # PCI support
  285. #
  286. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
  287. <LibraryClasses>
  288. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  289. NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  290. }
  291. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  292. <LibraryClasses>
  293. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  294. NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  295. }
  296. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  297. <LibraryClasses>
  298. NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
  299. NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  300. }
  301. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  302. OvmfPkg/Virtio10Dxe/Virtio10.inf
  303. !if $(ARCH) == AARCH64
  304. #
  305. # ACPI Support
  306. #
  307. ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf
  308. !endif