ArmVirt.dsc.inc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. #
  2. # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
  3. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  4. # Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. #
  9. [Defines]
  10. DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
  11. [BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
  12. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  13. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  14. GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000
  15. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  16. RVCT:*_*_ARM_DLINK_FLAGS = --scatter $(EDK_TOOLS_PATH)/Scripts/Rvct-Align4K.sct
  17. [LibraryClasses.common]
  18. !if $(TARGET) == RELEASE
  19. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  20. !else
  21. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  22. !endif
  23. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  24. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  25. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  26. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  27. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  28. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  29. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  30. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  31. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  32. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
  33. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  34. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  35. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  36. HobLib|ArmVirtPkg/Library/ArmVirtDxeHobLib/ArmVirtDxeHobLib.inf
  37. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  38. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  39. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  40. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  41. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  42. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  43. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  44. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  45. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  46. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  47. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  48. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  49. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  50. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  51. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  52. #
  53. # Ramdisk Requirements
  54. #
  55. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  56. # Allow dynamic PCDs
  57. #
  58. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  59. # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
  60. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  61. # Networking Requirements
  62. NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
  63. DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
  64. UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
  65. IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
  66. TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
  67. !if $(HTTP_BOOT_ENABLE) == TRUE
  68. HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
  69. !endif
  70. #
  71. # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.
  72. # This library provides the instrinsic functions such a compiler may generate calls to.
  73. #
  74. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  75. # Add support for GCC stack protector
  76. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  77. # ARM Architectural Libraries
  78. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  79. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  80. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  81. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  82. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  83. ArmGicArchLib|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf
  84. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  85. ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
  86. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
  87. PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf
  88. MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf
  89. ResetSystemLib|ArmVirtPkg/Library/ArmVirtPsciResetSystemLib/ArmVirtPsciResetSystemLib.inf
  90. # ARM PL031 RTC Driver
  91. RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
  92. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  93. # ARM PL011 UART Driver
  94. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  95. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf
  96. #
  97. # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
  98. # in the debugger will show load and unload commands for symbols. You can cut and paste this
  99. # into the command window to load symbols. We should be able to use a script to do this, but
  100. # the version of RVD I have does not support scripts accessing system memory.
  101. #
  102. #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
  103. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  104. #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  105. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  106. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  107. # Flattened Device Tree (FDT) access library
  108. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  109. # PCI Libraries
  110. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  111. PciExpressLib|ArmVirtPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  112. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  113. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  114. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  115. # USB Libraries
  116. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  117. XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
  118. #
  119. # CryptoPkg libraries needed by multiple firmware features
  120. #
  121. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  122. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  123. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  124. #
  125. # Secure Boot dependencies
  126. #
  127. !if $(SECURE_BOOT_ENABLE) == TRUE
  128. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  129. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  130. # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
  131. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  132. !else
  133. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  134. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  135. !endif
  136. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  137. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  138. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  139. [LibraryClasses.common.SEC]
  140. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  141. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  142. DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
  143. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
  144. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  145. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  146. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  147. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  148. [LibraryClasses.common.PEI_CORE]
  149. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  150. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  151. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  152. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  153. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  154. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  155. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  156. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  157. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  158. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  159. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  160. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
  161. [LibraryClasses.common.PEIM]
  162. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  163. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  164. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  165. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  166. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  167. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  168. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  169. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  170. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  171. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  172. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  173. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
  174. [LibraryClasses.common.DXE_CORE]
  175. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  176. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  177. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  178. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  179. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  180. [LibraryClasses.common.DXE_DRIVER]
  181. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  182. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  183. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  184. [LibraryClasses.common.UEFI_APPLICATION]
  185. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  186. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  187. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  188. [LibraryClasses.common.UEFI_DRIVER]
  189. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  190. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  191. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  192. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  193. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  194. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  195. !if $(TARGET) != RELEASE
  196. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  197. !endif
  198. !if $(SECURE_BOOT_ENABLE) == TRUE
  199. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  200. !endif
  201. [LibraryClasses.ARM]
  202. ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
  203. [BuildOptions]
  204. RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  205. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  206. #
  207. # Disable deprecated APIs.
  208. #
  209. RVCT:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
  210. GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
  211. ################################################################################
  212. #
  213. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  214. #
  215. ################################################################################
  216. [PcdsFeatureFlag.common]
  217. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  218. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  219. [PcdsFeatureFlag.AARCH64]
  220. #
  221. # Activate AcpiSdtProtocol
  222. #
  223. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  224. [PcdsFixedAtBuild.common]
  225. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  226. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  227. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  228. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  229. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  230. # DEBUG_ASSERT_ENABLED 0x01
  231. # DEBUG_PRINT_ENABLED 0x02
  232. # DEBUG_CODE_ENABLED 0x04
  233. # CLEAR_MEMORY_ENABLED 0x08
  234. # ASSERT_BREAKPOINT_ENABLED 0x10
  235. # ASSERT_DEADLOOP_ENABLED 0x20
  236. !if $(TARGET) == RELEASE
  237. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  238. !else
  239. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  240. !endif
  241. # DEBUG_INIT 0x00000001 // Initialization
  242. # DEBUG_WARN 0x00000002 // Warnings
  243. # DEBUG_LOAD 0x00000004 // Load events
  244. # DEBUG_FS 0x00000008 // EFI File system
  245. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  246. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  247. # DEBUG_INFO 0x00000040 // Informational debug messages
  248. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  249. # DEBUG_VARIABLE 0x00000100 // Variable
  250. # DEBUG_BM 0x00000400 // Boot Manager
  251. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  252. # DEBUG_NET 0x00004000 // SNP Driver
  253. # DEBUG_UNDI 0x00010000 // UNDI Driver
  254. # DEBUG_LOADFILE 0x00020000 // LoadFile
  255. # DEBUG_EVENT 0x00080000 // Event messages
  256. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  257. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  258. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  259. # // significantly impact boot performance
  260. # DEBUG_ERROR 0x80000000 // Error
  261. !if $(TARGET) != RELEASE
  262. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
  263. !endif
  264. #
  265. # Optional feature to help prevent EFI memory map fragments
  266. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  267. # Values are in EFI Pages (4K). DXE Core will make sure that
  268. # at least this much of each type of memory can be allocated
  269. # from a single memory range. This way you only end up with
  270. # maximum of two fragments for each type in the memory map
  271. # (the memory used, and the free memory that was prereserved
  272. # but not used).
  273. #
  274. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  275. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  276. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  277. !if $(SECURE_BOOT_ENABLE) == TRUE
  278. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
  279. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
  280. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
  281. !else
  282. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
  283. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
  284. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
  285. !endif
  286. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  287. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  288. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  289. #
  290. # Enable strict image permissions for all images. (This applies
  291. # only to images that were built with >= 4 KB section alignment.)
  292. #
  293. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  294. #
  295. # Enable NX memory protection for all non-code regions, including OEM and OS
  296. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  297. # (i.e., GRUB) may assume that its contents are executable.
  298. #
  299. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  300. [Components.common]
  301. #
  302. # Ramdisk support
  303. #
  304. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  305. #
  306. # UEFI application (Shell Embedded Boot Loader)
  307. #
  308. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  309. <PcdsFixedAtBuild>
  310. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  311. }
  312. ShellPkg/Application/Shell/Shell.inf {
  313. <LibraryClasses>
  314. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  315. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  316. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  317. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  318. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  319. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  320. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  321. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  322. !if $(NETWORK_IP6_ENABLE) == TRUE
  323. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  324. !endif
  325. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  326. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  327. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  328. <PcdsFixedAtBuild>
  329. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  330. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  331. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  332. }
  333. [Components.AARCH64]
  334. #
  335. # ACPI Support
  336. #
  337. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
  338. <LibraryClasses>
  339. NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
  340. }
  341. #
  342. # EBC support
  343. #
  344. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf