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