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