DeveloperBox.dsc.inc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. #
  2. # Copyright (c) 2013-2014, ARM Limited. All rights reserved.
  3. # Copyright (c) 2017-2018, Linaro Limited. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. ################################################################################
  8. #
  9. # Defines Section - statements that will be processed to create a Makefile.
  10. #
  11. ################################################################################
  12. [BuildOptions]
  13. RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
  14. # add ample padding to the DTC so we can apply 96boards mezzanine overlays
  15. *_*_*_DTC_FLAGS = -p 1024
  16. [BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
  17. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  18. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  19. GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000
  20. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  21. [LibraryClasses]
  22. ArmPlatformLib|Silicon/Socionext/SynQuacer/Library/SynQuacerLib/SynQuacerLib.inf
  23. ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
  24. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  25. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  26. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  27. !if $(TARGET) == RELEASE
  28. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  29. !else
  30. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  31. !endif
  32. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  33. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  34. # ARM Architectural Libraries
  35. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  36. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  37. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  38. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  39. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  40. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  41. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  42. ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
  43. ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf
  44. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
  45. OpteeLib|ArmPkg/Library/OpteeLib/OpteeLib.inf
  46. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  47. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  48. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  49. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  50. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  51. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  52. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  53. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  54. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  55. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  56. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  57. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  58. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  59. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  60. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  61. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  62. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  63. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  64. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  65. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  66. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  67. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  68. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  69. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  70. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  71. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  72. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  73. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  74. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  75. # BDS Libraries
  76. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  77. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  78. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  79. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  80. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  81. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  82. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  83. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  84. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  85. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  86. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  87. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  88. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  89. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  90. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  91. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  92. TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
  93. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  94. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  95. PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
  96. NorFlashInfoLib|EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf
  97. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  98. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  99. [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.MM_STANDALONE]
  100. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  101. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  102. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  103. ################################################################################
  104. #
  105. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  106. #
  107. ################################################################################
  108. [PcdsFeatureFlag]
  109. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  110. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  111. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  112. gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|FALSE
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|TRUE
  114. # needed for NFIT tables installed by RamDiskDxe
  115. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  116. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  117. [PcdsFixedAtBuild.common]
  118. !ifdef $(FIRMWARE_VENDOR)
  119. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)"
  120. !endif
  121. # non-secure SRAM
  122. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000
  123. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0xF000
  124. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24
  125. gArmPlatformTokenSpaceGuid.PcdCoreCount|2
  126. gArmPlatformTokenSpaceGuid.PcdClusterCount|12
  127. gArmTokenSpaceGuid.PcdArmPrimaryCore|0x0
  128. !if $(ARCH) == AARCH64
  129. gArmTokenSpaceGuid.PcdVFPEnabled|1
  130. !endif
  131. ## PL011 - Serial Terminal
  132. gArmPlatformTokenSpaceGuid.PL011UartInteger|0
  133. gArmPlatformTokenSpaceGuid.PL011UartFractional|0
  134. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|62500000
  135. ## DesignWare FUART
  136. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
  137. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
  138. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|62500000
  139. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|4
  140. ## Shared UART settings
  141. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  142. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  143. #
  144. # ARM Generic Interrupt Controller
  145. #
  146. gArmTokenSpaceGuid.PcdGicDistributorBase|0x30000000
  147. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x30400000
  148. #
  149. # Generic watchdog
  150. #
  151. gArmTokenSpaceGuid.PcdGenericWatchdogControlBase|0x2a440000
  152. gArmTokenSpaceGuid.PcdGenericWatchdogRefreshBase|0x2a450000
  153. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  154. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  155. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  156. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  157. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  158. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  159. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  160. # DEBUG_ASSERT_ENABLED 0x01
  161. # DEBUG_PRINT_ENABLED 0x02
  162. # DEBUG_CODE_ENABLED 0x04
  163. # CLEAR_MEMORY_ENABLED 0x08
  164. # ASSERT_BREAKPOINT_ENABLED 0x10
  165. # ASSERT_DEADLOOP_ENABLED 0x20
  166. !if $(TARGET) == RELEASE
  167. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  168. !else
  169. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x3f
  170. !endif
  171. # DEBUG_INIT 0x00000001 // Initialization
  172. # DEBUG_WARN 0x00000002 // Warnings
  173. # DEBUG_LOAD 0x00000004 // Load events
  174. # DEBUG_FS 0x00000008 // EFI File system
  175. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  176. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  177. # DEBUG_INFO 0x00000040 // Informational debug messages
  178. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  179. # DEBUG_VARIABLE 0x00000100 // Variable
  180. # DEBUG_BM 0x00000400 // Boot Manager
  181. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  182. # DEBUG_NET 0x00004000 // SNP Driver
  183. # DEBUG_UNDI 0x00010000 // UNDI Driver
  184. # DEBUG_LOADFILE 0x00020000 // LoadFile
  185. # DEBUG_EVENT 0x00080000 // Event messages
  186. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  187. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  188. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  189. # // significantly impact boot performance
  190. # DEBUG_ERROR 0x80000000 // Error
  191. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  192. #
  193. # Optional feature to help prevent EFI memory map fragments
  194. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  195. # Values are in EFI Pages (4K). DXE Core will make sure that
  196. # at least this much of each type of memory can be allocated
  197. # from a single memory range. This way you only end up with
  198. # maximum of two fragements for each type in the memory map
  199. # (the memory used, and the free memory that was prereserved
  200. # but not used).
  201. #
  202. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  203. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  204. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  205. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|2000
  206. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|1000
  207. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|2000
  208. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000
  209. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  210. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  211. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  212. # use the TTY terminal type
  213. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  214. # GUID of the UI app
  215. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  216. #
  217. # Enable strict image permissions for all images. (This applies
  218. # only to images that were built with >= 4 KB section alignment.)
  219. #
  220. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  221. #
  222. # Enable NX memory protection for all non-code regions, including OEM and OS
  223. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  224. # (i.e., GRUB) may assume that its contents are executable.
  225. #
  226. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  227. #
  228. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  229. #
  230. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  231. #
  232. # Variable store
  233. #
  234. gFip006DxeTokenSpaceGuid.PcdFip006DxeRegBaseAddress|0x54800000
  235. gFip006DxeTokenSpaceGuid.PcdFip006DxeMemBaseAddress|0x08000000
  236. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x08400000
  237. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
  238. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x08410000
  239. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
  240. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x08420000
  241. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
  242. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId|"SNI "
  243. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemTableId|0x52434155514e5953 # SYNQUACR
  244. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId|0x4f524e4c # LNRO
  245. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision|1
  246. !if $(BUILD_NUMBER) > 1
  247. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(BUILD_NUMBER)"
  248. !endif
  249. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision|$(BUILD_NUMBER)
  250. #
  251. # NOTE: this platform is not fully secure (the NOR flash is mapped non-secure)
  252. # and so the MM based secure boot implementation it provides should be treated
  253. # as a reference only. For this reason, it does not make a lot of sense to
  254. # implement an elaborate PlatformSecureLib implementation that can assert
  255. # physical presence, and instead, we'll stick with the default PCD based one.
  256. #
  257. gEfiSecurityPkgTokenSpaceGuid.PcdUserPhysicalPresence|TRUE
  258. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  259. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  260. [PcdsPatchableInModule]
  261. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
  262. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
  263. [PcdsDynamicExDefault.common.DEFAULT]
  264. gEfiMdeModulePkgTokenSpaceGuid.PcdSystemFmpCapsuleImageTypeIdGuid|{0xe5, 0x4c, 0xb9, 0x50, 0x63, 0x8b, 0x49, 0x48, 0x8a, 0xf4, 0xea, 0x47, 0x93, 0x56, 0xf0, 0xe3}
  265. [PcdsDynamicHii]
  266. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  267. [PcdsDynamicDefault]
  268. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0000000000000000
  269. gArmTokenSpaceGuid.PcdSystemMemorySize|0xFFFFFFFFFFFFFFFF