DeveloperBox.dsc.inc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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. NorFlashPlatformLib|Silicon/Socionext/SynQuacer/Library/NorFlashSynQuacerLib/NorFlashSynQuacerLib.inf
  98. ################################################################################
  99. #
  100. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  101. #
  102. ################################################################################
  103. [PcdsFeatureFlag]
  104. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  105. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  106. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  107. gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|FALSE
  108. gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|TRUE
  109. # needed for NFIT tables installed by RamDiskDxe
  110. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  111. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  112. [PcdsFixedAtBuild.common]
  113. !ifdef $(FIRMWARE_VENDOR)
  114. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)"
  115. !endif
  116. # non-secure SRAM
  117. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000
  118. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0xFFC0
  119. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24
  120. gArmPlatformTokenSpaceGuid.PcdCoreCount|2
  121. gArmPlatformTokenSpaceGuid.PcdClusterCount|12
  122. gArmTokenSpaceGuid.PcdArmPrimaryCore|0x0
  123. !if $(ARCH) == AARCH64
  124. gArmTokenSpaceGuid.PcdVFPEnabled|1
  125. !endif
  126. ## PL011 - Serial Terminal
  127. gArmPlatformTokenSpaceGuid.PL011UartInteger|0
  128. gArmPlatformTokenSpaceGuid.PL011UartFractional|0
  129. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|62500000
  130. ## DesignWare FUART
  131. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
  132. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
  133. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|62500000
  134. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|4
  135. ## Shared UART settings
  136. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  137. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  138. #
  139. # ARM Generic Interrupt Controller
  140. #
  141. gArmTokenSpaceGuid.PcdGicDistributorBase|0x30000000
  142. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x30400000
  143. #
  144. # Generic watchdog
  145. #
  146. gArmTokenSpaceGuid.PcdGenericWatchdogControlBase|0x2a440000
  147. gArmTokenSpaceGuid.PcdGenericWatchdogRefreshBase|0x2a450000
  148. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  149. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  150. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  151. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  152. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  153. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  154. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  155. # DEBUG_ASSERT_ENABLED 0x01
  156. # DEBUG_PRINT_ENABLED 0x02
  157. # DEBUG_CODE_ENABLED 0x04
  158. # CLEAR_MEMORY_ENABLED 0x08
  159. # ASSERT_BREAKPOINT_ENABLED 0x10
  160. # ASSERT_DEADLOOP_ENABLED 0x20
  161. !if $(TARGET) == RELEASE
  162. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  163. !else
  164. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x3f
  165. !endif
  166. # DEBUG_INIT 0x00000001 // Initialization
  167. # DEBUG_WARN 0x00000002 // Warnings
  168. # DEBUG_LOAD 0x00000004 // Load events
  169. # DEBUG_FS 0x00000008 // EFI File system
  170. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  171. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  172. # DEBUG_INFO 0x00000040 // Informational debug messages
  173. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  174. # DEBUG_VARIABLE 0x00000100 // Variable
  175. # DEBUG_BM 0x00000400 // Boot Manager
  176. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  177. # DEBUG_NET 0x00004000 // SNP Driver
  178. # DEBUG_UNDI 0x00010000 // UNDI Driver
  179. # DEBUG_LOADFILE 0x00020000 // LoadFile
  180. # DEBUG_EVENT 0x00080000 // Event messages
  181. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  182. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  183. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  184. # // significantly impact boot performance
  185. # DEBUG_ERROR 0x80000000 // Error
  186. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  187. #
  188. # Optional feature to help prevent EFI memory map fragments
  189. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  190. # Values are in EFI Pages (4K). DXE Core will make sure that
  191. # at least this much of each type of memory can be allocated
  192. # from a single memory range. This way you only end up with
  193. # maximum of two fragements for each type in the memory map
  194. # (the memory used, and the free memory that was prereserved
  195. # but not used).
  196. #
  197. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  198. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  199. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  200. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|2000
  201. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|1000
  202. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|2000
  203. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000
  204. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  205. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  206. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  207. # use the TTY terminal type
  208. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  209. # GUID of the UI app
  210. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  211. #
  212. # Enable strict image permissions for all images. (This applies
  213. # only to images that were built with >= 4 KB section alignment.)
  214. #
  215. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  216. #
  217. # Enable NX memory protection for all non-code regions, including OEM and OS
  218. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  219. # (i.e., GRUB) may assume that its contents are executable.
  220. #
  221. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  222. #
  223. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  224. #
  225. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  226. #
  227. # Variable store
  228. #
  229. gFip006DxeTokenSpaceGuid.PcdFip006DxeRegBaseAddress|0x54800000
  230. gFip006DxeTokenSpaceGuid.PcdFip006DxeMemBaseAddress|0x08000000
  231. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x08400000
  232. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
  233. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x08410000
  234. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
  235. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x08420000
  236. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
  237. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId|"SNI "
  238. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemTableId|0x52434155514e5953 # SYNQUACR
  239. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId|0x4f524e4c # LNRO
  240. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision|1
  241. !if $(BUILD_NUMBER) > 1
  242. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(BUILD_NUMBER)"
  243. !endif
  244. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision|$(BUILD_NUMBER)
  245. #
  246. # NOTE: this platform is not fully secure (the NOR flash is mapped non-secure)
  247. # and so the MM based secure boot implementation it provides should be treated
  248. # as a reference only. For this reason, it does not make a lot of sense to
  249. # implement an elaborate PlatformSecureLib implementation that can assert
  250. # physical presence, and instead, we'll stick with the default PCD based one.
  251. #
  252. gEfiSecurityPkgTokenSpaceGuid.PcdUserPhysicalPresence|TRUE
  253. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  254. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  255. [PcdsPatchableInModule]
  256. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
  257. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
  258. [PcdsDynamicExDefault.common.DEFAULT]
  259. gEfiMdeModulePkgTokenSpaceGuid.PcdSystemFmpCapsuleImageTypeIdGuid|{0xe5, 0x4c, 0xb9, 0x50, 0x63, 0x8b, 0x49, 0x48, 0x8a, 0xf4, 0xea, 0x47, 0x93, 0x56, 0xf0, 0xe3}
  260. [PcdsDynamicHii]
  261. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  262. [PcdsDynamicDefault]
  263. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0000000000000000
  264. gArmTokenSpaceGuid.PcdSystemMemorySize|0xFFFFFFFFFFFFFFFF