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