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