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