EmbeddedPkg.dsc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. #/** @file
  2. # Embedded Package
  3. #
  4. #
  5. # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
  6. # Copyright (c) 2012-2015, ARM Ltd. All rights reserved.<BR>
  7. # Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
  8. #
  9. # SPDX-License-Identifier: BSD-2-Clause-Patent
  10. #
  11. #**/
  12. ################################################################################
  13. #
  14. # Defines Section - statements that will be processed to create a Makefile.
  15. #
  16. ################################################################################
  17. [Defines]
  18. PLATFORM_NAME = Embedded
  19. PLATFORM_GUID = 8DBB580B-CF89-4D57-95C6-DFE96C44686E
  20. PLATFORM_VERSION = 0.1
  21. DSC_SPECIFICATION = 0x00010005
  22. OUTPUT_DIRECTORY = Build/Embedded
  23. SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64
  24. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  25. SKUID_IDENTIFIER = DEFAULT
  26. ################################################################################
  27. #
  28. # SKU Identification section - list of all SKU IDs supported by this
  29. # Platform.
  30. #
  31. ################################################################################
  32. [SkuIds]
  33. 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
  34. ################################################################################
  35. #
  36. # Library Class section - list of all Library Classes needed by this Platform.
  37. #
  38. ################################################################################
  39. [LibraryClasses.common]
  40. # DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
  41. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  42. AndroidBootImgLib|EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf
  43. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  44. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  45. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  46. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  47. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  48. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  49. ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  50. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  51. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  52. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  53. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  54. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  55. SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  56. RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
  57. EfiResetSystemLib|EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
  58. GdbSerialLib|EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
  59. #
  60. # Need to change this for IPF
  61. #
  62. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  63. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  64. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  65. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  66. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  67. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  68. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  69. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  70. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  71. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  72. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  73. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  74. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  75. AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
  76. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  77. # Shell libraries
  78. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  79. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  80. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  81. # Networking Requirements
  82. NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
  83. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  84. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  85. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  86. DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
  87. [LibraryClasses.common.DXE_DRIVER]
  88. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  89. ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
  90. [LibraryClasses.common.UEFI_APPLICATION]
  91. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  92. ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
  93. [LibraryClasses.common.UEFI_DRIVER]
  94. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  95. ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
  96. [LibraryClasses.common.SEC]
  97. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  98. [LibraryClasses.ARM, LibraryClasses.AARCH64]
  99. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  100. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  101. SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
  102. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  103. # Add support for GCC stack protector
  104. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  105. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  106. ################################################################################
  107. #
  108. # Pcd Section - list of all PCD Entries defined by this Platform
  109. #
  110. ################################################################################
  111. [PcdsFeatureFlag.common]
  112. gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
  113. gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
  114. gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
  115. gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
  116. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
  117. [PcdsFixedAtBuild.common]
  118. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  119. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  120. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  121. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  122. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
  123. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
  124. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
  125. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  126. gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
  127. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  128. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
  129. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
  130. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  131. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
  132. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
  133. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
  134. gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
  135. gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
  136. #
  137. # Optinal feature to help prevent EFI memory map fragments
  138. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  139. # Values are in EFI Pages (4K). DXE Core will make sure that
  140. # at least this much of each type of memory can be allocated
  141. # from a single memory range. This way you only end up with
  142. # maximum of two fragements for each type in the memory map
  143. # (the memory used, and the free memory that was prereserved
  144. # but not used).
  145. #
  146. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  147. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  148. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  149. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
  150. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
  151. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
  152. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
  153. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
  154. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  155. #
  156. # Timer config for this platform
  157. #
  158. gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
  159. gEmbeddedTokenSpaceGuid.PcdTimerVector|7
  160. gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
  161. [BuildOptions]
  162. RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu=7-A.security
  163. *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
  164. ################################################################################
  165. #
  166. # Components Section - list of all Modules needed by this Platform
  167. #
  168. ################################################################################
  169. [Components.common]
  170. EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
  171. EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
  172. EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  173. EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  174. EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
  175. EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
  176. EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
  177. EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
  178. EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
  179. EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  180. EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
  181. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  182. EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
  183. EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
  184. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf {
  185. <LibraryClasses>
  186. TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
  187. }
  188. EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
  189. # Drivers
  190. EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
  191. EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132Dxe.inf
  192. EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
  193. EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  194. EmbeddedPkg/Library/FdtLib/FdtLib.inf
  195. EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  196. EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  197. EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.inf
  198. EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
  199. [Components.ARM]
  200. EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf
  201. [Components.ARM, Components.AARCH64]
  202. EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf
  203. EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
  204. EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
  205. EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
  206. [Components.IA32, Components.X64, Components.ARM]
  207. EmbeddedPkg/GdbStub/GdbStub.inf