SbsaQemu.dsc 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. #
  2. # Copyright (c) 2019, Linaro Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-2-Clause-Patent
  5. #
  6. ################################################################################
  7. #
  8. # Defines Section - statements that will be processed to create a Makefile.
  9. #
  10. ################################################################################
  11. [Defines]
  12. PLATFORM_NAME = SbsaQemu
  13. PLATFORM_GUID = feb0325c-b93d-4e47-8844-b832adeb9e0c
  14. PLATFORM_VERSION = 0.1
  15. DSC_SPECIFICATION = 0x00010005
  16. OUTPUT_DIRECTORY = Build/SbsaQemu
  17. SUPPORTED_ARCHITECTURES = AARCH64
  18. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  19. SKUID_IDENTIFIER = DEFAULT
  20. FLASH_DEFINITION = Platform/Qemu/SbsaQemu/SbsaQemu.fdf
  21. #
  22. # Defines for default states. These can be changed on the command line.
  23. # -D FLAG=VALUE
  24. #
  25. DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
  26. #
  27. # Network definition
  28. #
  29. DEFINE NETWORK_SNP_ENABLE = FALSE
  30. DEFINE NETWORK_IP6_ENABLE = FALSE
  31. DEFINE NETWORK_TLS_ENABLE = FALSE
  32. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  33. ################################################################################
  34. #
  35. # Library Class section - list of all Library Classes needed by this Platform.
  36. #
  37. ################################################################################
  38. [LibraryClasses.common]
  39. !if $(TARGET) == RELEASE
  40. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  41. !else
  42. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  43. !endif
  44. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  45. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  46. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  47. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  48. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  49. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  50. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  51. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  52. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  53. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
  54. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  55. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  56. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  57. HobLib|ArmVirtPkg/Library/ArmVirtDxeHobLib/ArmVirtDxeHobLib.inf
  58. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  59. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  60. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  61. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  62. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  63. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  64. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  65. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  66. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  67. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  68. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  69. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  70. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  71. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  72. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  73. #
  74. # Ramdisk Requirements
  75. #
  76. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  77. # Allow dynamic PCDs
  78. #
  79. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  80. # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
  81. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  82. #
  83. # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.
  84. # This library provides the instrinsic functions such a compiler may generate calls to.
  85. #
  86. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  87. # Add support for GCC stack protector
  88. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  89. # ARM Architectural Libraries
  90. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  91. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  92. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  93. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  94. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  95. ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
  96. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  97. ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
  98. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
  99. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  100. MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
  101. ResetSystemLib|ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf
  102. # ARM PL031 RTC Driver
  103. RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
  104. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  105. # ARM PL011 UART Driver
  106. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  107. # Debug Support
  108. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  109. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  110. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  111. # PCI Libraries
  112. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  113. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  114. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  115. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  116. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  117. # USB Libraries
  118. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  119. #
  120. # CryptoPkg libraries needed by multiple firmware features
  121. #
  122. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  123. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  124. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  125. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  126. #
  127. # Secure Boot dependencies
  128. #
  129. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  130. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  131. # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
  132. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  133. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  134. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  135. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  136. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  137. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  138. ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
  139. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  140. NorFlashPlatformLib|Silicon/Qemu/SbsaQemu/Library/SbsaQemuNorFlashLib/SbsaQemuNorFlashLib.inf
  141. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  142. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  143. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  144. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  145. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  146. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  147. PciHostBridgeLib|Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHostBridgeLib.inf
  148. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  149. # Serial driver
  150. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  151. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  152. [LibraryClasses.common.SEC]
  153. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  154. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  155. DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
  156. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  157. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  158. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  159. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  160. [LibraryClasses.common.PEI_CORE]
  161. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  162. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  163. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  164. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  165. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  166. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  167. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  168. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  169. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  170. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  171. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  172. [LibraryClasses.common.PEIM]
  173. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  174. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  175. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  176. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  177. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  178. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  179. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  180. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  181. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  182. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  183. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  184. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  185. ArmPlatformLib|Silicon/Qemu/SbsaQemu/Library/SbsaQemuLib/SbsaQemuLib.inf
  186. [LibraryClasses.common.DXE_CORE]
  187. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  188. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  189. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  190. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  191. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  192. [LibraryClasses.common.DXE_DRIVER]
  193. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  194. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  195. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  196. NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
  197. [LibraryClasses.common.UEFI_APPLICATION]
  198. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  199. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  200. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  201. [LibraryClasses.common.UEFI_DRIVER]
  202. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  203. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  204. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  205. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  206. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  207. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  208. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  209. !if $(TARGET) != RELEASE
  210. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  211. !endif
  212. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  213. ###################################################################################################
  214. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  215. # the default flags for a module. These flags are appended to any
  216. # standard flags that are defined by the build process.
  217. ###################################################################################################
  218. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  219. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  220. [BuildOptions]
  221. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  222. ################################################################################
  223. #
  224. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  225. #
  226. ################################################################################
  227. [PcdsFeatureFlag.common]
  228. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  229. # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
  230. gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
  231. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  232. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  233. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
  234. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
  235. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  236. # It could be set FALSE to save size.
  237. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  238. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  239. [PcdsFixedAtBuild.common]
  240. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  241. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  242. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  243. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  244. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  245. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  246. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  247. # DEBUG_ASSERT_ENABLED 0x01
  248. # DEBUG_PRINT_ENABLED 0x02
  249. # DEBUG_CODE_ENABLED 0x04
  250. # CLEAR_MEMORY_ENABLED 0x08
  251. # ASSERT_BREAKPOINT_ENABLED 0x10
  252. # ASSERT_DEADLOOP_ENABLED 0x20
  253. !if $(TARGET) == RELEASE
  254. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  255. !else
  256. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  257. !endif
  258. # DEBUG_INIT 0x00000001 // Initialization
  259. # DEBUG_WARN 0x00000002 // Warnings
  260. # DEBUG_LOAD 0x00000004 // Load events
  261. # DEBUG_FS 0x00000008 // EFI File system
  262. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  263. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  264. # DEBUG_INFO 0x00000040 // Informational debug messages
  265. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  266. # DEBUG_VARIABLE 0x00000100 // Variable
  267. # DEBUG_BM 0x00000400 // Boot Manager
  268. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  269. # DEBUG_NET 0x00004000 // SNP Driver
  270. # DEBUG_UNDI 0x00010000 // UNDI Driver
  271. # DEBUG_LOADFILE 0x00020000 // LoadFile
  272. # DEBUG_EVENT 0x00080000 // Event messages
  273. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  274. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  275. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  276. # // significantly impact boot performance
  277. # DEBUG_ERROR 0x80000000 // Error
  278. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
  279. #
  280. # Optional feature to help prevent EFI memory map fragments
  281. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  282. # Values are in EFI Pages (4K). DXE Core will make sure that
  283. # at least this much of each type of memory can be allocated
  284. # from a single memory range. This way you only end up with
  285. # maximum of two fragements for each type in the memory map
  286. # (the memory used, and the free memory that was prereserved
  287. # but not used).
  288. #
  289. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  290. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
  291. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
  292. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
  293. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  294. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  295. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  296. # Override the default values from SecurityPkg to ensure images
  297. # from all sources are verified in secure boot
  298. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  299. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  300. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  301. #
  302. # Enable strict image permissions for all images. (This applies
  303. # only to images that were built with >= 4 KB section alignment.)
  304. #
  305. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  306. #
  307. # Enable NX memory protection for all non-code regions, including OEM and OS
  308. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  309. # (i.e., GRUB) may assume that its contents are executable.
  310. #
  311. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  312. #
  313. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  314. #
  315. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  316. gArmTokenSpaceGuid.PcdVFPEnabled|1
  317. # System Memory Base -- fixed
  318. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x10000000000
  319. # Space for 32 stacks
  320. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x1000007c000
  321. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  322. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  323. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  324. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  325. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  326. #
  327. # ARM General Interrupt Controller
  328. #
  329. gArmTokenSpaceGuid.PcdGicDistributorBase|0x40060000
  330. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x40080000
  331. ## Default Terminal Type
  332. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  333. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  334. #
  335. # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
  336. #
  337. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  338. gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
  339. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  341. #
  342. # The maximum physical I/O addressability of the processor, set with
  343. # BuildCpuHob().
  344. #
  345. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  346. # Initial Device Tree Location
  347. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x10000000000
  348. # Non discoverable devices (AHCI,EHCI)
  349. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformAhciBase|0x60100000
  350. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformAhciSize|0x00010000
  351. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciBase|0x60110000
  352. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciSize|0x00010000
  353. # PL011 - Serial Terminal
  354. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x60000000
  355. # Timer IRQs
  356. # PPI #13
  357. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|29
  358. # PPI #14
  359. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|30
  360. # PPI #11
  361. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|27
  362. # PPI #10
  363. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|26
  364. ## PL031 RealTimeClock
  365. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x60010000
  366. # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
  367. # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
  368. # presence of the 32-bit entry point anyway (because many AARCH64 systems
  369. # don't have 32-bit addressable physical RAM), and the additional allocations
  370. # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
  371. # point only, for entry point versions >= 3.0.
  372. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  373. #
  374. # PLDA PCI Root Complex
  375. #
  376. # ECAM size == 0x10000000
  377. gArmTokenSpaceGuid.PcdPciBusMin|0
  378. gArmTokenSpaceGuid.PcdPciBusMax|255
  379. gArmTokenSpaceGuid.PcdPciIoBase|0x0
  380. gArmTokenSpaceGuid.PcdPciIoSize|0x00010000
  381. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciIoLimit|0x0000ffff
  382. gArmTokenSpaceGuid.PcdPciMmio32Base|0x80000000
  383. gArmTokenSpaceGuid.PcdPciMmio32Size|0x70000000
  384. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciMmio32Limit|0xEFFFFFFF
  385. gArmTokenSpaceGuid.PcdPciMmio64Base|0x100000000
  386. gArmTokenSpaceGuid.PcdPciMmio64Size|0xFF00000000
  387. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciMmio64Limit|0xFFFFFFFFFF
  388. # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
  389. # PCD and PcdPciDisableBusEnumeration have not been assigned yet
  390. # TODO: PcdPciExpressBaseAddress set to max_uint64
  391. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xf0000000
  392. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciExpressBarSize|0x10000000
  393. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciExpressBarLimit|0xFFFFFFFF
  394. gArmTokenSpaceGuid.PcdPciIoTranslation|0x7fff0000
  395. gArmTokenSpaceGuid.PcdPciMmio32Translation|0x0
  396. gArmTokenSpaceGuid.PcdPciMmio64Translation|0x0
  397. ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
  398. # enumeration to complete before installing ACPI tables.
  399. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
  400. [PcdsDynamicDefault.common]
  401. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  402. # Core and Cluster Count
  403. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdCoreCount|1
  404. gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdClusterCount|1
  405. # System Memory Size -- 128 MB initially, actual size will be fetched from DT
  406. # TODO as no DT will be used we should pass this by some other method
  407. gArmTokenSpaceGuid.PcdSystemMemorySize|0x08000000
  408. #
  409. # Set video resolution for boot options
  410. # PlatformDxe can set the former at runtime.
  411. #
  412. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  413. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  414. # Set video resolution for text setup.
  415. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  416. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  417. #
  418. # SMBIOS entry point version
  419. #
  420. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
  421. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  422. ################################################################################
  423. #
  424. # Components Section - list of all EDK II Modules needed by this Platform
  425. #
  426. ################################################################################
  427. [Components.common]
  428. #
  429. # Ramdisk support
  430. #
  431. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  432. #
  433. # UEFI application (Shell Embedded Boot Loader)
  434. #
  435. ShellPkg/Application/Shell/Shell.inf {
  436. <LibraryClasses>
  437. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  438. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  439. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  440. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  441. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  442. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  443. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  444. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  445. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  446. !if $(NETWORK_IP6_ENABLE) == TRUE
  447. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  448. !endif
  449. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  450. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  451. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  452. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  453. <PcdsFixedAtBuild>
  454. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  455. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  456. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  457. }
  458. #
  459. # PEI Phase modules
  460. #
  461. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  462. MdeModulePkg/Core/Pei/PeiMain.inf
  463. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  464. <LibraryClasses>
  465. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  466. }
  467. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  468. ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  469. ArmPkg/Drivers/CpuPei/CpuPei.inf
  470. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  471. <LibraryClasses>
  472. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  473. }
  474. #
  475. # DXE
  476. #
  477. MdeModulePkg/Core/Dxe/DxeMain.inf {
  478. <LibraryClasses>
  479. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  480. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  481. }
  482. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  483. <LibraryClasses>
  484. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  485. }
  486. #
  487. # Architectural Protocols
  488. #
  489. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  490. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  491. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  492. <LibraryClasses>
  493. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  494. # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
  495. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  496. }
  497. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  498. <LibraryClasses>
  499. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  500. }
  501. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  502. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  503. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  504. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  505. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  506. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  507. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  508. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  509. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  510. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  511. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  512. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  513. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  514. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  515. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  516. ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
  517. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  518. #
  519. # FAT filesystem + GPT/MBR partitioning
  520. #
  521. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  522. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  523. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  524. FatPkg/EnhancedFatDxe/Fat.inf
  525. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  526. #
  527. # Bds
  528. #
  529. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  530. <LibraryClasses>
  531. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  532. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  533. }
  534. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  535. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  536. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  537. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  538. MdeModulePkg/Logo/LogoDxe.inf
  539. MdeModulePkg/Application/UiApp/UiApp.inf {
  540. <LibraryClasses>
  541. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  542. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  543. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  544. }
  545. #
  546. # Networking stack
  547. #
  548. !include NetworkPkg/Network.dsc.inc
  549. # NonDiscoverableDevices
  550. Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.inf
  551. MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
  552. # IDE/AHCI Support
  553. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  554. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  555. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  556. #
  557. # SCSI Bus and Disk Driver
  558. #
  559. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  560. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  561. #
  562. # PCI support
  563. #
  564. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
  565. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  566. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  567. #
  568. # Video support (VGA)
  569. #
  570. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  571. #
  572. # USB Support
  573. #
  574. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  575. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  576. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  577. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  578. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  579. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  580. #
  581. # ACPI Support
  582. !include Silicon/Qemu/SbsaQemu/Acpi.dsc.inc
  583. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf