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