]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirt.dsc.inc
OvmfPkg/BaseCachingPciExpressLib: Migrate BaseCachingPciExpressLib
[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 - 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 RVCT:*_*_ARM_DLINK_FLAGS = --scatter $(EDK_TOOLS_PATH)/Scripts/Rvct-Align4K.sct
36
37 [LibraryClasses.common]
38 !if $(TARGET) == RELEASE
39 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
40 !else
41 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
42 !endif
43 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
44
45 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
46 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
47 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
48 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
49 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
50 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
51 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
52 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
53 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
54 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
55 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.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 !if $(NETWORK_TLS_ENABLE) == TRUE
91 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
92 !endif
93
94
95 #
96 # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.
97 # This library provides the instrinsic functions such a compiler may generate calls to.
98 #
99 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
100
101 # Add support for GCC stack protector
102 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
103
104 # ARM Architectural Libraries
105 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
106 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
107 CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
108 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
109 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
110 ArmGicArchLib|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf
111 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
112 ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
113 ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
114
115 PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf
116 MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf
117 ResetSystemLib|ArmVirtPkg/Library/ArmVirtPsciResetSystemLib/ArmVirtPsciResetSystemLib.inf
118
119 # ARM PL031 RTC Driver
120 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
121 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
122 # ARM PL011 UART Driver
123 PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
124 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf
125
126 #
127 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
128 # in the debugger will show load and unload commands for symbols. You can cut and paste this
129 # into the command window to load symbols. We should be able to use a script to do this, but
130 # the version of RVD I have does not support scripts accessing system memory.
131 #
132 #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
133 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
134 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
135
136 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
137 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
138
139 # Flattened Device Tree (FDT) access library
140 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
141
142 # PCI Libraries
143 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
144 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
145 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
146 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
147 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
148
149 # USB Libraries
150 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
151
152 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
153
154 #
155 # CryptoPkg libraries needed by multiple firmware features
156 #
157 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
158 !if $(NETWORK_TLS_ENABLE) == TRUE
159 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
160 !else
161 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
162 !endif
163 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
164 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
165
166 #
167 # Secure Boot dependencies
168 #
169 !if $(SECURE_BOOT_ENABLE) == TRUE
170 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
171 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
172 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
173
174 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
175 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
176 !else
177 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
178 !endif
179 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
180 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
181 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
182 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
183
184 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
185
186 [LibraryClasses.common.SEC]
187 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
188 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
189
190 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
191 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
192 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
193 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
194 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
195 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
196
197 [LibraryClasses.common.PEI_CORE]
198 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
199 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
200 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
201 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
202 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
203 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
204 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
205 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
206 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
207 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
208
209 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
210 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
211
212 [LibraryClasses.common.PEIM]
213 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
214 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
215 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
216 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
217 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
218 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
219 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
220 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
221 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
222 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
223
224 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
225 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
226
227 [LibraryClasses.common.DXE_CORE]
228 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
229 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
230 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
231 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
232 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
233
234 [LibraryClasses.common.DXE_DRIVER]
235 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
236 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
237 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
238
239 [LibraryClasses.common.UEFI_APPLICATION]
240 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
241 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
242 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
243
244 [LibraryClasses.common.UEFI_DRIVER]
245 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
246 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
247 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
248
249 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
250 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
251 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
252 !if $(TARGET) != RELEASE
253 DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
254 !endif
255 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
256
257 !if $(SECURE_BOOT_ENABLE) == TRUE
258 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
259 !endif
260
261 [LibraryClasses.ARM]
262 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
263
264 [BuildOptions]
265 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
266
267 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
268
269 #
270 # Disable deprecated APIs.
271 #
272 RVCT:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
273 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
274
275 ################################################################################
276 #
277 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
278 #
279 ################################################################################
280
281 [PcdsFeatureFlag.common]
282 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
283
284 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|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|0
296 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
297 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
298
299 # DEBUG_ASSERT_ENABLED 0x01
300 # DEBUG_PRINT_ENABLED 0x02
301 # DEBUG_CODE_ENABLED 0x04
302 # CLEAR_MEMORY_ENABLED 0x08
303 # ASSERT_BREAKPOINT_ENABLED 0x10
304 # ASSERT_DEADLOOP_ENABLED 0x20
305 !if $(TARGET) == RELEASE
306 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
307 !else
308 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
309 !endif
310
311 # DEBUG_INIT 0x00000001 // Initialization
312 # DEBUG_WARN 0x00000002 // Warnings
313 # DEBUG_LOAD 0x00000004 // Load events
314 # DEBUG_FS 0x00000008 // EFI File system
315 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
316 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
317 # DEBUG_INFO 0x00000040 // Informational debug messages
318 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
319 # DEBUG_VARIABLE 0x00000100 // Variable
320 # DEBUG_BM 0x00000400 // Boot Manager
321 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
322 # DEBUG_NET 0x00004000 // SNP Driver
323 # DEBUG_UNDI 0x00010000 // UNDI Driver
324 # DEBUG_LOADFILE 0x00020000 // LoadFile
325 # DEBUG_EVENT 0x00080000 // Event messages
326 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
327 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
328 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
329 # // significantly impact boot performance
330 # DEBUG_ERROR 0x80000000 // Error
331 !if $(TARGET) != RELEASE
332 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
333 !endif
334
335 #
336 # Optional feature to help prevent EFI memory map fragments
337 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
338 # Values are in EFI Pages (4K). DXE Core will make sure that
339 # at least this much of each type of memory can be allocated
340 # from a single memory range. This way you only end up with
341 # maximum of two fragments for each type in the memory map
342 # (the memory used, and the free memory that was prereserved
343 # but not used).
344 #
345 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
346 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
347 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
348 !if $(SECURE_BOOT_ENABLE) == TRUE
349 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
350 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
351 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
352 !else
353 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
354 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
355 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
356 !endif
357 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
358 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
359 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
360
361 #
362 # Enable strict image permissions for all images. (This applies
363 # only to images that were built with >= 4 KB section alignment.)
364 #
365 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
366
367 #
368 # Enable NX memory protection for all non-code regions, including OEM and OS
369 # reserved ones, with the exception of LoaderData regions, of which OS loaders
370 # (i.e., GRUB) may assume that its contents are executable.
371 #
372 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
373
374 [Components.common]
375 #
376 # Ramdisk support
377 #
378 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
379
380 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
381 <PcdsFixedAtBuild>
382 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
383 }
384 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
385 <PcdsFixedAtBuild>
386 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
387 }
388 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
389 <PcdsFixedAtBuild>
390 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
391 }
392 ShellPkg/Application/Shell/Shell.inf {
393 <LibraryClasses>
394 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
395 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
396 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
397 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
398 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
399 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
400 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
401 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
402 !if $(NETWORK_IP6_ENABLE) == TRUE
403 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
404 !endif
405 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
406 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
407 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
408
409 <PcdsFixedAtBuild>
410 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
411 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
412 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
413 }
414
415 [Components.AARCH64]
416 #
417 # ACPI Support
418 #
419 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
420 <LibraryClasses>
421 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
422 }
423
424 #
425 # EBC support
426 #
427 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf