U540.dsc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. ## @file
  2. # RISC-V EFI on SiFive Freedom U540 HiFive Unleashed RISC-V platform
  3. #
  4. # Copyright (c) 2019, 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. [LibraryClasses]
  58. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  59. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  60. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  61. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  62. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  63. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  64. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  65. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  66. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  67. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  68. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  69. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  70. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  71. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  72. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  73. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  74. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  75. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  76. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  77. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  78. SerialPortLib|Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialIoLib.inf
  79. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  80. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  81. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  82. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  83. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  84. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  85. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  86. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  87. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  88. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  89. SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
  90. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  91. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  92. # RISC-V Platform Library
  93. TimeBaseLib|EmbeddedPkg//Library/TimeBaseLib/TimeBaseLib.inf
  94. RealTimeClockLib|EmbeddedPkg//Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  95. # RISC-V Core Library
  96. RiscVOpensbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf
  97. !ifdef $(SOURCE_DEBUG_ENABLE)
  98. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  99. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  100. !else
  101. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  102. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  103. !endif
  104. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  105. !if $(SECURE_BOOT_ENABLE) == TRUE
  106. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  107. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  108. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  109. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  110. !else
  111. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  112. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  113. !endif
  114. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  115. !if $(HTTP_BOOT_ENABLE) == TRUE
  116. HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
  117. !endif
  118. # ACPI not supported yet.
  119. #S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  120. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  121. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  122. [LibraryClasses.common]
  123. !if $(SECURE_BOOT_ENABLE) == TRUE
  124. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  125. !endif
  126. RiscVCpuLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/RiscVCpuLib.inf
  127. RiscVEdk2SbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.inf
  128. RiscVPlatformTimerLib|Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf
  129. CpuExceptionHandlerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVExceptionLib/CpuExceptionHandlerDxeLib.inf
  130. [LibraryClasses.common.SEC]
  131. !ifdef $(DEBUG_ON_SERIAL_PORT)
  132. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  133. !else
  134. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  135. !endif
  136. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  137. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  138. !ifdef $(SOURCE_DEBUG_ENABLE)
  139. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  140. !endif
  141. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  142. #
  143. # OpenSBi Platform Library
  144. #
  145. RiscVOpensbiPlatformLib|Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  146. [LibraryClasses.common.PEI_CORE]
  147. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  148. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  149. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  150. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  151. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  152. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  153. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  154. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  155. !ifdef $(DEBUG_ON_SERIAL_PORT)
  156. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  157. !else
  158. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  159. !endif
  160. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  161. [LibraryClasses.common.PEIM]
  162. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  163. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  164. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  165. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  166. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  167. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  168. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  169. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  170. !ifdef $(DEBUG_ON_SERIAL_PORT)
  171. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  172. !else
  173. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  174. !endif
  175. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  176. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  177. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  178. !ifdef $(SOURCE_DEBUG_ENABLE)
  179. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  180. !endif
  181. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  182. #
  183. # RISC-V core libraries
  184. #
  185. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  186. SiliconSiFiveU5MCCoreplexInfoLib|Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  187. [LibraryClasses.common.DXE_CORE]
  188. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  189. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  190. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  191. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  192. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  193. !ifdef $(DEBUG_ON_SERIAL_PORT)
  194. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  195. !else
  196. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  197. !endif
  198. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  199. !ifdef $(SOURCE_DEBUG_ENABLE)
  200. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  201. !endif
  202. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  203. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  204. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  205. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  206. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  207. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  208. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  209. !ifdef $(DEBUG_ON_SERIAL_PORT)
  210. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  211. !else
  212. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  213. !endif
  214. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  215. !if $(SECURE_BOOT_ENABLE) == TRUE
  216. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  217. !endif
  218. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  219. [LibraryClasses.common.UEFI_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/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  226. !ifdef $(DEBUG_ON_SERIAL_PORT)
  227. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  228. !else
  229. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  230. !endif
  231. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  232. [LibraryClasses.common.DXE_DRIVER]
  233. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  234. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  235. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  236. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  237. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  238. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  239. !ifdef $(DEBUG_ON_SERIAL_PORT)
  240. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  241. !else
  242. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  243. !endif
  244. !ifdef $(SOURCE_DEBUG_ENABLE)
  245. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  246. !endif
  247. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  248. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  249. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  250. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  251. [LibraryClasses.common.UEFI_APPLICATION]
  252. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  253. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  254. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  255. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  256. !ifdef $(DEBUG_ON_SERIAL_PORT)
  257. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  258. !else
  259. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  260. !endif
  261. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  262. ################################################################################
  263. #
  264. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  265. #
  266. ################################################################################
  267. [PcdsFeatureFlag]
  268. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  269. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  270. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  271. [PcdsFixedAtBuild]
  272. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  273. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  274. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  275. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  276. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  277. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  278. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  279. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  280. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  281. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  282. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  283. !ifdef $(SOURCE_DEBUG_ENABLE)
  284. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  285. !else
  286. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  287. !endif
  288. !ifdef $(SOURCE_DEBUG_ENABLE)
  289. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  290. !endif
  291. !if $(SECURE_BOOT_ENABLE) == TRUE
  292. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  293. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  294. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  295. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  296. !endif
  297. #
  298. # F2 for UI APP
  299. #
  300. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  301. ################################################################################
  302. #
  303. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  304. #
  305. ################################################################################
  306. [PcdsDynamicDefault]
  307. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  308. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  309. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  310. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  311. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
  312. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  313. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  314. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  315. # Set video resolution for text setup.
  316. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  317. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  318. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  319. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  320. ################################################################################
  321. #
  322. # Components Section - list of all EDK II Modules needed by this Platform.
  323. #
  324. ################################################################################
  325. [Components]
  326. #
  327. # SEC Phase modules
  328. #
  329. Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf
  330. #
  331. # PEI Phase modules
  332. #
  333. MdeModulePkg/Core/Pei/PeiMain.inf
  334. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  335. <LibraryClasses>
  336. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  337. }
  338. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  339. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  340. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  341. <LibraryClasses>
  342. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  343. }
  344. Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/PlatformPei.inf {
  345. <LibraryClasses>
  346. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  347. }
  348. #
  349. # DXE Phase modules
  350. #
  351. MdeModulePkg/Core/Dxe/DxeMain.inf {
  352. <LibraryClasses>
  353. NULL|MdeModulePkg//Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  354. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  355. }
  356. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  357. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  358. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  359. <LibraryClasses>
  360. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  361. }
  362. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  363. !if $(SECURE_BOOT_ENABLE) == TRUE
  364. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  365. <LibraryClasses>
  366. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  367. }
  368. !else
  369. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  370. !endif
  371. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  372. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  373. <LibraryClasses>
  374. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  375. }
  376. MdeModulePkg/Universal/Metronome/Metronome.inf
  377. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  378. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf {
  379. <LibraryClasses>
  380. ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
  381. }
  382. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  383. #
  384. # RISC-V Platform module
  385. #
  386. Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/TimerDxe.inf
  387. Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  388. #
  389. # RISC-V Core module
  390. #
  391. Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.inf
  392. Silicon/RISC-V/ProcessorPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf
  393. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  394. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  395. <LibraryClasses>
  396. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  397. }
  398. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  399. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  400. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  401. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  402. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  403. # No graphic console supported yet.
  404. # MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  405. # <LibraryClasses>
  406. # PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  407. # }
  408. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  409. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  410. <LibraryClasses>
  411. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  412. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  413. }
  414. MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
  415. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  416. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  417. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  418. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  419. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  420. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  421. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  422. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  423. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  424. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  425. #
  426. # SMBIOS Support
  427. #
  428. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  429. #
  430. # Network Support
  431. #
  432. !include NetworkPkg/Network.dsc.inc
  433. #
  434. # Usb Support
  435. #
  436. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  437. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  438. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  439. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  440. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  441. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  442. ShellPkg/Application/Shell/Shell.inf {
  443. <LibraryClasses>
  444. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  445. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  446. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  447. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  448. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  449. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  450. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  451. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  452. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  453. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  454. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  455. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  456. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  457. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  458. <PcdsFixedAtBuild>
  459. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  460. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  461. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  462. }
  463. !if $(SECURE_BOOT_ENABLE) == TRUE
  464. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  465. !endif
  466. MdeModulePkg/Application/UiApp/UiApp.inf