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
13 #
14 # Shell can be useful for debugging but should not be enabled for production
15 #
16 DEFINE BUILD_SHELL = TRUE
17
18 DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
19
20# Various builds now exceed 2MB so choose 3MB as the default.
21DEFINE FD_SIZE_IN_MB = 3
22
23!if $(FD_SIZE_IN_MB) == 2
24 DEFINE FD_SIZE = 0x200000
25 DEFINE FD_NUM_BLOCKS = 0x200
26!endif
27!if $(FD_SIZE_IN_MB) == 3
28 DEFINE FD_SIZE = 0x300000
29 DEFINE FD_NUM_BLOCKS = 0x300
30!endif
31
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
36
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
41
42[LibraryClasses.common]
43!if $(TARGET) == RELEASE
44 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
45!else
46 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartRam.inf
47!endif
48 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
49
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
62
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
73
74 MemDebugLogLib|OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf
75!include OvmfPkg/Include/Dsc/ShellLibs.dsc.inc
76
77 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
78 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
79
80 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
81 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
82
83 #
84 # Ramdisk Requirements
85 #
86 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
87
88 # Allow dynamic PCDs
89 #
90 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
91
92 # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
93 BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
94
95 # Networking Requirements
96!include NetworkPkg/NetworkLibs.dsc.inc
97
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
105
106 PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf
107 MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf
108 ResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
109
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
117
118 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
119 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
120
121 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
122 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
123
124 # Flattened Device Tree (FDT) access library
125 FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
126
127 # PCI Libraries
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
134
135 # USB Libraries
136 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
137
138 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
139
140 #
141 # CryptoPkg libraries needed by multiple firmware features
142 #
143 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
144!if $(NETWORK_TLS_ENABLE) == TRUE
145 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
146!else
147 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
148!endif
149 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
150 ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
151 ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
152
153 #
154 # Secure Boot dependencies
155 #
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
161
162 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
163 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
164!else
165 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
166!endif
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
173!endif
174 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
175
176 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
177
178 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
179 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
180
181[LibraryClasses.common.SEC]
182 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
183 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
184
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
193!endif
194
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
206
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
211!endif
212
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
224
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
229!endif
230
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
234
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
240
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
245
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
250
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
255
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
261!endif
262 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
263
264 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
265
266[BuildOptions]
267 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
268
269 #
270 # Disable deprecated APIs.
271 #
272 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
273
274################################################################################
275#
276# Pcd Section - list of all EDK II PCD Entries defined by this Platform
277#
278################################################################################
279
280[PcdsFeatureFlag.common]
281 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
282
283 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
284
285 #
286 # Activate AcpiSdtProtocol
287 #
288 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
289
290[PcdsFixedAtBuild.common]
291 gArmTokenSpaceGuid.PcdMonitorConduitHvc|TRUE
292
293!ifdef $(FIRMWARE_VER)
294 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
295!endif
296
297 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
298 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
299 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
300 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
301 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
302
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
311!else
312 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
313!endif
314
315 # DEBUG_INIT 0x00000001 // Initialization
316 # DEBUG_WARN 0x00000002 // Warnings
317 # DEBUG_LOAD 0x00000004 // Load events
318 # DEBUG_FS 0x00000008 // EFI File system
319 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
320 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
321 # DEBUG_INFO 0x00000040 // Informational debug messages
322 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
323 # DEBUG_VARIABLE 0x00000100 // Variable
324 # DEBUG_BM 0x00000400 // Boot Manager
325 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
326 # DEBUG_NET 0x00004000 // Network Io Driver
327 # DEBUG_UNDI 0x00010000 // UNDI Driver
328 # DEBUG_LOADFILE 0x00020000 // LoadFile
329 # DEBUG_EVENT 0x00080000 // Event messages
330 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
331 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
332 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
333 # // significantly impact boot performance
334 # DEBUG_MANAGEABILITY 0x00800000 // Detailed debug and payload manageability messages
335 # // related to modules such as Redfish, IPMI, MCTP etc.
336 # DEBUG_ERROR 0x80000000 // Error
337!if $(TARGET) != RELEASE
338 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
339!endif
340
341 #
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
349 # but not used).
350 #
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
358!else
359 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
360 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
361 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
362!endif
363 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
364 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
365 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
366
367 #
368 # Enable strict image permissions for all images. (This applies
369 # only to images that were built with >= 4 KB section alignment.)
370 #
371 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
372
373 #
374 # Enable NX memory protection for all non-code regions, including OEM and OS
375 # reserved ones.
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.
379 #
380 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
381
382 gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE
383
384[Components.common]
385 #
386 # Ramdisk support
387 #
388 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
389
390!include OvmfPkg/Include/Dsc/ShellComponents.dsc.inc
391
392 #
393 # ACPI Support
394 #
395 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
396 <LibraryClasses>
397 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
398 }
#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)