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