U500.dsc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. ## @file
  2. # RISC-V EFI on SiFive VC707 (U500) 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 = 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. [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. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  120. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  121. [LibraryClasses.common]
  122. !if $(SECURE_BOOT_ENABLE) == TRUE
  123. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  124. !endif
  125. RiscVCpuLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/RiscVCpuLib.inf
  126. RiscVEdk2SbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.inf
  127. RiscVPlatformTimerLib|Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf
  128. CpuExceptionHandlerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVExceptionLib/CpuExceptionHandlerDxeLib.inf
  129. [LibraryClasses.common.SEC]
  130. !ifdef $(DEBUG_ON_SERIAL_PORT)
  131. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  132. !else
  133. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  134. !endif
  135. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  136. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  137. !ifdef $(SOURCE_DEBUG_ENABLE)
  138. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  139. !endif
  140. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  141. #
  142. # OpenSBi Platform Library
  143. #
  144. RiscVOpensbiPlatformLib|Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  145. [LibraryClasses.common.PEI_CORE]
  146. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  147. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  148. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  149. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  150. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  151. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  152. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  153. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  154. !ifdef $(DEBUG_ON_SERIAL_PORT)
  155. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  156. !else
  157. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  158. !endif
  159. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  160. [LibraryClasses.common.PEIM]
  161. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  162. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  163. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  164. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  165. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.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. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  176. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  177. !ifdef $(SOURCE_DEBUG_ENABLE)
  178. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  179. !endif
  180. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  181. #
  182. # RISC-V core libraries
  183. #
  184. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  185. SiliconSiFiveU5MCCoreplexInfoLib|Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  186. [LibraryClasses.common.DXE_CORE]
  187. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  188. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  189. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  190. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  191. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  192. !ifdef $(DEBUG_ON_SERIAL_PORT)
  193. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  194. !else
  195. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  196. !endif
  197. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  198. !ifdef $(SOURCE_DEBUG_ENABLE)
  199. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  200. !endif
  201. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  202. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  203. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  204. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  205. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  206. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  207. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  208. !ifdef $(DEBUG_ON_SERIAL_PORT)
  209. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  210. !else
  211. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  212. !endif
  213. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  214. !if $(SECURE_BOOT_ENABLE) == TRUE
  215. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  216. !endif
  217. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  218. [LibraryClasses.common.UEFI_DRIVER]
  219. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  220. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  221. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  222. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  223. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  224. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  225. !ifdef $(DEBUG_ON_SERIAL_PORT)
  226. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  227. !else
  228. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  229. !endif
  230. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  231. [LibraryClasses.common.DXE_DRIVER]
  232. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  233. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  234. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  235. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  236. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  237. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  238. !ifdef $(DEBUG_ON_SERIAL_PORT)
  239. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  240. !else
  241. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  242. !endif
  243. !ifdef $(SOURCE_DEBUG_ENABLE)
  244. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  245. !endif
  246. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  247. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  248. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  249. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  250. [LibraryClasses.common.UEFI_APPLICATION]
  251. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  252. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  253. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  254. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  255. !ifdef $(DEBUG_ON_SERIAL_PORT)
  256. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  257. !else
  258. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  259. !endif
  260. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  261. ################################################################################
  262. #
  263. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  264. #
  265. ################################################################################
  266. [PcdsFeatureFlag]
  267. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  268. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  269. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  270. [PcdsFixedAtBuild]
  271. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  272. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  273. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  274. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  275. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  276. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  277. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  278. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  279. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  280. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  281. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  282. !ifdef $(SOURCE_DEBUG_ENABLE)
  283. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  284. !else
  285. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  286. !endif
  287. !ifdef $(SOURCE_DEBUG_ENABLE)
  288. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  289. !endif
  290. #gUefiPayloadPkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
  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/FreedomU500VC707Board/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