TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmVirt.dsc.inc
1#
2# Copyright (c) 2011 - 2022, 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# Copyright (c) Microsoft Corporation.
6#
7# SPDX-License-Identifier: BSD-2-Clause-Patent
8#
9#
10
11[Defines]
12 DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
13
14!if $(TARGET) != NOOPT
15 DEFINE FD_SIZE_IN_MB = 2
16!else
17 DEFINE FD_SIZE_IN_MB = 3
18!endif
19
20!if $(FD_SIZE_IN_MB) == 2
21 DEFINE FD_SIZE = 0x200000
22 DEFINE FD_NUM_BLOCKS = 0x200
23!endif
24!if $(FD_SIZE_IN_MB) == 3
25 DEFINE FD_SIZE = 0x300000
26 DEFINE FD_NUM_BLOCKS = 0x300
27!endif
28
29[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
30 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
31
32[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
33 GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000
34 GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
35
36[LibraryClasses.common]
37!if $(TARGET) == RELEASE
38 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
39!else
40 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartRam.inf
41!endif
42 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
43
44 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
45 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
46 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
47 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
48 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
49 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
50 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
51 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
52 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
53 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
54 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
55 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
56
57 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
58 HobLib|ArmVirtPkg/Library/ArmVirtDxeHobLib/ArmVirtDxeHobLib.inf
59 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
60 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
61 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
62 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
63 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
64 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
65 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
66 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
67 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
68 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
69 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
70 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
71 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
72
73 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
74 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
75
76 #
77 # Ramdisk Requirements
78 #
79 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
80
81 # Allow dynamic PCDs
82 #
83 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
84
85 # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
86 BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
87
88 # Networking Requirements
89!include NetworkPkg/NetworkLibs.dsc.inc
90
91 # ARM Architectural Libraries
92 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
93 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
94 CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
95 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
96 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
97 ArmGicArchLib|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.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 ResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
105
106 # ARM PL031 RTC Driver
107 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
108 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
109 # ARM PL011 UART Driver
110 PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
111 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf
112 FdtSerialPortAddressLib|OvmfPkg/Library/FdtSerialPortAddressLib/FdtSerialPortAddressLib.inf
113
114 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
115 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
116
117 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
118 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
119
120 # Flattened Device Tree (FDT) access library
121 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
122
123 # PCI Libraries
124 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
125 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
126 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
127 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
128 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
129 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
130
131 # USB Libraries
132 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
133
134 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
135
136 #
137 # CryptoPkg libraries needed by multiple firmware features
138 #
139 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
140!if $(NETWORK_TLS_ENABLE) == TRUE
141 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
142!else
143 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
144!endif
145 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
146 ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
147 ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
148
149 #
150 # Secure Boot dependencies
151 #
152!if $(SECURE_BOOT_ENABLE) == TRUE
153 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
154 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
155 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
156 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
157
158 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
159 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
160!else
161 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
162!endif
163 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
164 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
165 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
166 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
167 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
168
169 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
170
171[LibraryClasses.common.SEC]
172 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
173 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
174
175 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
176 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
177 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
178 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
179 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
180 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
181!if $(TARGET) != RELEASE
182 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
183!endif
184
185[LibraryClasses.common.PEI_CORE]
186 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
187 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
188 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
189 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
190 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
191 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
192 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
193 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
194 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
195 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
196
197 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
198 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
199!if $(TARGET) != RELEASE
200 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
201!endif
202
203[LibraryClasses.common.PEIM]
204 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
205 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
206 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
207 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
208 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
209 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
210 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
211 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
212 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
213 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
214
215 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
216 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
217!if $(TARGET) != RELEASE
218 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
219!endif
220
221[LibraryClasses.common.UEFI_DRIVER]
222 # resolve RngLib via RngDxe's EFI_RNG_PROTOCOL for UEFI_DRIVER type drivers such as TlsDxe
223 RngLib|MdePkg/Library/DxeRngLib/DxeRngLib.inf
224
225[LibraryClasses.common.DXE_CORE]
226 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
227 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
228 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
229 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
230 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
231
232[LibraryClasses.common.DXE_DRIVER]
233 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
234 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
235 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
236
237[LibraryClasses.common.UEFI_APPLICATION]
238 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
239 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
240 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
241
242[LibraryClasses.common.UEFI_DRIVER]
243 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
244 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
245 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
246
247[LibraryClasses.common.DXE_RUNTIME_DRIVER]
248 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
249 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
250!if $(TARGET) != RELEASE
251 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DxeRuntimeDebugLibFdtPL011Uart.inf
252!endif
253 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
254
255[LibraryClasses.AARCH64.DXE_RUNTIME_DRIVER]
256 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
257
258[LibraryClasses.ARM.DXE_RUNTIME_DRIVER]
259 BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/RuntimeCryptLib.inf
260
261[LibraryClasses.AARCH64]
262 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
263 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
264
265[LibraryClasses.ARM]
266 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
267 BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/BaseCryptLib.inf
268 MbedTlsLib|CryptoPkg/Library/MbedTlsLib/MbedTlsLib.inf
269 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
270
271[BuildOptions]
272 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
273
274 #
275 # Disable deprecated APIs.
276 #
277 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
278
279################################################################################
280#
281# Pcd Section - list of all EDK II PCD Entries defined by this Platform
282#
283################################################################################
284
285[PcdsFeatureFlag.common]
286 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
287
288 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
289
290[PcdsFeatureFlag.AARCH64]
291 #
292 # Activate AcpiSdtProtocol
293 #
294 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
295
296[PcdsFixedAtBuild.common]
297 gArmTokenSpaceGuid.PcdMonitorConduitHvc|TRUE
298
299!ifdef $(FIRMWARE_VER)
300 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
301!endif
302
303 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
304 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
305 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
306 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
307 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
308
309 # DEBUG_ASSERT_ENABLED 0x01
310 # DEBUG_PRINT_ENABLED 0x02
311 # DEBUG_CODE_ENABLED 0x04
312 # CLEAR_MEMORY_ENABLED 0x08
313 # ASSERT_BREAKPOINT_ENABLED 0x10
314 # ASSERT_DEADLOOP_ENABLED 0x20
315!if $(TARGET) == RELEASE
316 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
317!else
318 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
319!endif
320
321 # DEBUG_INIT 0x00000001 // Initialization
322 # DEBUG_WARN 0x00000002 // Warnings
323 # DEBUG_LOAD 0x00000004 // Load events
324 # DEBUG_FS 0x00000008 // EFI File system
325 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
326 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
327 # DEBUG_INFO 0x00000040 // Informational debug messages
328 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
329 # DEBUG_VARIABLE 0x00000100 // Variable
330 # DEBUG_BM 0x00000400 // Boot Manager
331 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
332 # DEBUG_NET 0x00004000 // Network Io Driver
333 # DEBUG_UNDI 0x00010000 // UNDI Driver
334 # DEBUG_LOADFILE 0x00020000 // LoadFile
335 # DEBUG_EVENT 0x00080000 // Event messages
336 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
337 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
338 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
339 # // significantly impact boot performance
340 # DEBUG_MANAGEABILITY 0x00800000 // Detailed debug and payload manageability messages
341 # // related to modules such as Redfish, IPMI, MCTP etc.
342 # DEBUG_ERROR 0x80000000 // Error
343!if $(TARGET) != RELEASE
344 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
345!endif
346
347 #
348 # Optional feature to help prevent EFI memory map fragments
349 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
350 # Values are in EFI Pages (4K). DXE Core will make sure that
351 # at least this much of each type of memory can be allocated
352 # from a single memory range. This way you only end up with
353 # maximum of two fragments for each type in the memory map
354 # (the memory used, and the free memory that was prereserved
355 # but not used).
356 #
357 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
358 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
359 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
360!if $(SECURE_BOOT_ENABLE) == TRUE
361 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
362 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
363 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
364!else
365 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
366 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
367 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
368!endif
369 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
370 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
371 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
372
373 #
374 # Enable strict image permissions for all images. (This applies
375 # only to images that were built with >= 4 KB section alignment.)
376 #
377 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
378
379 #
380 # Enable NX memory protection for all non-code regions, including OEM and OS
381 # reserved ones.
382 # By passing --pcd PcdDxeNxMemoryProtectionPolicy=0xC000000000007FD1 on the
383 # build command line you can allow code execution in EfiLoaderData. This is
384 # required when using some outdated GRUB versions.
385 #
386 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
387
388 gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE
389
390[Components.common]
391 #
392 # Ramdisk support
393 #
394 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
395
396 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
397 <PcdsFixedAtBuild>
398 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
399 }
400 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
401 <PcdsFixedAtBuild>
402 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
403 }
404 ShellPkg/DynamicCommand/VariablePolicyDynamicCommand/VariablePolicyDynamicCommand.inf {
405 <PcdsFixedAtBuild>
406 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
407 }
408 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
409 <PcdsFixedAtBuild>
410 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
411 }
412 ShellPkg/Application/Shell/Shell.inf {
413 <LibraryClasses>
414 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
415 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
416 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
417 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
418 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
419 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
420!if $(ACPIVIEW_ENABLE) == TRUE
421 NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
422!endif
423 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
424 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
425!if $(NETWORK_IP6_ENABLE) == TRUE
426 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
427!endif
428 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
429 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
430 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
431
432 <PcdsFixedAtBuild>
433 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
434 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
435 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
436 }
437
438[Components.AARCH64]
439 #
440 # ACPI Support
441 #
442 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
443 <LibraryClasses>
444 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
445 }
#define NULL
Definition: Base.h:319
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
EFI_STATUS EFIAPI ShellCEntryLib(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)