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
14 # Shell can be useful for debugging but should not be enabled for production
16 DEFINE BUILD_SHELL =
TRUE
18 DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
20# Various builds now exceed 2MB so choose 3MB as the default.
21DEFINE FD_SIZE_IN_MB = 3
23!
if $(FD_SIZE_IN_MB) == 2
24 DEFINE FD_SIZE = 0x200000
25 DEFINE FD_NUM_BLOCKS = 0x200
27!
if $(FD_SIZE_IN_MB) == 3
28 DEFINE FD_SIZE = 0x300000
29 DEFINE FD_NUM_BLOCKS = 0x300
32[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
33 GCC:*_GCC_*_DLINK_FLAGS = -z common-page-size=0x1000
34 GCC:*_CLANGDWARF_*_DLINK_FLAGS = -z common-page-size=0x1000
35 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:0x1000
37[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
38 GCC:*_GCC_*_DLINK_FLAGS = -z common-page-size=0x10000
39 GCC:*_CLANGDWARF_*_DLINK_FLAGS = -z common-page-size=0x10000
40 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:0x10000
42[LibraryClasses.common]
43!
if $(TARGET) == RELEASE
44 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
46 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartRam.inf
48 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
50 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
51 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
52 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
53 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
54 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
55 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
56 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
57 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
58 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
59 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
60 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
61 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
63 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
64 HobLib|ArmVirtPkg/Library/ArmVirtDxeHobLib/ArmVirtDxeHobLib.inf
65 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
66 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
67 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
68 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
69 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
70 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
71 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
72 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
74 MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf
75!include OvmfPkg/Include/Dsc/ShellLibs.dsc.inc
77 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
78 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
80 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
81 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
84 # Ramdisk Requirements
86 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
90 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
92 # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
93 BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
95 # Networking Requirements
96!include NetworkPkg/NetworkLibs.dsc.inc
98 # ARM Architectural Libraries
99 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
100 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
101 CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
102 ArmSmcLib|MdePkg/Library/ArmSmcLib/ArmSmcLib.inf
103 ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
104 ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
106 PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf
107 MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf
108 ResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
110 # ARM PL031 RTC Driver
111 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
112 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
113 # ARM PL011 UART Driver
114 PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
115 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf
116 FdtSerialPortAddressLib|OvmfPkg/Library/FdtSerialPortAddressLib/FdtSerialPortAddressLib.inf
118 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
119 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
121 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
122 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
124 # Flattened Device Tree (FDT) access library
125 FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
128 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
129 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
130 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
131 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
132 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
133 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
136 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
138 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
141 # CryptoPkg libraries needed by multiple firmware features
143 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
144!
if $(NETWORK_TLS_ENABLE) ==
TRUE
145 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
147 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
149 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
150 ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
151 ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
154 # Secure Boot dependencies
156!
if $(SECURE_BOOT_ENABLE) ==
TRUE
157 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
158 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
159 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
160 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
162 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
163 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
165 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
167 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
168 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
169 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
170 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
171!
if $(QEMU_PV_VARS) ==
TRUE
172 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
174 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
176 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
178 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
179 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
181[LibraryClasses.common.SEC]
182 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
183 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
185 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
186 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
187 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
188 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
189 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
190 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
191!
if $(TARGET) != RELEASE
192 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
195[LibraryClasses.common.PEI_CORE]
196 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
197 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
198 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
199 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
200 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
201 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
202 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
203 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
204 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
205 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
207 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
208 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
209!
if $(TARGET) != RELEASE
210 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
213[LibraryClasses.common.PEIM]
214 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
215 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
216 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
217 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
218 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
219 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
220 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
221 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
222 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
223 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
225 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
226 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
227!
if $(TARGET) != RELEASE
228 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
231[LibraryClasses.common.UEFI_DRIVER]
232 # resolve RngLib via RngDxe's EFI_RNG_PROTOCOL for UEFI_DRIVER type drivers such as TlsDxe
233 RngLib|MdePkg/Library/DxeRngLib/DxeRngLib.inf
235[LibraryClasses.common.DXE_CORE]
236 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
237 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
238 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
239 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
241[LibraryClasses.common.DXE_DRIVER]
242 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
243 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
244 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
246[LibraryClasses.common.UEFI_APPLICATION]
247 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
248 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
249 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
251[LibraryClasses.common.UEFI_DRIVER]
252 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
253 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
254 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
256[LibraryClasses.common.DXE_RUNTIME_DRIVER]
257 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
258 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
259!
if $(TARGET) != RELEASE
260 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DxeRuntimeDebugLibFdtPL011Uart.inf
262 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
264 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
267 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
270 # Disable deprecated APIs.
272 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
274################################################################################
276# Pcd Section - list of all EDK II PCD Entries defined by this Platform
278################################################################################
280[PcdsFeatureFlag.common]
281 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|
FALSE
283 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|
TRUE
286 # Activate AcpiSdtProtocol
288 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|
TRUE
290[PcdsFixedAtBuild.common]
291 gArmTokenSpaceGuid.PcdMonitorConduitHvc|
TRUE
293!ifdef $(FIRMWARE_VER)
294 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L
"$(FIRMWARE_VER)"
297 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
298 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
299 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
300 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
301 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
303 # DEBUG_ASSERT_ENABLED 0x01
304 # DEBUG_PRINT_ENABLED 0x02
305 # DEBUG_CODE_ENABLED 0x04
306 # CLEAR_MEMORY_ENABLED 0x08
307 # ASSERT_BREAKPOINT_ENABLED 0x10
308 # ASSERT_DEADLOOP_ENABLED 0x20
309!
if $(TARGET) == RELEASE
310 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
312 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
315 # DEBUG_INIT 0x00000001
316 # DEBUG_WARN 0x00000002
317 # DEBUG_LOAD 0x00000004
318 # DEBUG_FS 0x00000008
319 # DEBUG_POOL 0x00000010
320 # DEBUG_PAGE 0x00000020
321 # DEBUG_INFO 0x00000040
322 # DEBUG_DISPATCH 0x00000080
323 # DEBUG_VARIABLE 0x00000100
324 # DEBUG_BM 0x00000400
325 # DEBUG_BLKIO 0x00001000
326 # DEBUG_NET 0x00004000
327 # DEBUG_UNDI 0x00010000
328 # DEBUG_LOADFILE 0x00020000
329 # DEBUG_EVENT 0x00080000
330 # DEBUG_GCD 0x00100000
331 # DEBUG_CACHE 0x00200000
332 # DEBUG_VERBOSE 0x00400000
334 # DEBUG_MANAGEABILITY 0x00800000
336 # DEBUG_ERROR 0x80000000
337!
if $(TARGET) != RELEASE
338 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
342 # Optional feature to help prevent EFI memory map fragments
343 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
344 # Values are in EFI Pages (4K). DXE Core will make sure that
345 # at least this much of each type of memory can be allocated
346 # from a single memory range. This way you only end up with
347 # maximum of two fragments for each type in the memory map
348 # (the memory used, and the free memory that was prereserved
351 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
352 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
353 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
354!
if $(SECURE_BOOT_ENABLE) ==
TRUE
355 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
356 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
357 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
359 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
360 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
361 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
363 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
364 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
365 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
368 # Enable strict image permissions for all images. (This applies
369 # only to images that were built with >= 4 KB section alignment.)
371 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
374 # Enable NX memory protection for all non-code regions, including OEM and OS
376 # By passing --pcd PcdDxeNxMemoryProtectionPolicy=0xC000000000007FD1 on the
377 # build command line you can allow code execution in EfiLoaderData. This is
378 # required when using some outdated GRUB versions.
380 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
382 gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|
TRUE
388 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
390!include OvmfPkg/Include/Dsc/ShellComponents.dsc.inc
395 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
397 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
EFI_STATUS EFIAPI ShellCEntryLib(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)