ArmVirt.dsc.inc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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. #
  106. # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
  107. # in the debugger will show load and unload commands for symbols. You can cut and paste this
  108. # into the command window to load symbols. We should be able to use a script to do this, but
  109. # the version of RVD I have does not support scripts accessing system memory.
  110. #
  111. #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
  112. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  113. #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  114. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  115. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  116. # Flattened Device Tree (FDT) access library
  117. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  118. # PCI Libraries
  119. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  120. PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
  121. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  122. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  123. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  124. DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
  125. # USB Libraries
  126. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  127. XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
  128. #
  129. # CryptoPkg libraries needed by multiple firmware features
  130. #
  131. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  132. !if $(NETWORK_TLS_ENABLE) == TRUE
  133. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  134. !else
  135. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  136. !endif
  137. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  138. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  139. #
  140. # Secure Boot dependencies
  141. #
  142. !if $(SECURE_BOOT_ENABLE) == TRUE
  143. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  144. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  145. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  146. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  147. # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
  148. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  149. !else
  150. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  151. !endif
  152. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  153. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  154. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  155. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  156. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  157. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  158. [LibraryClasses.common.SEC]
  159. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  160. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  161. DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
  162. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
  163. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  164. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  165. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  166. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  167. [LibraryClasses.common.PEI_CORE]
  168. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  169. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  170. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  171. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  172. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  173. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  174. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  175. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  176. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  177. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  178. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  179. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
  180. [LibraryClasses.common.PEIM]
  181. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  182. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  183. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  184. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  185. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  186. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  187. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  188. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  189. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  190. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  191. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  192. SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
  193. [LibraryClasses.common.DXE_CORE]
  194. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  195. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  196. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  197. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  198. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  199. [LibraryClasses.common.DXE_DRIVER]
  200. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  201. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  202. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  203. [LibraryClasses.common.UEFI_APPLICATION]
  204. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  205. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  206. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  207. [LibraryClasses.common.UEFI_DRIVER]
  208. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  209. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  210. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  211. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  212. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  213. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  214. !if $(TARGET) != RELEASE
  215. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  216. !endif
  217. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  218. !if $(SECURE_BOOT_ENABLE) == TRUE
  219. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  220. !endif
  221. [LibraryClasses.ARM]
  222. ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
  223. [BuildOptions]
  224. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  225. #
  226. # Disable deprecated APIs.
  227. #
  228. GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
  229. ################################################################################
  230. #
  231. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  232. #
  233. ################################################################################
  234. [PcdsFeatureFlag.common]
  235. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  236. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  237. [PcdsFeatureFlag.AARCH64]
  238. #
  239. # Activate AcpiSdtProtocol
  240. #
  241. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  242. [PcdsFixedAtBuild.common]
  243. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  244. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  245. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  246. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  247. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  248. # DEBUG_ASSERT_ENABLED 0x01
  249. # DEBUG_PRINT_ENABLED 0x02
  250. # DEBUG_CODE_ENABLED 0x04
  251. # CLEAR_MEMORY_ENABLED 0x08
  252. # ASSERT_BREAKPOINT_ENABLED 0x10
  253. # ASSERT_DEADLOOP_ENABLED 0x20
  254. !if $(TARGET) == RELEASE
  255. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  256. !else
  257. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  258. !endif
  259. # DEBUG_INIT 0x00000001 // Initialization
  260. # DEBUG_WARN 0x00000002 // Warnings
  261. # DEBUG_LOAD 0x00000004 // Load events
  262. # DEBUG_FS 0x00000008 // EFI File system
  263. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  264. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  265. # DEBUG_INFO 0x00000040 // Informational debug messages
  266. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  267. # DEBUG_VARIABLE 0x00000100 // Variable
  268. # DEBUG_BM 0x00000400 // Boot Manager
  269. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  270. # DEBUG_NET 0x00004000 // SNP Driver
  271. # DEBUG_UNDI 0x00010000 // UNDI Driver
  272. # DEBUG_LOADFILE 0x00020000 // LoadFile
  273. # DEBUG_EVENT 0x00080000 // Event messages
  274. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  275. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  276. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  277. # // significantly impact boot performance
  278. # DEBUG_ERROR 0x80000000 // Error
  279. !if $(TARGET) != RELEASE
  280. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
  281. !endif
  282. #
  283. # Optional feature to help prevent EFI memory map fragments
  284. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  285. # Values are in EFI Pages (4K). DXE Core will make sure that
  286. # at least this much of each type of memory can be allocated
  287. # from a single memory range. This way you only end up with
  288. # maximum of two fragments for each type in the memory map
  289. # (the memory used, and the free memory that was prereserved
  290. # but not used).
  291. #
  292. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  293. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  294. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  295. !if $(SECURE_BOOT_ENABLE) == TRUE
  296. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
  297. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
  298. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
  299. !else
  300. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
  301. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
  302. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
  303. !endif
  304. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  305. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  306. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  307. #
  308. # Enable strict image permissions for all images. (This applies
  309. # only to images that were built with >= 4 KB section alignment.)
  310. #
  311. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  312. #
  313. # Enable NX memory protection for all non-code regions, including OEM and OS
  314. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  315. # (i.e., GRUB) may assume that its contents are executable.
  316. #
  317. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  318. [Components.common]
  319. #
  320. # Ramdisk support
  321. #
  322. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  323. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  324. <PcdsFixedAtBuild>
  325. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  326. }
  327. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  328. <PcdsFixedAtBuild>
  329. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  330. }
  331. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  332. <PcdsFixedAtBuild>
  333. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  334. }
  335. ShellPkg/Application/Shell/Shell.inf {
  336. <LibraryClasses>
  337. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  338. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  339. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  340. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  341. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  342. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  343. !if $(ACPIVIEW_ENABLE) == TRUE
  344. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  345. !endif
  346. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  347. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  348. !if $(NETWORK_IP6_ENABLE) == TRUE
  349. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  350. !endif
  351. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  352. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  353. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  354. <PcdsFixedAtBuild>
  355. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  356. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  357. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  358. }
  359. [Components.AARCH64]
  360. #
  361. # ACPI Support
  362. #
  363. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
  364. <LibraryClasses>
  365. NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
  366. }
  367. #
  368. # EBC support
  369. #
  370. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf