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.
7# SPDX-License-Identifier: BSD-2-Clause-Patent
12 DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
15 DEFINE FD_SIZE_IN_MB = 2
17 DEFINE FD_SIZE_IN_MB = 3
20!
if $(FD_SIZE_IN_MB) == 2
21 DEFINE FD_SIZE = 0x200000
22 DEFINE FD_NUM_BLOCKS = 0x200
24!
if $(FD_SIZE_IN_MB) == 3
25 DEFINE FD_SIZE = 0x300000
26 DEFINE FD_NUM_BLOCKS = 0x300
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
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
36[LibraryClasses.common]
37!
if $(TARGET) == RELEASE
38 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
40 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartRam.inf
42 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
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
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
73 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
74 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
77 # Ramdisk Requirements
79 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
83 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
85 # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
86 BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
88 # Networking Requirements
89!include NetworkPkg/NetworkLibs.dsc.inc
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
102 PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf
103 MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf
104 ResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
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
114 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
115 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
117 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
118 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
120 # Flattened Device Tree (FDT) access library
121 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
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
132 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
134 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
137 # CryptoPkg libraries needed by multiple firmware features
139 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
140!
if $(NETWORK_TLS_ENABLE) ==
TRUE
141 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
143 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
145 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
146 ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
147 ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
150 # Secure Boot dependencies
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
158 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
159 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
161 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
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
169 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
171[LibraryClasses.common.SEC]
172 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
173 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
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
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
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
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
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
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
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
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
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
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
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
253 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
255[LibraryClasses.AARCH64.DXE_RUNTIME_DRIVER]
256 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
258[LibraryClasses.ARM.DXE_RUNTIME_DRIVER]
259 BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/RuntimeCryptLib.inf
261[LibraryClasses.AARCH64]
262 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
263 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
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
272 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
275 # Disable deprecated APIs.
277 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
279################################################################################
281# Pcd Section - list of all EDK II PCD Entries defined by this Platform
283################################################################################
285[PcdsFeatureFlag.common]
286 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|
FALSE
288 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|
TRUE
290[PcdsFeatureFlag.AARCH64]
292 # Activate AcpiSdtProtocol
294 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|
TRUE
296[PcdsFixedAtBuild.common]
297 gArmTokenSpaceGuid.PcdMonitorConduitHvc|
TRUE
299!ifdef $(FIRMWARE_VER)
300 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L
"$(FIRMWARE_VER)"
303 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
304 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
305 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
306 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
307 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
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
318 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
321 # DEBUG_INIT 0x00000001
322 # DEBUG_WARN 0x00000002
323 # DEBUG_LOAD 0x00000004
324 # DEBUG_FS 0x00000008
325 # DEBUG_POOL 0x00000010
326 # DEBUG_PAGE 0x00000020
327 # DEBUG_INFO 0x00000040
328 # DEBUG_DISPATCH 0x00000080
329 # DEBUG_VARIABLE 0x00000100
330 # DEBUG_BM 0x00000400
331 # DEBUG_BLKIO 0x00001000
332 # DEBUG_NET 0x00004000
333 # DEBUG_UNDI 0x00010000
334 # DEBUG_LOADFILE 0x00020000
335 # DEBUG_EVENT 0x00080000
336 # DEBUG_GCD 0x00100000
337 # DEBUG_CACHE 0x00200000
338 # DEBUG_VERBOSE 0x00400000
340 # DEBUG_MANAGEABILITY 0x00800000
342 # DEBUG_ERROR 0x80000000
343!
if $(TARGET) != RELEASE
344 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
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
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
365 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
366 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
367 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
369 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
370 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
371 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
374 # Enable strict image permissions for all images. (This applies
375 # only to images that were built with >= 4 KB section alignment.)
377 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
380 # Enable NX memory protection for all non-code regions, including OEM and OS
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.
386 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
388 gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|
TRUE
394 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
396 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
398 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|
FALSE
400 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
402 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|
FALSE
404 ShellPkg/DynamicCommand/VariablePolicyDynamicCommand/VariablePolicyDynamicCommand.inf {
406 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|
FALSE
408 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
410 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|
FALSE
412 ShellPkg/Application/Shell/Shell.inf {
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
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
428 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
429 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
430 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
433 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
434 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|
FALSE
435 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
442 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
444 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
EFI_STATUS EFIAPI ShellCEntryLib(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)