U540.dsc 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. ## @file
  2. # RISC-V EFI on SiFive Freedom U540 HiFive Unleashed 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 = FreedomU540HiFiveUnleashed
  16. PLATFORM_GUID = 8317E90F-428B-403F-9057-112B0C19008E
  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/FreedomU540HiFiveUnleashedBoard/U540.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. #S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  128. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  129. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  130. [LibraryClasses.common]
  131. !if $(SECURE_BOOT_ENABLE) == TRUE
  132. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  133. !endif
  134. RiscVCpuLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/RiscVCpuLib.inf
  135. RiscVEdk2SbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.inf
  136. RiscVPlatformTimerLib|Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf
  137. #MachineModeTimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVReadMachineModeTimer/MachineModeTimerLib/MachineModeTimerLib.inf
  138. MachineModeTimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVReadMachineModeTimer/EmulatedMachineModeTimerLib/EmulatedMachineModeTimerLib.inf
  139. CpuExceptionHandlerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVExceptionLib/CpuExceptionHandlerDxeLib.inf
  140. # Flattened Device Tree (FDT) access library
  141. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  142. [LibraryClasses.common.SEC]
  143. !ifdef $(DEBUG_ON_SERIAL_PORT)
  144. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  145. !else
  146. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  147. !endif
  148. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  149. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  150. Edk2OpensbiPlatformWrapperLib|Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapperLib/Edk2OpensbiPlatformWrapperLib.inf
  151. RiscVSpecialPlatformLib|Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/RiscVSpecialPlatformLib/RiscVSpecialPlatformLib.inf
  152. !ifdef $(SOURCE_DEBUG_ENABLE)
  153. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  154. !endif
  155. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  156. #
  157. # OpenSBi Platform Library
  158. #
  159. RiscVOpensbiPlatformLib|Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  160. [LibraryClasses.common.PEI_CORE]
  161. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  162. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  163. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  164. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  165. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  166. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  167. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  168. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  169. !ifdef $(DEBUG_ON_SERIAL_PORT)
  170. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  171. !else
  172. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  173. !endif
  174. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  175. # RISC-V platform PEI core entry point.
  176. PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  177. PlatformSecPpiLib|Platform/SiFive/U5SeriesPkg/Library/PlatformSecPpiLib/PlatformSecPpiLib.inf
  178. [LibraryClasses.common.PEIM]
  179. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  180. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  181. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  182. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  183. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  184. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  185. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  186. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  187. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  188. !ifdef $(DEBUG_ON_SERIAL_PORT)
  189. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  190. !else
  191. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  192. !endif
  193. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  194. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  195. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  196. !ifdef $(SOURCE_DEBUG_ENABLE)
  197. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  198. !endif
  199. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  200. #
  201. # RISC-V core libraries
  202. #
  203. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  204. RiscVCoreplexInfoLib|Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  205. [LibraryClasses.common.DXE_CORE]
  206. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  207. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  208. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  209. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  210. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  211. !ifdef $(DEBUG_ON_SERIAL_PORT)
  212. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  213. !else
  214. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  215. !endif
  216. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  217. !ifdef $(SOURCE_DEBUG_ENABLE)
  218. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  219. !endif
  220. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  221. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  222. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  223. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  224. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  225. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  226. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  227. ResetSystemLib|Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf
  228. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  229. !ifdef $(DEBUG_ON_SERIAL_PORT)
  230. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  231. !else
  232. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  233. !endif
  234. !if $(SECURE_BOOT_ENABLE) == TRUE
  235. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  236. !endif
  237. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  238. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  239. [LibraryClasses.common.UEFI_DRIVER]
  240. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  241. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  242. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  243. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  244. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  245. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  246. !ifdef $(DEBUG_ON_SERIAL_PORT)
  247. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  248. !else
  249. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  250. !endif
  251. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  252. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  253. [LibraryClasses.common.DXE_DRIVER]
  254. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  255. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  256. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  257. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  258. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  259. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  260. !ifdef $(DEBUG_ON_SERIAL_PORT)
  261. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  262. !else
  263. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  264. !endif
  265. !ifdef $(SOURCE_DEBUG_ENABLE)
  266. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  267. !endif
  268. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  269. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  270. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  271. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  272. [LibraryClasses.common.UEFI_APPLICATION]
  273. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  274. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  275. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  276. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  277. !ifdef $(DEBUG_ON_SERIAL_PORT)
  278. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  279. !else
  280. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  281. !endif
  282. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  283. ################################################################################
  284. #
  285. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  286. #
  287. ################################################################################
  288. [PcdsFeatureFlag]
  289. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  290. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  291. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  292. [PcdsFixedAtBuild]
  293. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  294. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  295. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  296. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  297. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  298. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  299. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  300. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  301. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  302. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  303. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  304. !ifdef $(SOURCE_DEBUG_ENABLE)
  305. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  306. !else
  307. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  308. !endif
  309. !ifdef $(SOURCE_DEBUG_ENABLE)
  310. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  311. !endif
  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/FreedomU540HiFiveUnleashedBoard/DeviceTree/U540DeviceTree.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. <LibraryClasses>
  477. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  478. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  479. }
  480. ShellPkg/Application/Shell/Shell.inf {
  481. <LibraryClasses>
  482. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  483. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  484. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  485. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  486. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  487. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  488. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  489. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  490. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  491. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  492. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  493. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  494. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  495. <PcdsFixedAtBuild>
  496. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  497. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  498. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  499. }
  500. !if $(SECURE_BOOT_ENABLE) == TRUE
  501. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  502. !endif
  503. MdeModulePkg/Application/UiApp/UiApp.inf