U500.dsc 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. ## @file
  2. # RISC-V EFI on SiFive VC707 (U500) RISC-V platform
  3. #
  4. # Copyright (c) 2019-2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
  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 = FreedomU500VC707
  16. PLATFORM_GUID = 0955581C-2A6A-48F7-8690-9D275AE884F8
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x0001001c
  19. OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
  20. SUPPORTED_ARCHITECTURES = RISCV64
  21. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  22. SKUID_IDENTIFIER = DEFAULT
  23. FLASH_DEFINITION = Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf
  24. #
  25. # Enable below options may cause build error or may not work on
  26. # the initial version of RISC-V package
  27. # Defines for default states. These can be changed on the command line.
  28. # -D FLAG=VALUE
  29. #
  30. DEFINE SECURE_BOOT_ENABLE = FALSE
  31. DEFINE DEBUG_ON_SERIAL_PORT = TRUE
  32. #
  33. # Network definition
  34. #
  35. DEFINE NETWORK_SNP_ENABLE = FALSE
  36. DEFINE NETWORK_IP6_ENABLE = FALSE
  37. DEFINE NETWORK_TLS_ENABLE = FALSE
  38. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  39. DEFINE NETWORK_ISCSI_ENABLE = FALSE
  40. [BuildOptions]
  41. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  42. !ifdef $(SOURCE_DEBUG_ENABLE)
  43. GCC:*_*_RISCV64_GENFW_FLAGS = --keepexceptiontable
  44. !endif
  45. ################################################################################
  46. #
  47. # SKU Identification section - list of all SKU IDs supported by this Platform.
  48. #
  49. ################################################################################
  50. [SkuIds]
  51. 0|DEFAULT
  52. ################################################################################
  53. #
  54. # Library Class section - list of all Library Classes needed by this Platform.
  55. #
  56. ################################################################################
  57. !include MdePkg/MdeLibs.dsc.inc
  58. [LibraryClasses]
  59. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  60. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  61. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  62. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  63. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  64. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  65. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  66. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  67. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  68. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  69. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  70. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  71. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  72. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  73. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  74. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  75. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  76. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  77. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  78. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  79. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  80. SerialPortLib|Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialIoLib.inf
  81. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  82. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  83. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  84. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  85. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  86. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  87. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  88. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  89. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  90. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  91. SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
  92. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  93. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  94. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  95. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  96. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  97. # RISC-V Platform Library
  98. TimeBaseLib|EmbeddedPkg//Library/TimeBaseLib/TimeBaseLib.inf
  99. RealTimeClockLib|EmbeddedPkg//Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  100. # RISC-V Core Library
  101. RiscVOpensbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf
  102. !ifdef $(SOURCE_DEBUG_ENABLE)
  103. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  104. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  105. !else
  106. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  107. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  108. !endif
  109. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  110. !if $(SECURE_BOOT_ENABLE) == TRUE
  111. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  112. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  113. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  114. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  115. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  116. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  117. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  118. !else
  119. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  120. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  121. !endif
  122. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  123. !if $(HTTP_BOOT_ENABLE) == TRUE
  124. HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
  125. !endif
  126. # ACPI not supported yet.
  127. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  128. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  129. [LibraryClasses.common]
  130. !if $(SECURE_BOOT_ENABLE) == TRUE
  131. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  132. !endif
  133. RiscVCpuLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/RiscVCpuLib.inf
  134. RiscVEdk2SbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.inf
  135. RiscVPlatformTimerLib|Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf
  136. MachineModeTimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVReadMachineModeTimer/EmulatedMachineModeTimerLib/EmulatedMachineModeTimerLib.inf
  137. CpuExceptionHandlerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVExceptionLib/CpuExceptionHandlerDxeLib.inf
  138. # Flattened Device Tree (FDT) access library
  139. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  140. [LibraryClasses.common.SEC]
  141. !ifdef $(DEBUG_ON_SERIAL_PORT)
  142. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  143. !else
  144. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  145. !endif
  146. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  147. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  148. Edk2OpensbiPlatformWrapperLib|Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapperLib/Edk2OpensbiPlatformWrapperLib.inf
  149. RiscVSpecialPlatformLib|Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLibNull.inf
  150. !ifdef $(SOURCE_DEBUG_ENABLE)
  151. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  152. !endif
  153. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  154. #
  155. # OpenSBi Platform Library
  156. #
  157. RiscVOpensbiPlatformLib|Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  158. [LibraryClasses.common.PEI_CORE]
  159. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  160. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  161. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  162. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  163. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  164. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  165. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  166. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  167. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  168. !ifdef $(DEBUG_ON_SERIAL_PORT)
  169. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  170. !else
  171. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  172. !endif
  173. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  174. # RISC-V platform PEI core entry point.
  175. PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  176. PlatformSecPpiLib|Platform/SiFive/U5SeriesPkg/Library/PlatformSecPpiLib/PlatformSecPpiLib.inf
  177. [LibraryClasses.common.PEIM]
  178. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  179. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  180. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  181. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  182. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  183. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  184. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  185. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  186. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  187. !ifdef $(DEBUG_ON_SERIAL_PORT)
  188. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  189. !else
  190. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  191. !endif
  192. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  193. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  194. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  195. !ifdef $(SOURCE_DEBUG_ENABLE)
  196. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  197. !endif
  198. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  199. #
  200. # RISC-V core libraries
  201. #
  202. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  203. RiscVCoreplexInfoLib|Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  204. [LibraryClasses.common.DXE_CORE]
  205. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  206. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  207. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  208. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  209. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  210. !ifdef $(DEBUG_ON_SERIAL_PORT)
  211. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  212. !else
  213. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  214. !endif
  215. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  216. !ifdef $(SOURCE_DEBUG_ENABLE)
  217. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  218. !endif
  219. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  220. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  221. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  222. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  223. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  224. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  225. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  226. ResetSystemLib|Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf
  227. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  228. !ifdef $(DEBUG_ON_SERIAL_PORT)
  229. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  230. !else
  231. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  232. !endif
  233. !if $(SECURE_BOOT_ENABLE) == TRUE
  234. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  235. !endif
  236. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  237. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  238. [LibraryClasses.common.UEFI_DRIVER]
  239. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  240. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  241. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  242. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  243. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  244. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  245. !ifdef $(DEBUG_ON_SERIAL_PORT)
  246. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  247. !else
  248. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  249. !endif
  250. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  251. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  252. [LibraryClasses.common.DXE_DRIVER]
  253. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  254. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  255. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  256. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  257. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  258. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  259. !ifdef $(DEBUG_ON_SERIAL_PORT)
  260. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  261. !else
  262. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  263. !endif
  264. !ifdef $(SOURCE_DEBUG_ENABLE)
  265. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  266. !endif
  267. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  268. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  269. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  270. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  271. [LibraryClasses.common.UEFI_APPLICATION]
  272. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  273. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  274. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  275. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  276. !ifdef $(DEBUG_ON_SERIAL_PORT)
  277. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  278. !else
  279. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  280. !endif
  281. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  282. ################################################################################
  283. #
  284. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  285. #
  286. ################################################################################
  287. [PcdsFeatureFlag]
  288. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  289. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  290. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  291. [PcdsFixedAtBuild]
  292. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  293. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  294. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  295. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  296. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  297. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  298. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  299. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  300. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  301. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  302. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  303. !ifdef $(SOURCE_DEBUG_ENABLE)
  304. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  305. !else
  306. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  307. !endif
  308. !ifdef $(SOURCE_DEBUG_ENABLE)
  309. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  310. !endif
  311. #gUefiPayloadPkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
  312. !if $(SECURE_BOOT_ENABLE) == TRUE
  313. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  314. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  315. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  316. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  317. !endif
  318. #
  319. # F2 for UI APP
  320. #
  321. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  322. ################################################################################
  323. #
  324. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  325. #
  326. ################################################################################
  327. [PcdsDynamicDefault]
  328. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  329. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  330. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  331. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  332. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
  333. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  334. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  335. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  336. # Set video resolution for text setup.
  337. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  338. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  339. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  341. ################################################################################
  342. #
  343. # Components Section - list of all EDK II Modules needed by this Platform.
  344. #
  345. ################################################################################
  346. [Components]
  347. #
  348. # SEC Phase modules
  349. #
  350. Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf
  351. #
  352. # PEI Phase modules
  353. #
  354. MdeModulePkg/Core/Pei/PeiMain.inf
  355. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  356. <LibraryClasses>
  357. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  358. }
  359. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  360. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  361. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  362. <LibraryClasses>
  363. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  364. }
  365. Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf {
  366. <LibraryClasses>
  367. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  368. }
  369. Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf
  370. #
  371. # DXE Phase modules
  372. #
  373. MdeModulePkg/Core/Dxe/DxeMain.inf {
  374. <LibraryClasses>
  375. NULL|MdeModulePkg//Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  376. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  377. }
  378. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  379. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  380. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  381. <LibraryClasses>
  382. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  383. }
  384. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  385. !if $(SECURE_BOOT_ENABLE) == TRUE
  386. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  387. <LibraryClasses>
  388. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  389. }
  390. !else
  391. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  392. !endif
  393. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  394. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  395. <LibraryClasses>
  396. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  397. }
  398. MdeModulePkg/Universal/Metronome/Metronome.inf
  399. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  400. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf {
  401. <LibraryClasses>
  402. ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
  403. }
  404. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  405. #
  406. # RISC-V Platform module
  407. #
  408. Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/TimerDxe.inf
  409. Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  410. #
  411. # RISC-V Core module
  412. #
  413. Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.inf
  414. Silicon/RISC-V/ProcessorPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf
  415. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  416. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  417. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  418. <LibraryClasses>
  419. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  420. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  421. }
  422. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  423. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  424. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  425. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  426. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  427. # No graphic console supported yet.
  428. # MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  429. # <LibraryClasses>
  430. # PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  431. # }
  432. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  433. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  434. <LibraryClasses>
  435. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  436. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  437. }
  438. MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
  439. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  440. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  441. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  442. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  443. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  444. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  445. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  446. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  447. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  448. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  449. Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/DeviceTree/U500DeviceTree.inf
  450. #
  451. # SMBIOS Support
  452. #
  453. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  454. #
  455. # Network Support
  456. #
  457. !include NetworkPkg/Network.dsc.inc
  458. #
  459. # Usb Support
  460. #
  461. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  462. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  463. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  464. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  465. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  466. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  467. Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf
  468. #
  469. # FAT filesystem + GPT/MBR partitioning + UDF filesystem
  470. #
  471. FatPkg/EnhancedFatDxe/Fat.inf
  472. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  473. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  474. <PcdsFixedAtBuild>
  475. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  476. }
  477. ShellPkg/Application/Shell/Shell.inf {
  478. <LibraryClasses>
  479. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  480. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  481. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  482. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  483. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  484. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  485. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  486. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  487. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  488. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  489. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  490. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  491. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  492. <PcdsFixedAtBuild>
  493. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  494. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  495. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  496. }
  497. !if $(SECURE_BOOT_ENABLE) == TRUE
  498. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  499. !endif
  500. MdeModulePkg/Application/UiApp/UiApp.inf