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