ArmVirt.dsc.inc 19 KB

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