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